Convenience smart object that packs children under a regular grid layout, using their virtual grid location and size to determine children's positions inside the grid object's area. More...
Functions | |
Evas_Object * | evas_object_grid_add (Evas *evas) |
Create a new grid. More... | |
void | evas_object_grid_mirrored_set (Eo *obj, Eina_Bool mirrored) |
Sets the mirrored mode of the grid. More... | |
Eina_Bool | evas_object_grid_mirrored_get (const Eo *obj) |
Gets the mirrored mode of the grid. More... | |
Evas_Object * | evas_object_textgrid_add (Evas *e) |
Add a textgrid to the given Evas. More... | |
void | evas_object_textgrid_font_source_set (Eo *obj, const char *font_source) |
Set the font (source) file to be used on a given textgrid object. More... | |
const char * | evas_object_textgrid_font_source_get (const Eo *obj) |
Get the font file's path which is being used on a given textgrid object. More... | |
void | evas_object_textgrid_font_set (Eo *obj, const char *font_name, Evas_Font_Size font_size) |
Set the font family and size on a given textgrid object. More... | |
void | evas_object_textgrid_font_get (const Eo *obj, const char **font_name, Evas_Font_Size *font_size) |
Retrieve the font family and size in use on a given textgrid object. More... | |
Convenience smart object that packs children under a regular grid layout, using their virtual grid location and size to determine children's positions inside the grid object's area.
Evas_Object* evas_object_textgrid_add | ( | Evas * | e | ) |
Add a textgrid to the given Evas.
e | The given evas. |
This function adds a new textgrid object to the Evas e
and returns the object.
References DBG, eina_array_count(), eina_array_data_get(), eina_array_data_set(), eina_array_push(), EINA_FALSE, eina_list_free(), EINA_SAFETY_ON_FALSE_RETURN_VAL, EINA_SAFETY_ON_TRUE_RETURN, eina_stringshare_del(), eina_stringshare_replace(), EINA_TRUE, EINA_VALUE_TYPE_INT, EINA_VALUE_TYPE_STRING, ERR, and EVAS_CANVAS_CLASS.
Evas_Object* evas_object_grid_add | ( | Evas * | evas | ) |
Create a new grid.
It's set to a virtual size of 1x1 by default and add children with evas_object_grid_pack().
References EINA_FALSE, eina_list_accessor_new(), eina_list_append(), EINA_LIST_FOREACH, EINA_LIST_FREE, eina_list_iterator_new(), eina_list_last(), eina_list_remove_list(), EINA_MAGIC_SET, EINA_SAFETY_ON_FALSE_RETURN_VAL, EINA_TRUE, EINA_UNUSED, ERR, EVAS_CANVAS_CLASS, evas_object_del(), evas_object_grid_add(), evas_object_smart_changed(), evas_object_smart_member_add(), evas_object_smart_member_del(), evas_object_smart_parent_get(), FUNC_ACCESSOR_FREE, FUNC_ACCESSOR_GET_AT, FUNC_ACCESSOR_GET_CONTAINER, FUNC_ITERATOR_FREE, FUNC_ITERATOR_GET_CONTAINER, and FUNC_ITERATOR_NEXT.
Referenced by evas_object_grid_add().
void evas_object_grid_mirrored_set | ( | Eo * | obj, |
Eina_Bool | mirrored | ||
) |
Sets the mirrored mode of the grid.
In mirrored mode the grid items go from right to left instead of left to right. That is, 0,0 is top right, not to left.
[in] | obj | The object. |
[in] | mirrored | true if mirrored mode is set, false otherwise |
Eina_Bool evas_object_grid_mirrored_get | ( | const Eo * | obj | ) |
Gets the mirrored mode of the grid.
See also evas_object_grid_mirrored_set
[in] | obj | The object. |
true
if mirrored mode is set, false
otherwisevoid evas_object_textgrid_font_source_set | ( | Eo * | obj, |
const char * | font_source | ||
) |
Set the font (source) file to be used on a given textgrid object.
This function allows the font file font_source
to be explicitly set for the textgrid object obj
, overriding system lookup, which will first occur in the given file's contents. If font_source
is NULL
or is an empty string, or the same font_source has already been set, or on error, this function does nothing.
[in] | font_source | The font file's path. |
const char* evas_object_textgrid_font_source_get | ( | const Eo * | obj | ) |
Get the font file's path which is being used on a given textgrid object.
This function returns the font source path of the textgrid object obj
. If the font source path has not been set, or on error, NULL
is returned.
void evas_object_textgrid_font_set | ( | Eo * | obj, |
const char * | font_name, | ||
Evas_Font_Size | font_size | ||
) |
Set the font family and size on a given textgrid object.
This function allows the font name font_name
and size font_size
of the textgrid object obj
to be set. The font_name
string has to follow fontconfig's convention on naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list
command's output, on your system, to get an idea). It also has to be a monospace font. If font_name
is NULL
, or if it is an empty string, or if font_size
is less or equal than 0, or on error, this function does nothing.
[in] | font_name | The font (family) name. |
[in] | font_size | The font size, in points. |
void evas_object_textgrid_font_get | ( | const Eo * | obj, |
const char ** | font_name, | ||
Evas_Font_Size * | font_size | ||
) |
Retrieve the font family and size in use on a given textgrid object.
This function allows the font name and size of a textgrid object obj
to be queried and stored respectively in the buffers font_name
and font_size
. Be aware that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. On error, the font name is the empty string and the font size is 0. font_name
and font_source
can be NULL
.
[out] | font_name | The font (family) name. |
[out] | font_size | The font size, in points. |