forked from enlightenment/efl
elm_menu: move -> relative_move
This commit is contained in:
parent
996671ce26
commit
66ee9cf3e2
|
@ -981,7 +981,7 @@ _elm_menu_efl_ui_widget_widget_parent_get(Eo *obj EINA_UNUSED, Elm_Menu_Data *sd
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_elm_menu_move(Eo *obj, Elm_Menu_Data *sd, Evas_Coord x, Evas_Coord y)
|
_elm_menu_relative_move(Eo *obj, Elm_Menu_Data *sd, Evas_Coord x, Evas_Coord y)
|
||||||
{
|
{
|
||||||
sd->xloc = x;
|
sd->xloc = x;
|
||||||
sd->yloc = y;
|
sd->yloc = y;
|
||||||
|
|
|
@ -6,13 +6,14 @@ class Elm.Menu (Efl.Ui.Widget, Efl.Ui.Clickable, Efl.Ui.Menu,
|
||||||
eo_prefix: elm_obj_menu;
|
eo_prefix: elm_obj_menu;
|
||||||
event_prefix: elm_menu;
|
event_prefix: elm_menu;
|
||||||
methods {
|
methods {
|
||||||
move {
|
relative_move {
|
||||||
[[Move the menu to a new position
|
[[Move the menu to a new position
|
||||||
|
|
||||||
Sets the top-left position of the menu to ($x, $y).
|
Sets the top-left position of the menu to ($x, $y).
|
||||||
|
|
||||||
Note: $x and $y coordinates are relative to parent.
|
Note: $x and $y coordinates are relative to parent.
|
||||||
]]
|
]]
|
||||||
|
legacy: elm_menu_move;
|
||||||
params {
|
params {
|
||||||
@in x: int; [[The new X coordinate]]
|
@in x: int; [[The new X coordinate]]
|
||||||
@in y: int; [[The new Y coordinate]]
|
@in y: int; [[The new Y coordinate]]
|
||||||
|
|
Loading…
Reference in New Issue