| libeek Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
EekElementClass; EekElementPrivate; EekElement; 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_get_absolute_position (EekElement *element,gdouble *x,gdouble *y);
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
|
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
|