Tizen Native API

Widgets can have different visual styles. These generic API set styles of widgets, they support them (and the theme(s) do).

Functions

Eina_Bool elm_object_style_set (Evas_Object *obj, const char *style)
 Sets the style to be used by a given widget.
const char * elm_object_style_get (const Evas_Object *obj)
 Gets the style used by the widget.
void elm_object_item_disabled_set (Elm_Object_Item *it, Eina_Bool disabled)
 Sets the disabled state of a widget item.
Eina_Bool elm_object_item_disabled_get (const Elm_Object_Item *it)
 Gets the disabled state of a widget item.

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]itThe 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
Remarks:
Elementary object item can be disabled, in which state it won't receive input and, in general, is themed differently from its normal state, usually greyed out. Useful for contexts where you don't want your users to interact with some of the parts of your interface.
This sets the state for the widget item, either disabling it or enabling it back.
Parameters:
[in]itThe Elementary object item
[in]disabledIf EINA_TRUE the state is disabled, otherwise EINA_FALSE if it is enabled
const char* elm_object_style_get ( const Evas_Object obj)

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]objThe Elementary widget to query for its style
Returns:
The style name used
See also:
elm_object_style_set()
Eina_Bool elm_object_style_set ( Evas_Object obj,
const char *  style 
)

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]objThe Elementary widget to style
[in]styleThe 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()