summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_ctxpopup.eo
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-11-30 16:18:46 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-30 17:59:56 +0900
commita58e2e1a790732428fa09d479fec63d433931f06 (patch)
tree81d1d75af4995c0d00f18c2d9d7e59c22d742a8e /src/lib/elementary/elm_ctxpopup.eo
parent496f2ed4277dbc03740494a7185a67060f7b2198 (diff)
Menu,Item Interface: Common interface for menu, toolbar and ctxpopup
Summary: efl_ui_menu interface provides common functions of menu, toolbar and ctxpopup. efl_ui_item interface provides common functions of menu_item, toolbar_item and ctxpopup_item. Also implemented some missing functions like selected_item set/get in ctxpopup. efl_ui_item interface should be used for other widget items as well. Test Plan: elementary_test Reviewers: jpeg, felipealmeida, raster, SanghyeonLee, cedric, yashu21985 Subscribers: bu5hm4n Differential Revision: https://phab.enlightenment.org/D3897
Diffstat (limited to 'src/lib/elementary/elm_ctxpopup.eo')
-rw-r--r--src/lib/elementary/elm_ctxpopup.eo58
1 files changed, 6 insertions, 52 deletions
diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo
index 0acf178..926a0fe 100644
--- a/src/lib/elementary/elm_ctxpopup.eo
+++ b/src/lib/elementary/elm_ctxpopup.eo
@@ -8,7 +8,8 @@ enum Elm.Ctxpopup.Direction
8 unknown [[Ctxpopup does not determine it's direction yet.]] 8 unknown [[Ctxpopup does not determine it's direction yet.]]
9} 9}
10 10
11class Elm.Ctxpopup (Elm.Layout, Elm.Interface.Atspi_Widget_Action, Efl.Orientation) 11class Elm.Ctxpopup (Elm.Layout, Elm.Interface.Atspi_Widget_Action,
12 Efl.Orientation, Efl.Ui.Menu)
12{ 13{
13 [[Elementary context popup class]] 14 [[Elementary context popup class]]
14 legacy_prefix: elm_ctxpopup; 15 legacy_prefix: elm_ctxpopup;
@@ -101,57 +102,6 @@ class Elm.Ctxpopup (Elm.Layout, Elm.Interface.Atspi_Widget_Action, Efl.Orientati
101 return: Elm.Ctxpopup.Direction(Elm.Ctxpopup.Direction.unknown); [[Direction]] 102 return: Elm.Ctxpopup.Direction(Elm.Ctxpopup.Direction.unknown); [[Direction]]
102 } 103 }
103 } 104 }
104 @property items {
105 get {
106 [[Get the internal list of items in a given ctxpopup widget.
107
108 This list is not to be modified in any way and must not be
109 freed. Use the list members with functions like
110 \@ref elm_object_item_text_set,
111 \@ref elm_object_item_text_get,
112 \@ref elm_object_item_del.
113
114 Warning: This list is only valid until $obj object's internal
115 items list is changed. It should be fetched again with another
116 call to this function when changes happen.
117
118 @since 1.11
119 ]]
120 return: const(list<Elm.Widget.Item>); [[The list of items or
121 $null on errors.]]
122
123 }
124 }
125 @property first_item {
126 get {
127 [[Get the first item in the given ctxpopup widget's list of
128 items.
129
130 See also @.item_append,
131 @.last_item.get.
132
133 @since 1.11
134 ]]
135 return: Elm.Widget.Item; [[The first item or $null, if it has no items (and on
136 errors).]]
137
138 }
139 }
140 @property last_item {
141 get {
142 [[Get the last item in the given ctxpopup widget's list of
143 items.
144
145 See also @.item_prepend,
146 @.first_item.get.
147
148 @since 1.1
149 ]]
150 return: Elm.Widget.Item; [[The last item or $null, if it has no items (and on
151 errors).]]
152
153 }
154 }
155 dismiss { 105 dismiss {
156 [[Dismiss a ctxpopup object 106 [[Dismiss a ctxpopup object
157 107
@@ -215,6 +165,10 @@ class Elm.Ctxpopup (Elm.Layout, Elm.Interface.Atspi_Widget_Action, Efl.Orientati
215 Elm.Widget.translate; 165 Elm.Widget.translate;
216 Elm.Widget.theme_apply; 166 Elm.Widget.theme_apply;
217 Elm.Widget.event; 167 Elm.Widget.event;
168 Efl.Ui.Menu.selected_item.get;
169 Efl.Ui.Menu.first_item.get;
170 Efl.Ui.Menu.last_item.get;
171 Efl.Ui.Menu.items.get;
218 Elm.Layout.sub_object_add_enable; 172 Elm.Layout.sub_object_add_enable;
219 Elm.Layout.sizing_eval; 173 Elm.Layout.sizing_eval;
220 Elm.Interface.Atspi_Widget_Action.elm_actions.get; 174 Elm.Interface.Atspi_Widget_Action.elm_actions.get;