CaribouLevelModel

CaribouLevelModel — Object representing a level in a group.

Functions

Properties

gchar * mode Read

Signals

void level-toggled Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── CaribouScannableGroup
        ╰── CaribouLevelModel

Implemented Interfaces

CaribouLevelModel implements CaribouIScannableGroup and CaribouIKeyboardObject.

Description

This is used for implementing custom keyboard service.

A keyboard object consists of CaribouRowModel objects.

Functions

caribou_level_model_get_rows ()

CaribouRowModel **
caribou_level_model_get_rows (CaribouLevelModel *self,
                              int *result_length1);

Parameters

self

the CaribouLevelModel instance

 

Returns

.

[array length=result_length1]


caribou_level_model_new ()

CaribouLevelModel *
caribou_level_model_new (const gchar *mode);

Parameters

mode

 

 

caribou_level_model_get_mode ()

const gchar *
caribou_level_model_get_mode (CaribouLevelModel *self);

Get and return the current value of the "mode" property.

Parameters

self

the CaribouLevelModel instance to query

 

Returns

the value of the "mode" property

Types and Values

CARIBOU_TYPE_LEVEL_MODEL

#define CARIBOU_TYPE_LEVEL_MODEL (caribou_level_model_get_type ())

The type for CaribouLevelModel.


struct CaribouLevelModel

struct CaribouLevelModel;

Object representing a level in a group.

This is used for implementing custom keyboard service.

A keyboard object consists of CaribouRowModel objects.


struct CaribouLevelModelClass

struct CaribouLevelModelClass {
	CaribouScannableGroupClass parent_class;
};

The class structure for CARIBOU_TYPE_LEVEL_MODEL. All the fields in this structure are private and should never be accessed directly.

Members

Property Details

The “mode” property

  “mode”                     gchar *

mode.

Flags: Read

Default value: NULL

Signal Details

The “level-toggled” signal

void
user_function (CaribouLevelModel *level_model,
               gchar             *new_level,
               gpointer           user_data)

Parameters

level_model

the CaribouLevelModel instance that received the signal

 

new_level

 

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last