summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_ctxpopup.eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-05 17:00:37 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:15:05 -0800
commit441049ea2d7683a84f2a81197ee5cf8ba622e42f (patch)
tree76ac18f21a638ba30d9a44b227590992cc90a02b /src/lib/elementary/elm_ctxpopup.eo
parentbaac840c32591a06391a3147a39772e07e919c52 (diff)
elm_ctxpopup: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in efl and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8163
Diffstat (limited to 'src/lib/elementary/elm_ctxpopup.eo')
-rw-r--r--src/lib/elementary/elm_ctxpopup.eo248
1 files changed, 0 insertions, 248 deletions
diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo
deleted file mode 100644
index 8f58574..0000000
--- a/src/lib/elementary/elm_ctxpopup.eo
+++ /dev/null
@@ -1,248 +0,0 @@
1enum Elm.Ctxpopup.Direction
2{
3 [[Direction in which to show the popup.]]
4 down, [[Ctxpopup show appear below clicked area.]]
5 right, [[Ctxpopup show appear to the right of the clicked area.]]
6 left, [[Ctxpopup show appear to the left of the clicked area.]]
7 up, [[Ctxpopup show appear above the clicked area.]]
8 unknown [[Ctxpopup does not determine it's direction yet.]]
9}
10
11class Elm.Ctxpopup extends Efl.Ui.Layout_Base implements Efl.Ui.Focus.Layer, Efl.Access.Widget.Action, Efl.Ui.Legacy, Elm.Widget_Item_Container
12{
13 [[Elementary context popup class]]
14 legacy_prefix: elm_ctxpopup;
15 eo_prefix: elm_obj_ctxpopup;
16 event_prefix: elm_ctxpopup;
17 methods {
18 @property selected_item {
19 get {
20 [[Get the selected item in the widget.]]
21 }
22 values {
23 item: Elm.Widget.Item; [[The selected item or $null.]]
24 }
25 }
26 @property first_item {
27 get {
28 [[Get the first item in the widget.]]
29 }
30 values {
31 item: Elm.Widget.Item; [[The first item or $null.]]
32 }
33 }
34 @property last_item {
35 get {
36 [[Get the last item in the widget.]]
37 }
38 values {
39 item: Elm.Widget.Item; [[The last item or $null.]]
40 }
41 }
42 @property items {
43 get {
44 [[Returns a list of the widget item.]]
45 return: const(list<Elm.Widget.Item>); [[const list to widget items]]
46 }
47 }
48
49 @property horizontal {
50 set {
51 [[Change the ctxpopup's orientation to horizontal or vertical.]]
52 }
53 get {
54 [[Get the value of current ctxpopup object's orientation.
55
56 See also @.horizontal.set.
57 ]]
58 }
59 values {
60 horizontal: bool; [[$true for horizontal mode, $false for vertical.]]
61 }
62 }
63 @property auto_hide_disabled {
64 set {
65 [[Set ctxpopup auto hide mode triggered by ctxpopup policy.
66
67 Use this function when user wants ctxpopup not to hide automatically.
68 By default, ctxpopup is dismissed whenever mouse clicked its background area, language is changed,
69 and its parent geometry is updated(changed).
70 Not to hide ctxpopup automatically, disable auto hide function by calling this API,
71 then ctxpopup won't be dismissed in those scenarios.
72
73 Default value of disabled is $false.
74
75 See also @.auto_hide_disabled.get.
76
77 @since 1.9
78 ]]
79 }
80 get {
81 [[Get ctxpopup auto hide mode triggered by ctxpopup policy.
82
83 See also @.auto_hide_disabled.set for more information.
84
85 @since 1.9
86 ]]
87 }
88 values {
89 disabled: bool; [[Auto hide enable/disable.]]
90 }
91 }
92 @property hover_parent {
93 set {
94 [[Set the Ctxpopup's parent
95
96 Set the parent object.
97
98 Note: \@ref elm_ctxpopup_add will automatically call this function
99 with its $parent argument.
100
101 See also \@ref elm_ctxpopup_add,
102 \@ref elm_hover_parent_set.
103 ]]
104 }
105 get {
106 [[Get the Ctxpopup's parent
107
108 See also @.hover_parent.set for more information
109 ]]
110 }
111 values {
112 parent: Efl.Canvas.Object; [[The parent to use.]]
113 }
114 }
115 @property direction_priority {
116 set {
117 [[Set the direction priority of a ctxpopup.
118
119 This functions gives a chance to user to set the priority of ctxpopup
120 showing direction. This doesn't guarantee the ctxpopup will appear in the
121 requested direction.
122
123 See also @.Direction.
124 ]]
125 }
126 get {
127 [[Get the direction priority of a ctxpopup.
128
129 See also @.direction_priority.set for more information.
130 ]]
131 }
132 values {
133 first: Elm.Ctxpopup.Direction; [[1st priority of direction]]
134 second: Elm.Ctxpopup.Direction; [[2nd priority of direction]]
135 third: Elm.Ctxpopup.Direction; [[3th priority of direction]]
136 fourth: Elm.Ctxpopup.Direction; [[4th priority of direction]]
137 }
138 }
139 @property direction {
140 get {
141 [[Get the current direction of a ctxpopup.
142
143 Warning: Once the ctxpopup showed up, the direction would be determined
144
145 ]]
146 return: Elm.Ctxpopup.Direction(Elm.Ctxpopup.Direction.unknown); [[Direction]]
147 }
148 }
149 dismiss {
150 [[Dismiss a ctxpopup object
151
152 Use this function to simulate clicking outside of the ctxpopup to dismiss it.
153 In this way, the ctxpopup will be hidden and the "clicked" signal will be
154 emitted.]]
155
156 }
157 clear {
158 [[Clear all items in the given ctxpopup object.]]
159 }
160 item_insert_before {
161 [[Insert a new item to a ctxpopup object before item $before.
162
163 See also elm_object_content_set.
164
165 @since 1.21
166 ]]
167 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
168
169 params {
170 @in before: Elm.Widget.Item; [[The ctxpopup item to insert before.]]
171 @in label: string; [[The Label of the new item]]
172 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
173 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
174 @in data: const(void_ptr) @optional; [[Data passed to $func]]
175 }
176 }
177 item_insert_after {
178 [[Insert a new item to a ctxpopup object after item $after.
179
180 See also elm_object_content_set.
181
182 @since 1.21
183 ]]
184 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
185
186 params {
187 @in after: Elm.Widget.Item; [[The ctxpopup item to insert after.]]
188 @in label: string; [[The Label of the new item]]
189 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
190 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
191 @in data: const(void_ptr) @optional; [[Data passed to $func]]
192 }
193 }
194 item_append {
195 [[Add a new item to a ctxpopup object.
196
197 Warning:Ctxpopup can't hold both an item list and a content at the same
198 time. When an item is added, any previous content will be removed.
199
200 See also \@ref elm_object_content_set.
201 ]]
202 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
203
204 params {
205 @in label: string; [[The Label of the new item]]
206 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
207 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
208 @in data: const(void_ptr) @optional; [[Data passed to $func]]
209 }
210 }
211 item_prepend {
212 [[Prepend a new item to a ctxpopup object.
213
214 Warning: Ctxpopup can't hold both an item list and a content at the same
215 time. When an item is added, any previous content will be removed.
216
217 See also \@ref elm_object_content_set.
218
219 @since 1.11
220 ]]
221 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
222
223 params {
224 @in label: string; [[The Label of the new item]]
225 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
226 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
227 @in data: const(void_ptr) @optional; [[Data passed to $func]]
228 }
229 }
230 }
231 implements {
232 class.constructor;
233 Efl.Object.constructor;
234 Efl.Ui.Widget.widget_parent { set; }
235 Efl.Ui.Widget.widget_sub_object_add;
236 Efl.Ui.L10n.translation_update;
237 Efl.Ui.Widget.theme_apply;
238 Efl.Ui.Widget.widget_input_event_handler;
239 Elm.Widget_Item_Container.focused_item { get; }
240 Efl.Access.Widget.Action.elm_actions { get; }
241 Efl.Access.Object.state_set { get; }
242 Efl.Part.part_get;
243 }
244 events {
245 dismissed: void; [[Called when context popup was dismissed]]
246 geometry,update: const(ptr(Eina.Rect)); [[Called when context popup geometry was updated]]
247 }
248}