![]() |
![]() |
![]() |
libeek Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
EekElement; struct EekElementClass; void eek_element_set_parent (EekElement *element
,EekElement *parent
); EekElement * eek_element_get_parent (EekElement *element
); void eek_element_set_name (EekElement *element
,const gchar *name
); const gchar * eek_element_get_name (EekElement *element
); void eek_element_set_bounds (EekElement *element
,EekBounds *bounds
); void eek_element_get_bounds (EekElement *element
,EekBounds *bounds
); void eek_element_set_position (EekElement *element
,gdouble x
,gdouble y
); void eek_element_set_size (EekElement *element
,gdouble width
,gdouble height
); void eek_element_get_absolute_position (EekElement *element
,gdouble *x
,gdouble *y
); void eek_element_set_symbol_index (EekElement *element
,gint group
,gint level
); void eek_element_get_symbol_index (EekElement *element
,gint *group
,gint *level
); void eek_element_set_group (EekElement *element
,gint group
); void eek_element_set_level (EekElement *element
,gint level
); gint eek_element_get_group (EekElement *element
); gint eek_element_get_level (EekElement *element
); EekElementPrivate;
"bounds" EekBounds* : Read / Write "group" gint : Read / Write "level" gint : Read / Write "name" gchar* : Read / Write
The EekElementClass class represents a keyboard element, which shall be used to implement EekKeyboard, EekSection, or EekKey.
void eek_element_set_parent (EekElement *element
,EekElement *parent
);
Set the parent of element
to parent
.
|
an EekElement |
|
an EekElement |
EekElement * eek_element_get_parent (EekElement *element
);
Get the parent of element
.
|
an EekElement |
Returns : |
an EekElement if the parent is set |
void eek_element_set_name (EekElement *element
,const gchar *name
);
Set the name of element
to name
.
|
an EekElement |
|
name of element
|
const gchar * eek_element_get_name (EekElement *element
);
Get the name of element
.
|
an EekElement |
Returns : |
the name of element or NULL when the name is not set |
void eek_element_set_bounds (EekElement *element
,EekBounds *bounds
);
Set the bounding box of element
to bounds
. Note that if element
has parent, X and Y positions of bounds
are relative to the parent
position.
|
an EekElement |
|
bounding box of element
|
void eek_element_get_bounds (EekElement *element
,EekBounds *bounds
);
Get the bounding box of element
. Note that if element
has
parent, position of bounds
are relative to the parent. To obtain
the absolute position, use eek_element_get_absolute_position()
.
|
an EekElement |
|
pointer where bounding box of element will be stored. [out]
|
void eek_element_set_position (EekElement *element
,gdouble x
,gdouble y
);
Set the relative position of element
.
|
an EekElement |
|
X coordinate of top left corner |
|
Y coordinate of top left corner |
void eek_element_set_size (EekElement *element
,gdouble width
,gdouble height
);
Set the size of element
.
|
an EekElement |
|
width of element
|
|
height of element
|
void eek_element_get_absolute_position (EekElement *element
,gdouble *x
,gdouble *y
);
Compute the absolute position of element
.
|
an EekElement |
|
pointer where the X coordinate of element will be stored |
|
pointer where the Y coordinate of element will be stored |
void eek_element_set_symbol_index (EekElement *element
,gint group
,gint level
);
Set the default index of the symbol matrices of element
. The
setting affects the child, if child does not have the index set, as
well as this element. To unset, pass -1 as group/level.
|
an EekElement |
|
row index of the symbol matrix |
|
column index of the symbol matrix |
void eek_element_get_symbol_index (EekElement *element
,gint *group
,gint *level
);
Get the default index of the symbol matrices of element
.
If the index is not set, -1 will be returned.
|
an EekElement |
|
a pointer where the group value of the symbol index will be stored |
|
a pointer where the level value of the symbol index will be stored |
void eek_element_set_group (EekElement *element
,gint group
);
Set the group value of the default symbol index of element
. To
unset, pass -1 as group
.
See also: eek_element_set_symbol_index()
|
an EekElement |
|
group index of element
|
void eek_element_set_level (EekElement *element
,gint level
);
Set the level value of the default symbol index of element
. To
unset, pass -1 as level
.
See also: eek_element_set_symbol_index()
|
an EekElement |
|
level index of element
|
gint eek_element_get_group (EekElement *element
);
Return the group value of the default symbol index of element
.
If the value is not set, -1 will be returned.
See also: eek_element_get_symbol_index()
|
an EekElement |
gint eek_element_get_level (EekElement *element
);
Return the level value of the default symbol index of element
.
If the value is not set, -1 will be returned.
See also: eek_element_get_symbol_index()
|
an EekElement |
"group"
property"group" gint : Read / Write
The group value of the symbol index of EekElement.
Allowed values: >= G_MAXULONG
Default value: -1
"level"
property"level" gint : Read / Write
The level value of the symbol index of EekElement.
Allowed values: >= G_MAXULONG
Default value: -1
"symbol-index-changed"
signalvoid user_function (EekElement *element,
gint group,
gint level,
gpointer user_data) : Run Last
The ::symbol-index-changed signal is emitted each time the global configuration of group/level index changes.
|
an EekElement |
|
row index of the symbol matrix of keys on element
|
|
column index of the symbol matrix of keys on element
|
|
user data set when the signal handler was connected. |