summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_ctxpopup.eo
diff options
context:
space:
mode:
authorJEONGHYUN YUN <jh0506.yun@samsung.com>2017-08-10 14:12:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-10 14:42:08 +0900
commitbf0b3e0b75f5c6ebc5cb96211b3b21235422e358 (patch)
tree1a53d2dfc466f9088d890cb5697f130ade24ffd7 /src/lib/elementary/elm_ctxpopup.eo
parent080c92658890bc3023aa2568c3f4679987a5154f (diff)
elm_ctxpopup: Add APIs to insert before/after item to a ctxpopup object.
Summary: There were only 2 APIs (item_append, item_prepend) for ctxpopup item add. Added more item add APIs (item_insert_before and item_insert_after) for convenience. Test Plan: 1. launch elementary_test - ctxpopup 2. click Ctxpopup with callback function sample 3. check whether there are 3 items on ctxpopup Reviewers: woohyun, Jaehyun, jpeg, cedric Reviewed By: jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5004
Diffstat (limited to 'src/lib/elementary/elm_ctxpopup.eo')
-rw-r--r--src/lib/elementary/elm_ctxpopup.eo35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo
index 39448e2..69615ee 100644
--- a/src/lib/elementary/elm_ctxpopup.eo
+++ b/src/lib/elementary/elm_ctxpopup.eo
@@ -113,10 +113,43 @@ class Elm.Ctxpopup (Efl.Ui.Layout, Elm.Interface.Atspi_Widget_Action,
113 clear { 113 clear {
114 [[Clear all items in the given ctxpopup object.]] 114 [[Clear all items in the given ctxpopup object.]]
115 } 115 }
116 item_insert_before {
117 [[Insert a new item to a ctxpopup object before item $before.
118
119 See also elm_object_content_set.
120
121 @since 1.21
122 ]]
123 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
124
125 params {
126 @in before: Elm.Widget.Item; [[The ctxpopup item to insert before.]]
127 @in label: string; [[The Label of the new item]]
128 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
129 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
130 @in data: const(void_ptr) @optional; [[Data passed to $func]]
131 }
132 }
133 item_insert_after {
134 [[Insert a new item to a ctxpopup object after item $after.
135
136 See also elm_object_content_set.
137
138 @since 1.21
139 ]]
140 return: Elm.Widget.Item; [[A handle to the item added or $null, on errors.]]
141
142 params {
143 @in after: Elm.Widget.Item; [[The ctxpopup item to insert after.]]
144 @in label: string; [[The Label of the new item]]
145 @in icon: Efl.Canvas.Object @optional; [[Icon to be set on new item]]
146 @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
147 @in data: const(void_ptr) @optional; [[Data passed to $func]]
148 }
149 }
116 item_append { 150 item_append {
117 [[Add a new item to a ctxpopup object. 151 [[Add a new item to a ctxpopup object.
118 152
119
120 Warning:Ctxpopup can't hold both an item list and a content at the same 153 Warning:Ctxpopup can't hold both an item list and a content at the same
121 time. When an item is added, any previous content will be removed. 154 time. When an item is added, any previous content will be removed.
122 155