forked from enlightenment/efl
hoversel: Added item_focus_set/item_focus_get.
Summary: @feature Reviewers: seoz, Hermet, raster Subscribers: seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D2436 Conflicts: src/lib/elm_hoversel_item.eo
This commit is contained in:
parent
19f90dc5b7
commit
0b7de4a33e
|
@ -267,6 +267,21 @@ _elm_hoversel_item_elm_widget_item_style_get(Eo *eo_it EINA_UNUSED,
|
|||
return elm_object_style_get(VIEW(it));
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_elm_hoversel_item_elm_widget_item_focus_set(Eo *eo_it EINA_UNUSED,
|
||||
Elm_Hoversel_Item_Data *it,
|
||||
Eina_Bool focused)
|
||||
{
|
||||
elm_widget_focus_set(VIEW(it), focused);
|
||||
}
|
||||
|
||||
EOLIAN static Eina_Bool
|
||||
_elm_hoversel_item_elm_widget_item_focus_get(Eo *eo_it EINA_UNUSED,
|
||||
Elm_Hoversel_Item_Data *it)
|
||||
{
|
||||
return elm_widget_focus_get(VIEW(it));
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_elm_hoversel_item_eo_base_destructor(Eo *eo_item, Elm_Hoversel_Item_Data *item)
|
||||
{
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
* @li elm_object_item_signal_emit - this works only when the item is created.
|
||||
* @li elm_object_item_style_set - this works only when the item is created.
|
||||
* @li elm_object_item_style_get - this works only when the item is created.
|
||||
* @li elm_object_item_focus_set - this works only when the item is created.
|
||||
* @li elm_object_item_focus_get - this works only when the item is created.
|
||||
*
|
||||
* See @ref tutorial_hoversel for an example.
|
||||
* @{
|
||||
|
|
|
@ -38,5 +38,7 @@ class Elm.Hoversel_Item(Elm.Widget_Item)
|
|||
Elm.Widget_Item.part_text.get;
|
||||
Elm.Widget_Item.style.get;
|
||||
Elm.Widget_Item.style.set;
|
||||
Elm.Widget_Item.focus.set;
|
||||
Elm.Widget_Item.focus.get;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue