widget: Mark focus_region_show as protected (EO)

This function is meant to be used by the widgets themselves, or internal
features such as elm_access.

Also remove const tag: this function call is definitely modifying the
widget (panning around and all that).

Ref T5363
This commit is contained in:
Jean-Philippe Andre 2017-08-29 14:48:48 +09:00
parent 233068c30c
commit c6c1751fe3
3 changed files with 15 additions and 11 deletions

View File

@ -1029,7 +1029,7 @@ _propagate_event_legacy(Eo *parent, const Efl_Event *event, Eo *obj, Elm_Event_C
* ignore region show action.
*/
EOLIAN static void
_elm_widget_focus_region_show(const Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
_elm_widget_focus_region_show(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
{
Evas_Coord ox, oy;
Eina_Rectangle r;

View File

@ -519,6 +519,19 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
region: Eina.Rectangle; [[The relative region to show.]]
}
}
focus_region_show @protected {
[[Show focus region.
See also @.focus_region.
]]
}
/* FIXME: This enum is in Elm namespace! */
@property focus_region_show_mode {
[[Control the focus_region_show mode.]]
values {
mode: Elm.Focus.Region.Show_Mode; [[Focus region show mode]]
}
}
/* Old focus API. FIXME: Needs massive clean up! */
@property focus_order {
@ -670,9 +683,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
@out weight: double; [[Weight]]
}
}
focus_region_show @const {
[[Show focus region]]
}
focus_disabled_handle {
[[Handle disable widget focus]]
}
@ -748,12 +758,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
style: string; [[The name of the focus highlight style.]]
}
}
@property focus_region_show_mode {
[[Control the focus_region_show mode.]]
values {
mode: Elm.Focus.Region.Show_Mode; [[Focus region show mode]]
}
}
/* Focus Manager API */
focus_register {

View File

@ -722,7 +722,7 @@ EAPI Eina_Bool elm_widget_disabled_get(const Evas_Object *obj);
EAPI void elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool forceshow);
EAPI void elm_widget_show_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
EAPI Eina_Bool elm_widget_focus_region_get(const Evas_Object *obj, Eina_Rectangle *r);
EAPI void elm_widget_focus_region_show(const Evas_Object *obj);
EAPI void elm_widget_focus_region_show(Evas_Object *obj);
EAPI void elm_widget_scroll_hold_push(Evas_Object *obj);
EAPI void elm_widget_scroll_hold_pop(Evas_Object *obj);
EAPI int elm_widget_scroll_hold_get(const Evas_Object *obj);