Widgets can have different styles of look. More...
Functions | |
Eina_Bool | elm_object_style_set (Evas_Object *obj, const char *style) |
Set the style to used by a given widget. More... | |
const char * | elm_object_style_get (const Evas_Object *obj) |
Get the style used by the widget. More... | |
EOAPI void | elm_wdg_item_disabled_set (Eina_Bool disable) |
Set the disabled state of an widget item. More... | |
EOAPI Eina_Bool | elm_wdg_item_disabled_get (void) |
Get the disabled state of an widget item. More... | |
void | elm_object_item_disabled_set (Elm_Widget_Item *obj, Eina_Bool disable) |
Set the disabled state of an widget item. More... | |
Eina_Bool | elm_object_item_disabled_get (const Elm_Widget_Item *obj) |
Get the disabled state of an widget item. More... | |
Widgets can have different styles of look.
These generic API's set styles of widgets, if they support them (and if the theme(s) do).
This example contemplates some of these functions.
Eina_Bool elm_object_item_disabled_get | ( | const Elm_Widget_Item * | obj | ) |
Get the disabled state of an widget item.
This gets the state of the widget, which might be enabled or disabled.
References elm_wdg_item_disabled_get().
void elm_object_item_disabled_set | ( | Elm_Widget_Item * | obj, |
Eina_Bool | disable | ||
) |
Set the disabled state of an widget item.
Elementary object item can be disabled, in which state they won't receive input and, in general, will be themed differently from their normal state, usually greyed out. Useful for contexts where you don't want your users to interact with some of the parts of you interface.
This sets the state for the widget item, either disabling it or enabling it back.
[in] | disable | EINA_TRUE , if the widget item is disabled, EINA_FALSE if it's enabled (or on errors) |
References elm_wdg_item_disabled_set().
const char* elm_object_style_get | ( | const Evas_Object * | obj | ) |
Get the style used by the widget.
This gets the style being used for that widget. Note that the string pointer is only valid as long as the object is valid and the style doesn't change.
obj | The Elementary widget to query for its style |
Eina_Bool elm_object_style_set | ( | Evas_Object * | obj, |
const char * | style | ||
) |
Set the style to used by a given widget.
obj | The Elementary widget to style |
style | The name of the style to use on it |
EINA_TRUE
on success, EINA_FALSE
otherwiseThis sets the style (by name) that will define the appearance of a widget. Styles vary from widget to widget and may also be defined by other themes by means of extensions and overlays.
EOAPI Eina_Bool elm_wdg_item_disabled_get | ( | void | ) |
Get the disabled state of an widget item.
This gets the state of the widget, which might be enabled or disabled.
Referenced by elm_object_item_disabled_get().
EOAPI void elm_wdg_item_disabled_set | ( | Eina_Bool | disable | ) |
Set the disabled state of an widget item.
Elementary object item can be disabled, in which state they won't receive input and, in general, will be themed differently from their normal state, usually greyed out. Useful for contexts where you don't want your users to interact with some of the parts of you interface.
This sets the state for the widget item, either disabling it or enabling it back.
[in] | disable | EINA_TRUE , if the widget item is disabled, EINA_FALSE if it's enabled (or on errors) |
Referenced by elm_object_item_disabled_set().