elm_map: implement zoom_mode_get, zoom_level_get

Test Plan:
map_example_01

Check that +,- button is working and no error message.

Reviewers: zmike, Hermet

Reviewed By: Hermet

Subscribers: #reviewers, cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6771
This commit is contained in:
Yeongjong Lee 2018-08-08 16:05:16 +09:00 committed by Hermet Park
parent bb984b566b
commit c0ee322aba
2 changed files with 14 additions and 2 deletions

View File

@ -4304,6 +4304,12 @@ _elm_map_efl_object_constructor(Eo *obj, Elm_Map_Data *sd)
return obj;
}
EOLIAN static double
_elm_map_efl_ui_zoom_zoom_level_get(const Eo *obj EINA_UNUSED, Elm_Map_Data *sd)
{
return sd->zoom;
}
EOLIAN static void
_elm_map_efl_ui_zoom_zoom_level_set(Eo *obj, Elm_Map_Data *sd, double zoom)
{
@ -4333,6 +4339,12 @@ elm_map_zoom_get(const Eo *obj)
return efl_ui_zoom_level_get(obj);
}
EOLIAN static Efl_Ui_Zoom_Mode
_elm_map_efl_ui_zoom_zoom_mode_get(const Eo *obj EINA_UNUSED, Elm_Map_Data *sd)
{
return sd->mode;
}
EOLIAN static void
_elm_map_efl_ui_zoom_zoom_mode_set(Eo *obj, Elm_Map_Data *sd, Efl_Ui_Zoom_Mode mode)
{

View File

@ -533,8 +533,8 @@ class Elm.Map (Efl.Ui.Widget, Elm.Interface_Scrollable,
Efl.Ui.Focus.Object.on_focus_update;
Efl.Ui.Widget.widget_event;
Efl.Access.Widget.Action.elm_actions { get; }
Efl.Ui.Zoom.zoom_level { set; }
Efl.Ui.Zoom.zoom_mode { set; }
Efl.Ui.Zoom.zoom_level { set; get; }
Efl.Ui.Zoom.zoom_mode { set; get; }
Elm.Interface_Scrollable.wheel_disabled { set; }
}
events {