| libeek Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
EekSection; struct EekSectionClass; void eek_section_set_angle (EekSection *section,gint angle); gint eek_section_get_angle (EekSection *section); gint eek_section_get_n_rows (EekSection *section); void eek_section_add_row (EekSection *section,gint num_columns,EekOrientation orientation); void eek_section_get_row (EekSection *section,gint index,gint *num_columns,EekOrientation *orientation); EekKey * eek_section_create_key (EekSection *section,gint column,gint row); EekKey * eek_section_find_key_by_keycode (EekSection *section,guint keycode); EekSectionPrivate;
The EekSectionClass class represents a section, which consists of one or more keys of the EekKeyClass class.
struct EekSectionClass {
void (* set_angle) (EekSection *self,
gint angle);
gint (* get_angle) (EekSection *self);
gint (* get_n_rows) (EekSection *self);
void (* add_row) (EekSection *self,
gint num_columns,
EekOrientation orientation);
void (* get_row) (EekSection *self,
gint index,
gint *num_columns,
EekOrientation *orientation);
EekKey *(* create_key) (EekSection *self,
gint row,
gint column);
EekKey *(* find_key_by_keycode) (EekSection *self,
guint keycode);
/* signals */
void (* key_pressed) (EekSection *self,
EekKey *key);
void (* key_released) (EekSection *self,
EekKey *key);
};
| virtual function for setting rotation angle of the section | |
| virtual function for getting rotation angle of the section | |
| virtual function for getting the number of rows in the section | |
| virtual function for adding a new row to the section | |
| virtual function for accessing a row in the section | |
| virtual function for creating key in the section | |
| virtual function for accessing a key in the section by keycode | |
| class handler for "key-pressed" signal | |
| class handler for "key-released" signal |
void eek_section_set_angle (EekSection *section,gint angle);
Set rotation angle of section to angle.
|
an EekSection |
|
rotation angle |
gint eek_section_get_angle (EekSection *section);
Get rotation angle of section.
|
an EekSection |
gint eek_section_get_n_rows (EekSection *section);
Get the number of rows in section.
|
an EekSection |
void eek_section_add_row (EekSection *section,gint num_columns,EekOrientation orientation);
Add a row which has num_columns columns and whose orientation is
orientation to section.
|
an EekSection |
|
the number of column in the row |
|
EekOrientation of the row |
void eek_section_get_row (EekSection *section,gint index,gint *num_columns,EekOrientation *orientation);
Get the information about the index-th row in section.
|
an EekSection |
|
the index of row |
|
pointer where the number of column in the row will be stored |
|
pointer where EekOrientation of the row will be stored |
EekKey * eek_section_create_key (EekSection *section,gint column,gint row);
Create an EekKey instance and append it to section. This
function is rarely called by application but called by EekLayout
implementation.
|
an EekSection |
|
the column index of the key |
|
the row index of the key |
EekKey * eek_section_find_key_by_keycode (EekSection *section,guint keycode);
Find an EekKey whose keycode is keycode.
|
an EekSection |
|
a keycode |
Returns : |
an EekKey or NULL (if not found) |
"angle" property"angle" gint : Read / Write
The rotation angle of EekSection.
Allowed values: [-360,360]
Default value: 0
"key-pressed" signalvoid user_function (EekSection *section,
EekKey *key,
gpointer user_data) : Run Last
The ::key-pressed signal is emitted each time a key in section
is shifted to the pressed state.
|
an EekSection |
|
an EekKey |
|
user data set when the signal handler was connected. |
"key-released" signalvoid user_function (EekSection *section,
EekKey *key,
gpointer user_data) : Run Last
The ::key-released signal is emitted each time a key in section
is shifted to the released state.
|
an EekSection |
|
an EekKey |
|
user data set when the signal handler was connected. |