2015-07-06 02:21:26 -07:00
|
|
|
enum Elm.Ctxpopup.Direction
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Direction in which to show the popup.]]
|
2015-07-06 02:21:26 -07:00
|
|
|
down, [[Ctxpopup show appear below clicked area.]]
|
|
|
|
right, [[Ctxpopup show appear to the right of the clicked area.]]
|
|
|
|
left, [[Ctxpopup show appear to the left of the clicked area.]]
|
|
|
|
up, [[Ctxpopup show appear above the clicked area.]]
|
|
|
|
unknown [[Ctxpopup does not determine it's direction yet.]]
|
|
|
|
}
|
|
|
|
|
2016-04-12 05:09:50 -07:00
|
|
|
class Elm.Ctxpopup (Elm.Layout, Elm.Interface_Atspi_Widget_Action, Efl.Orientation)
|
2014-03-20 06:06:33 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_ctxpopup;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property auto_hide_disabled {
|
2014-03-20 06:06:33 -07:00
|
|
|
set {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Set ctxpopup auto hide mode triggered by ctxpopup policy.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Use this function when user wants ctxpopup not to hide automatically.
|
|
|
|
By default, ctxpopup is dismissed whenever mouse clicked its background area, language is changed,
|
|
|
|
and its parent geometry is updated(changed).
|
|
|
|
Not to hide ctxpopup automatically, disable auto hide function by calling this API,
|
|
|
|
then ctxpopup won't be dismissed in those scenarios.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Default value of disabled is $false.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.auto_hide_disabled.get.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.9
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get ctxpopup auto hide mode triggered by ctxpopup policy.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.auto_hide_disabled.set for more information.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.9
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-27 02:18:37 -07:00
|
|
|
disabled: bool; [[auto hide enable/disable.]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property hover_parent {
|
2014-03-20 06:06:33 -07:00
|
|
|
set {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Set the Ctxpopup's parent
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Set the parent object.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Note: \@ref elm_ctxpopup_add will automatically call this function
|
|
|
|
with its $parent argument.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also \@ref elm_ctxpopup_add,
|
|
|
|
\@ref elm_hover_parent_set.
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the Ctxpopup's parent
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.hover_parent.set for more information
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-27 02:18:37 -07:00
|
|
|
parent: Evas.Object *; [[The parent to use.]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property direction_priority {
|
2014-03-20 06:06:33 -07:00
|
|
|
set {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Set the direction priority of a ctxpopup.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
This functions gives a chance to user to set the priority of ctxpopup
|
|
|
|
showing direction. This doesn't guarantee the ctxpopup will appear in the
|
|
|
|
requested direction.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.Direction.
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the direction priority of a ctxpopup.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.direction_priority.set for more information.
|
|
|
|
]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-27 02:18:37 -07:00
|
|
|
first: Elm.Ctxpopup.Direction; [[1st priority of direction]]
|
|
|
|
second: Elm.Ctxpopup.Direction; [[2nd priority of direction]]
|
|
|
|
third: Elm.Ctxpopup.Direction; [[3th priority of direction]]
|
|
|
|
fourth: Elm.Ctxpopup.Direction; [[4th priority of direction]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property direction {
|
2014-03-20 06:06:33 -07:00
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the current direction of a ctxpopup.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Warning: Once the ctxpopup showed up, the direction would be determined
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
]]
|
2015-07-06 02:21:26 -07:00
|
|
|
return: Elm.Ctxpopup.Direction(Elm.Ctxpopup.Direction.unknown);
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property items {
|
2014-07-03 04:05:28 -07:00
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the internal list of items in a given ctxpopup widget.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
This list is not to be modified in any way and must not be
|
|
|
|
freed. Use the list members with functions like
|
|
|
|
\@ref elm_object_item_text_set,
|
|
|
|
\@ref elm_object_item_text_get,
|
|
|
|
\@ref elm_object_item_del.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Warning: This list is only valid until $obj object's internal
|
|
|
|
items list is changed. It should be fetched again with another
|
|
|
|
call to this function when changes happen.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.11
|
|
|
|
]]
|
2016-02-05 08:48:35 -08:00
|
|
|
return: const(list<Elm.Widget_Item*>)*; [[The list of items or
|
2015-07-27 02:18:37 -07:00
|
|
|
$null on errors.]]
|
2014-07-03 04:05:28 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property first_item {
|
2014-07-03 04:05:28 -07:00
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the first item in the given ctxpopup widget's list of
|
|
|
|
items.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.item_append,
|
|
|
|
@.last_item.get.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.11
|
|
|
|
]]
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *; [[The first item or $null, if it has no items (and on
|
2015-07-27 02:18:37 -07:00
|
|
|
errors).]]
|
2014-07-03 04:05:28 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property last_item {
|
2014-07-03 04:05:28 -07:00
|
|
|
get {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Get the last item in the given ctxpopup widget's list of
|
|
|
|
items.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also @.item_prepend,
|
|
|
|
@.first_item.get.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.1
|
|
|
|
]]
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *; [[The last item or $null, if it has no items (and on
|
2015-07-27 02:18:37 -07:00
|
|
|
errors).]]
|
2014-07-03 04:05:28 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2014-03-20 06:06:33 -07:00
|
|
|
dismiss {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Dismiss a ctxpopup object
|
2014-03-20 06:06:33 -07:00
|
|
|
|
|
|
|
Use this function to simulate clicking outside of the ctxpopup to dismiss it.
|
|
|
|
In this way, the ctxpopup will be hidden and the "clicked" signal will be
|
2015-07-27 02:18:37 -07:00
|
|
|
emitted.]]
|
2014-03-20 06:06:33 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
clear {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Clear all items in the given ctxpopup object.]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
item_append {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Add a new item to a ctxpopup object.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Warning:Ctxpopup can't hold both an item list and a content at the same
|
|
|
|
time. When an item is added, any previous content will be removed.
|
2014-03-20 06:06:33 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also \@ref elm_object_content_set.
|
|
|
|
]]
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *; [[A handle to the item added or $null, on errors.]]
|
2014-03-20 06:06:33 -07:00
|
|
|
|
|
|
|
params {
|
2015-07-27 02:18:37 -07:00
|
|
|
@in label: const(char)*; [[The Label of the new item]]
|
|
|
|
@in icon: Evas.Object * @optional; [[Icon to be set on new item]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
|
|
|
|
@in data: const(void)* @optional; [[Data passed to $func]]
|
2014-07-03 04:05:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_prepend {
|
2015-07-27 02:18:37 -07:00
|
|
|
[[Prepend a new item to a ctxpopup object.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
Warning: Ctxpopup can't hold both an item list and a content at the same
|
|
|
|
time. When an item is added, any previous content will be removed.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
See also \@ref elm_object_content_set.
|
2014-07-03 04:05:28 -07:00
|
|
|
|
2015-07-27 02:18:37 -07:00
|
|
|
@since 1.11
|
|
|
|
]]
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *; [[A handle to the item added or $null, on errors.]]
|
2014-07-03 04:05:28 -07:00
|
|
|
|
|
|
|
params {
|
2015-07-27 02:18:37 -07:00
|
|
|
@in label: const(char)*; [[The Label of the new item]]
|
|
|
|
@in icon: Evas.Object * @optional; [[Icon to be set on new item]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
|
|
|
|
@in data: const(void)* @optional; [[Data passed to $func]]
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.add;
|
2016-04-11 09:51:15 -07:00
|
|
|
Elm.Widget.widget_parent.set;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_direction;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.disable;
|
|
|
|
Elm.Widget.translate;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.event;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content.get;
|
|
|
|
Efl.Container.content.set;
|
|
|
|
Efl.Container.content_unset;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.sub_object_add_enable;
|
|
|
|
Elm.Layout.sizing_eval;
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Atspi_Widget_Action.elm_actions.get;
|
|
|
|
Elm.Interface_Atspi_Accessible.state_set.get;
|
2016-04-12 05:09:50 -07:00
|
|
|
Efl.Orientation.orientation;
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-05-03 04:28:16 -07:00
|
|
|
dismissed;
|
2016-01-07 22:11:11 -08:00
|
|
|
geometry,update;
|
2014-03-20 06:06:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|