Widgets can have different visual styles. These generic API set styles of widgets, they support them (and the theme(s) do).
Function Documentation
Gets the disabled state of a widget item.
This gets the state of the widget, which might be enabled or disabled.
- Since :
- 2.3.1
- Parameters:
-
[in] | it | The Elementary object item |
- Returns:
EINA_TRUE
if the widget item is disabled, otherwise EINA_FALSE
if it's enabled (or on errors)
Sets the disabled state of a widget item.
- Since :
- 2.3.1
- Parameters:
-
[in] | it | The Elementary object item |
[in] | disabled | If EINA_TRUE the state is disabled, otherwise EINA_FALSE if it is enabled |
Gets 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.
- Since :
- 2.3.1
- Parameters:
-
[in] | obj | The Elementary widget to query for its style |
- Returns:
- The style name used
- See also:
- elm_object_style_set()
Sets the style to be used by a given widget.
This sets the style (by name) that defines 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.
- Since :
- 2.3.1
- Parameters:
-
[in] | obj | The Elementary widget to style |
[in] | style | The name of the style to use on it |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
- See also:
- elm_theme_extension_add()
-
elm_theme_extension_del()
-
elm_theme_overlay_add()
-
elm_theme_overlay_del()