2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Multibuttonentry (Elm.Layout)
|
2014-03-30 00:57:14 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_multibuttonentry;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property editable {
|
2014-03-30 00:57:14 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Sets if the multibuttonentry is to be editable or not.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry
|
|
|
|
|
|
|
|
@since 1.7 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get whether the multibuttonentry is editable or not.
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return $true if the multibuttonentry is editable by the user. $false if not.
|
2014-03-30 00:57:14 -07:00
|
|
|
|
|
|
|
@ingroup Multibuttonentry
|
|
|
|
|
|
|
|
@since 1.7 */
|
|
|
|
}
|
|
|
|
values {
|
2015-08-06 07:12:27 -07:00
|
|
|
editable: bool; /*@ If $true, user can add/delete item in multibuttonentry, if not, the multibuttonentry is non-editable. */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property expanded {
|
2014-03-30 00:57:14 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set/Unset the multibuttonentry to expanded state.
|
|
|
|
In expanded state, the complete entry will be displayed.
|
|
|
|
Otherwise, only single line of the entry will be displayed.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the value of expanded state.
|
|
|
|
In expanded state, the complete entry will be displayed.
|
|
|
|
Otherwise, only single line of the entry will be displayed.
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
@return $true if the widget is in expanded state. $false if not.
|
2014-03-30 00:57:14 -07:00
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
expanded: bool; /*@ the value of expanded state.
|
2015-08-06 07:12:27 -07:00
|
|
|
Set this to $true for expanded state.
|
2015-08-06 07:11:22 -07:00
|
|
|
Set this to false for single line state. */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property format_function {
|
2014-03-30 00:57:14 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set a function to format the string that will be used to display
|
|
|
|
the hidden items counter.
|
|
|
|
|
2015-08-06 07:12:27 -07:00
|
|
|
If @a format_function is $NULL, the default format will be used,
|
|
|
|
which is $"... + %d".
|
2014-03-30 00:57:14 -07:00
|
|
|
|
|
|
|
@see elm_multibuttonentry_format_function_set
|
|
|
|
@since 1.9
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
format_function: Elm_Multibuttonentry_Format_Cb @nullable; /*@ format_function The actual format function */
|
|
|
|
data: const(void)* @optional; /*@ data User data to passed to @a format_function */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property items {
|
2014-03-30 00:57:14 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get a list of items in the multibuttonentry
|
|
|
|
|
|
|
|
@return The list of items, or NULL if none
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
2015-08-06 06:30:34 -07:00
|
|
|
return: const(list<Elm.Widget_Item *>)*;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property first_item {
|
2014-03-30 00:57:14 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the first item in the multibuttonentry
|
|
|
|
|
|
|
|
@return The first item, or NULL if none
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property last_item {
|
2014-03-30 00:57:14 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the last item in the multibuttonentry
|
|
|
|
|
|
|
|
@return The last item, or NULL if none
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property entry {
|
2014-03-30 00:57:14 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the entry of the multibuttonentry object
|
|
|
|
|
|
|
|
@return The entry object, or NULL if none
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
2015-06-26 07:36:43 -07:00
|
|
|
return: Evas.Object *;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected_item {
|
2014-03-30 00:57:14 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the selected item in the multibuttonentry
|
|
|
|
|
|
|
|
@return The selected item, or NULL if none
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_prepend {
|
|
|
|
/*@
|
|
|
|
Prepend a new item to the multibuttonentry
|
|
|
|
|
|
|
|
@return A handle to the item added or NULL if not possible
|
|
|
|
|
|
|
|
@see Use elm_object_item_del() to delete the item.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in label: const(char)*; /*@ The label of new item */
|
|
|
|
@in func: Evas_Smart_Cb @optional; /*@ The callback function to be invoked when this item is pressed. */
|
|
|
|
@in data: void * @optional; /*@ The pointer to the data to be attached */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
clear {
|
|
|
|
/*@
|
|
|
|
Remove all items in the multibuttonentry.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
|
|
|
}
|
|
|
|
item_filter_remove {
|
|
|
|
/*@
|
|
|
|
Remove a filter from the list
|
|
|
|
|
|
|
|
Removes the given callback from the filter list. See elm_multibuttonentry_item_filter_append()
|
|
|
|
for more information.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in func: Elm_Multibuttonentry_Item_Filter_Cb; /*@ The filter function to remove */
|
|
|
|
@in data: void *; /*@ The user data passed when adding the function */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_insert_before {
|
|
|
|
/*@
|
|
|
|
Add a new item to the multibuttonentry before the indicated object
|
|
|
|
|
|
|
|
reference.
|
|
|
|
@return A handle to the item added or NULL if not possible
|
|
|
|
|
|
|
|
@see Use elm_object_item_del() to delete the item.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
params {
|
2015-08-06 06:30:34 -07:00
|
|
|
@in before: Elm.Widget_Item *; /*@ The item before which to add it */
|
2015-05-18 08:16:08 -07:00
|
|
|
@in label: const(char)*; /*@ The label of new item */
|
|
|
|
@in func: Evas_Smart_Cb @optional; /*@ The callback function to be invoked when this item is pressed. */
|
|
|
|
@in data: void * @optional; /*@ The pointer to the data to be attached */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_append {
|
|
|
|
/*@
|
|
|
|
Append a new item to the multibuttonentry
|
|
|
|
|
|
|
|
@return A handle to the item added or NULL if not possible
|
|
|
|
|
|
|
|
@see Use elm_object_item_del() to delete the item.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in label: const(char)*; /*@ The label of new item */
|
|
|
|
@in func: Evas_Smart_Cb @optional; /*@ The callback function to be invoked when this item is pressed. */
|
|
|
|
@in data: void * @optional; /*@ The pointer to the data to be attached */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_filter_prepend {
|
|
|
|
/*@
|
|
|
|
Prepend a filter function for text inserted in the Multibuttonentry
|
|
|
|
|
|
|
|
Prepend the given callback to the list. See elm_multibuttonentry_item_filter_append()
|
|
|
|
for more information
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in func: Elm_Multibuttonentry_Item_Filter_Cb; /*@ The function to use as text filter */
|
2015-08-06 07:12:27 -07:00
|
|
|
@in data: void *; /*@ User data to pass to $func */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_filter_append {
|
|
|
|
/*@
|
|
|
|
Append an item filter function for text inserted in the Multibuttonentry
|
|
|
|
|
|
|
|
Append the given callback to the list. This functions will be called
|
|
|
|
whenever any text is inserted into the Multibuttonentry, with the text to be inserted
|
|
|
|
as a parameter. The callback function is free to alter the text in any way
|
|
|
|
it wants, but it must remember to free the given pointer and update it.
|
|
|
|
If the new text is to be discarded, the function can free it and set it text
|
|
|
|
parameter to NULL. This will also prevent any following filters from being
|
|
|
|
called.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in func: Elm_Multibuttonentry_Item_Filter_Cb; /*@ The function to use as item filter */
|
2015-08-06 07:12:27 -07:00
|
|
|
@in data: void *; /*@ User data to pass to $func */
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_insert_after {
|
|
|
|
/*@
|
|
|
|
Add a new item to the multibuttonentry after the indicated object
|
|
|
|
|
|
|
|
@return A handle to the item added or NULL if not possible
|
|
|
|
|
|
|
|
@see Use elm_object_item_del() to delete the item.
|
|
|
|
|
|
|
|
@ingroup Multibuttonentry */
|
|
|
|
|
2015-08-06 06:30:34 -07:00
|
|
|
return: Elm.Widget_Item *;
|
2014-03-30 00:57:14 -07:00
|
|
|
params {
|
2015-08-06 06:30:34 -07:00
|
|
|
@in after: Elm.Widget_Item *; /*@ The item after which to add it */
|
2015-05-18 08:16:08 -07:00
|
|
|
@in label: const(char)*; /*@ The label of new item */
|
|
|
|
@in func: Evas_Smart_Cb @optional; /*@ The callback function to be invoked when this item is pressed. */
|
|
|
|
@in data: void * @optional; /*@ The pointer to the data to be attached */
|
2014-03-30 00:57:14 -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.add;
|
|
|
|
Evas.Object_Smart.del;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.access;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.on_focus;
|
|
|
|
Elm.Widget.translate;
|
|
|
|
Elm.Widget.event;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.text_set;
|
|
|
|
Elm.Layout.text_get;
|
|
|
|
Elm.Layout.sizing_eval;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
item,selected;
|
|
|
|
item,added;
|
|
|
|
item,deleted;
|
|
|
|
item,clicked;
|
2015-04-17 00:32:04 -07:00
|
|
|
item,longpressed;
|
2014-03-30 00:57:14 -07:00
|
|
|
expanded;
|
|
|
|
contracted;
|
|
|
|
expand,state,changed;
|
2015-05-06 07:33:22 -07:00
|
|
|
changed;
|
2014-03-30 00:57:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|