2015-04-22 04:53:19 -07:00
|
|
|
class Elm.Hoversel (Elm.Button, Evas.Selectable_Interface,
|
2015-07-05 09:09:45 -07:00
|
|
|
Evas.Clickable_Interface,
|
2014-07-25 01:33:19 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action)
|
2014-03-23 02:59:22 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_hoversel;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property horizontal {
|
2014-03-23 02:59:22 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief This sets the hoversel to expand horizontally.
|
|
|
|
|
|
|
|
@note The initial button will display horizontally regardless of this
|
|
|
|
setting.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief This returns whether the hoversel is set to expand horizontally.
|
|
|
|
|
|
|
|
@return If true, the hover will expand horizontally to the right.
|
|
|
|
|
|
|
|
@see elm_hoversel_horizontal_set()
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
horizontal: bool; /*@ If true, the hover will expand horizontally to the
|
2014-03-23 02:59:22 -07:00
|
|
|
right. */
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property hover_parent {
|
2014-03-23 02:59:22 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set the Hover parent
|
|
|
|
|
|
|
|
Sets the hover parent object, the area that will be darkened when the
|
|
|
|
hoversel is clicked. Should probably be the window that the hoversel is
|
|
|
|
in. See @ref Hover objects for more information.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the Hover parent
|
|
|
|
|
|
|
|
@return The used parent
|
|
|
|
|
|
|
|
Get the hover parent object.
|
|
|
|
|
|
|
|
@see elm_hoversel_hover_parent_set()
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
values {
|
2015-06-26 07:36:43 -07:00
|
|
|
parent: Evas.Object * @nullable; /*@ The parent to use */
|
2014-03-23 02:59:22 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property expanded {
|
2014-03-23 02:59:22 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Returns whether the hoversel is expanded.
|
|
|
|
|
2014-06-18 04:57:52 -07:00
|
|
|
@return This will return @c EINA_TRUE if the hoversel is expanded or
|
2014-03-23 02:59:22 -07:00
|
|
|
@c EINA_FALSE if it is not expanded.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-23 02:59:22 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property items {
|
2014-03-23 02:59:22 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the list of items within the given hoversel.
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
@return Returns a list of Elm.Widget_Item
|
2014-03-23 02:59:22 -07:00
|
|
|
|
|
|
|
@see elm_hoversel_item_add()
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
2015-08-06 06:30:34 -07:00
|
|
|
return: const(list<Elm.Widget_Item *>)*;
|
2014-03-23 02:59:22 -07:00
|
|
|
}
|
|
|
|
}
|
2015-08-04 06:51:36 -07:00
|
|
|
@property scroll_enabled {
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Limit the size of contents and make them scrollable.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Returns whether the contents of hoversel are scrollable or not.
|
|
|
|
|
|
|
|
@return @c EINA_TRUE scrollable. @c EINA_FALSE otherwise.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
scroll_enabled: bool;
|
|
|
|
}
|
|
|
|
}
|
2014-03-23 02:59:22 -07:00
|
|
|
hover_begin {
|
|
|
|
/*@
|
|
|
|
@brief This triggers the hoversel popup from code, the same as if the user
|
|
|
|
had clicked the button.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
|
|
|
|
}
|
|
|
|
clear {
|
|
|
|
/*@
|
|
|
|
@brief This will remove all the children items from the hoversel.
|
|
|
|
|
|
|
|
@warning Should @b not be called while the hoversel is active; use
|
|
|
|
elm_hoversel_expanded_get() to check first.
|
|
|
|
|
|
|
|
@see elm_object_item_del()
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
|
|
|
|
}
|
|
|
|
hover_end {
|
|
|
|
/*@
|
|
|
|
@brief This dismisses the hoversel popup as if the user had clicked
|
|
|
|
outside the hover.
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
|
|
|
|
}
|
|
|
|
item_add {
|
|
|
|
/*@
|
|
|
|
@brief Add an item to the hoversel button
|
|
|
|
|
|
|
|
@return A handle to the item added.
|
|
|
|
|
|
|
|
This adds an item to the hoversel to show when it is clicked. Note: if you
|
|
|
|
need to use an icon from an edje file then use
|
|
|
|
elm_hoversel_item_icon_set() right after this function, and set
|
|
|
|
icon_file to NULL here.
|
|
|
|
|
|
|
|
For more information on what @p icon_file and @p icon_type are, see the
|
|
|
|
@ref Icon "icon documentation".
|
|
|
|
|
|
|
|
@ingroup Hoversel */
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-23 02:59:22 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in label: const(char)* @optional; /*@ The text label to use for the item (NULL if not desired) */
|
|
|
|
@in icon_file: const(char)* @optional; /*@ An image file path on disk to use for the icon or standard
|
2014-03-23 02:59:22 -07:00
|
|
|
icon name (NULL if not desired) */
|
2015-05-18 08:16:08 -07:00
|
|
|
@in icon_type: Elm_Icon_Type; /*@ The icon type if relevant */
|
|
|
|
@in func: Evas_Smart_Cb @optional; /*@ Convenience function to call when this item is selected. The last
|
2014-03-23 02:59:22 -07:00
|
|
|
parameter @p event_info of @c func is the selected item pointer. */
|
2015-05-18 08:16:08 -07:00
|
|
|
@in data: const(void)* @optional; /*@ Data to pass to item-related functions */
|
2014-03-23 02:59:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2014-09-27 22:14:00 -07:00
|
|
|
Eo.Base.destructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Evas.Object_Smart.hide;
|
|
|
|
Evas.Object_Smart.show;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.parent.set;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.translate;
|
|
|
|
Elm.Widget.event;
|
2015-04-22 04:53:19 -07:00
|
|
|
Elm.Button.admits_autorepeat.get;
|
2014-07-25 01:33:19 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
|
2014-03-23 02:59:22 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
dismissed;
|
|
|
|
expanded;
|
|
|
|
item,focused;
|
|
|
|
item,unfocused;
|
|
|
|
language,changed;
|
|
|
|
access,changed;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|