2015-05-20 04:15:49 -07:00
|
|
|
import elm_general;
|
|
|
|
|
2018-04-13 03:53:01 -07:00
|
|
|
enum Elm.Toolbar_Shrink_Mode
|
2015-05-17 05:02:03 -07:00
|
|
|
{
|
2015-06-11 08:39:33 -07:00
|
|
|
[[Set toolbar's items display behavior, it can be scrollable,
|
|
|
|
show a menu with exceeding items, or simply hide them.
|
2015-05-17 05:02:03 -07:00
|
|
|
|
2015-06-11 08:39:33 -07:00
|
|
|
Default value is #ELM_TOOLBAR_SHRINK_MENU. It reads value
|
|
|
|
from elm config.
|
2015-05-17 05:02:03 -07:00
|
|
|
|
2015-06-11 08:39:33 -07:00
|
|
|
Values don't work as bitmask, only one can be chosen.
|
2015-05-17 05:02:03 -07:00
|
|
|
|
2015-07-08 07:49:38 -07:00
|
|
|
See also @Elm.Toolbar.shrink_mode.set, @Elm.Toolbar.shrink_mode.get.
|
2015-06-11 08:39:33 -07:00
|
|
|
]]
|
2015-05-17 05:02:03 -07:00
|
|
|
|
|
|
|
legacy: elm_toolbar_shrink;
|
|
|
|
|
2015-06-11 08:39:33 -07:00
|
|
|
none, [[Set toolbar minimum size to fit all the items.]]
|
|
|
|
hide, [[Hide exceeding items.]]
|
|
|
|
scroll, [[Allow accessing exceeding items through a scroller.]]
|
|
|
|
menu, [[Inserts a button to pop up a menu with exceeding items.]]
|
|
|
|
expand, [[Expand all items according the size of the toolbar.]]
|
|
|
|
last [[Indicates error if returned by elm_toolbar_shrink_mode_get()]]
|
2015-05-17 05:02:03 -07:00
|
|
|
}
|
|
|
|
|
2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Toolbar extends Efl.Ui.Widget implements Efl.Ui.Focus.Composition, Elm.Interface_Scrollable, Efl.Ui.Direction,
|
2018-04-03 04:27:30 -07:00
|
|
|
Efl.Access.Widget.Action, Efl.Access.Selection, Efl.Access.Object,
|
2019-02-24 01:57:01 -08:00
|
|
|
Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.Legacy, Elm.Widget_Item_Container
|
2014-03-27 01:15:16 -07:00
|
|
|
{
|
2016-11-23 02:43:39 -08:00
|
|
|
[[Elementary toolbar class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_toolbar;
|
2014-03-27 01:15:16 -07:00
|
|
|
eo_prefix: elm_obj_toolbar;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_toolbar;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2018-04-16 11:02:59 -07:00
|
|
|
@property selected_item {
|
|
|
|
get {
|
|
|
|
[[Get the selected item in the widget.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
item: Elm.Widget.Item; [[The selected item or $null.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property first_item {
|
|
|
|
get {
|
|
|
|
[[Get the first item in the widget.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
item: Elm.Widget.Item; [[The first item or $null.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property last_item {
|
|
|
|
get {
|
|
|
|
[[Get the last item in the widget.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
item: Elm.Widget.Item; [[The last item or $null.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property items {
|
|
|
|
get {
|
|
|
|
[[Returns a list of the widget item.]]
|
|
|
|
return: iterator<Elm.Widget.Item> @owned @warn_unused; [[iterator to widget items]]
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property homogeneous {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control homogeneous mode.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
This will enable the homogeneous mode where items are of the same size.]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
homogeneous: bool; [[Assume the items within the toolbar are of the same size (true = on, false = off). Default is $false.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property align {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control the alignment of the items.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Alignment of toolbar items, from 0.0 to indicates to align
|
|
|
|
left, to 1.0, to align to right. 0.5 centralize
|
|
|
|
items.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Centered items by default.]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
align: double; [[The new alignment, a float between 0.0 and 1.0.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property select_mode {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control the toolbar select mode.
|
|
|
|
|
|
|
|
elm_toolbar_select_mode_set() changes item select mode in the toolbar widget.
|
|
|
|
- #ELM_OBJECT_SELECT_MODE_DEFAULT : Items will only call their selection func and
|
|
|
|
callback when first becoming selected. Any further clicks will
|
|
|
|
do nothing, unless you set always select mode.
|
|
|
|
- #ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected,
|
|
|
|
every click will make the selected callbacks be called.
|
|
|
|
- #ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select items
|
|
|
|
entirely and they will neither appear selected nor call selected
|
|
|
|
callback functions.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
mode: Elm.Object.Select_Mode(Elm.Object.Select_Mode.max); [[The select mode If getting mode fails, it returns #ELM_OBJECT_SELECT_MODE_MAX]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property icon_size {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control the icon size, in pixels, to be used by toolbar items.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Note: Default value is $32. It reads value from elm config.]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
icon_size: int; [[The icon size in pixels]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property shrink_mode {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control the item displaying mode of a given toolbar widget $obj.
|
|
|
|
|
|
|
|
The toolbar won't scroll under #ELM_TOOLBAR_SHRINK_NONE mode, but
|
|
|
|
it will enforce a minimum size, so that all the items will fit
|
|
|
|
inside it. It won't scroll and won't show the items that don't fit
|
|
|
|
under #ELM_TOOLBAR_SHRINK_HIDE mode. Finally, it'll scroll under
|
|
|
|
#ELM_TOOLBAR_SHRINK_SCROLL mode, and it will create a button to
|
|
|
|
aggregate items which didn't fit with the #ELM_TOOLBAR_SHRINK_MENU
|
|
|
|
mode.
|
|
|
|
|
2016-01-03 16:31:29 -08:00
|
|
|
If shrink mode is changed, Toolbar will send one of the following
|
|
|
|
signal to each item for informing the current shrink mode.
|
|
|
|
"elm,state,shrink,default"
|
|
|
|
"elm,state,shrink,hide"
|
|
|
|
"elm,state,shrink,scroll"
|
|
|
|
"elm,state,shrink,menu"
|
|
|
|
"elm,state,shrink,expand"
|
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Warning: This function's behavior will clash with those of
|
|
|
|
elm_scroller_policy_set(), so use either one of them, but not both.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2018-04-13 03:53:01 -07:00
|
|
|
shrink_mode: Elm.Toolbar_Shrink_Mode; [[Toolbar's items display behavior]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property menu_parent {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Control the parent object of the toolbar items' menus.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Each item can be set as item menu, with elm_toolbar_item_menu_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
For more details about setting the parent for toolbar menus, see
|
|
|
|
elm_menu_parent_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: elm_menu_parent_set() for details.
|
|
|
|
See: elm_toolbar_item_menu_set() for details.]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-06-20 21:26:15 -07:00
|
|
|
parent: Efl.Canvas.Object; [[The parent of the menu objects.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property standard_priority {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Set the standard priority of visible items in a toolbar
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
If the priority of the item is up to standard priority, it is shown in basic panel.
|
|
|
|
The other items are located in more menu or panel. The more menu or panel can be shown when the more item is clicked.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
@since 1.7]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
priority: int; [[The standard_priority of visible items]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property more_item {
|
2014-03-27 01:15:16 -07:00
|
|
|
get {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Get the more item which is auto-generated by toolbar.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Toolbar generates 'more' item when there is no more space to fit items in
|
|
|
|
and toolbar is in #ELM_TOOLBAR_SHRINK_MENU or #ELM_TOOLBAR_SHRINK_EXPAND mode.
|
|
|
|
The more item can be manipulated by elm_object_item_text_set() and
|
|
|
|
elm_object_item_content_set.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The toolbar more item.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_insert_before {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Insert a new item into the toolbar object before item $before.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
A new item will be created and added to the toolbar. Its position in
|
|
|
|
this toolbar will be just before item $before.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Items created with this method can be deleted with
|
|
|
|
elm_object_item_del().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Associated $data can be properly freed when item is deleted if a
|
|
|
|
callback function is set with elm_object_item_del_cb_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
If a function is passed as argument, it will be called every time this item
|
|
|
|
is selected, i.e., the user clicks over an unselected item.
|
|
|
|
If such function isn't needed, just passing
|
|
|
|
$NULL as $func is enough. The same should be done for $data.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Toolbar will load icon image from fdo or current theme.
|
|
|
|
This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
|
|
|
|
If an absolute path is provided it will load it direct from a file.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Note: This function does not accept relative icon path.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: elm_toolbar_item_icon_set()]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in before: Elm.Widget.Item; [[The toolbar item to insert before.]]
|
2016-05-31 08:02:26 -07:00
|
|
|
@in icon: string @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: string; [[The label of the item.]]
|
2015-08-11 06:46:41 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_insert_after {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Insert a new item into the toolbar object after item $after.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
A new item will be created and added to the toolbar. Its position in
|
|
|
|
this toolbar will be just after item $after.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Items created with this method can be deleted with
|
|
|
|
elm_object_item_del().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Associated $data can be properly freed when item is deleted if a
|
|
|
|
callback function is set with elm_object_item_del_cb_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
If a function is passed as argument, it will be called every time this item
|
|
|
|
is selected, i.e., the user clicks over an unselected item.
|
|
|
|
If such function isn't needed, just passing
|
|
|
|
$NULL as $func is enough. The same should be done for $data.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Toolbar will load icon image from fdo or current theme.
|
|
|
|
This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
|
|
|
|
If an absolute path is provided it will load it direct from a file.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Note: This function does not accept relative icon path.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: elm_toolbar_item_icon_set()]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in after: Elm.Widget.Item; [[The toolbar item to insert after.]]
|
2016-05-31 08:02:26 -07:00
|
|
|
@in icon: string @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: string; [[The label of the item.]]
|
2015-08-11 06:46:41 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_append {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Append item to the toolbar.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
A new item will be created and appended to the toolbar, i.e., will
|
|
|
|
be set as last item.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Items created with this method can be deleted with
|
|
|
|
elm_object_item_del().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Associated $data can be properly freed when item is deleted if a
|
|
|
|
callback function is set with elm_object_item_del_cb_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
If a function is passed as argument, it will be called every time this item
|
|
|
|
is selected, i.e., the user clicks over an unselected item.
|
|
|
|
If such function isn't needed, just passing
|
|
|
|
$NULL as $func is enough. The same should be done for $data.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Toolbar will load icon image from fdo or current theme.
|
|
|
|
This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
|
|
|
|
If an absolute path is provided it will load it direct from a file.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Note: This function does not accept relative icon path.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: elm_toolbar_item_icon_set()]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in icon: string @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: string; [[The label of the item.]]
|
2015-08-11 06:46:41 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
items_count @const {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Get the number of items in a toolbar]]
|
|
|
|
return: uint; [[The number of items in $obj toolbar]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
item_prepend {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Prepend item to the toolbar.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
A new item will be created and prepended to the toolbar, i.e., will
|
|
|
|
be set as first item.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Items created with this method can be deleted with
|
|
|
|
elm_object_item_del().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Associated $data can be properly freed when item is deleted if a
|
|
|
|
callback function is set with elm_object_item_del_cb_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
If a function is passed as argument, it will be called every time this item
|
|
|
|
is selected, i.e., the user clicks over an unselected item.
|
|
|
|
If such function isn't needed, just passing
|
|
|
|
$NULL as $func is enough. The same should be done for $data.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Toolbar will load icon image from fdo or current theme.
|
|
|
|
This behavior can be set by elm_toolbar_icon_order_lookup_set() function.
|
|
|
|
If an absolute path is provided it will load it direct from a file.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Note: This function does not accept relative icon path.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: elm_toolbar_item_icon_set()]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in icon: string @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: string; [[The label of the item.]]
|
2015-08-11 06:46:41 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[The data to associate with the item for related callbacks.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
item_find_by_label @const {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Returns a pointer to a toolbar item by its label.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2016-05-23 07:41:28 -07:00
|
|
|
return: Elm.Widget.Item; [[The pointer to the toolbar item matching $label or $NULL on failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in label: string; [[The label of the item to find.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_calculate;
|
|
|
|
Efl.Canvas.Group.group_member_add;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.on_access_update;
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
2018-01-19 00:25:47 -08:00
|
|
|
Efl.Ui.Focus.Object.on_focus_update;
|
2018-12-21 14:46:10 -08:00
|
|
|
Efl.Ui.L10n.translation_update;
|
2019-03-04 10:37:18 -08:00
|
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.focus_highlight_geometry { get; }
|
2019-02-24 01:57:01 -08:00
|
|
|
Elm.Widget_Item_Container.focused_item { get; }
|
2017-08-09 21:54:05 -07:00
|
|
|
Efl.Ui.Direction.direction { get; set; [[Only supports $vertical and $horizontal. Default is $horizontal.]] }
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.focus_state_apply;
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2018-04-03 04:27:30 -07:00
|
|
|
Efl.Access.Object.access_children { get; }
|
|
|
|
Efl.Access.Object.state_set { get; }
|
2017-09-18 19:18:22 -07:00
|
|
|
Efl.Access.Selection.selected_children_count { get; }
|
|
|
|
Efl.Access.Selection.selected_child { get; }
|
|
|
|
Efl.Access.Selection.selected_child_deselect;
|
|
|
|
Efl.Access.Selection.child_select;
|
|
|
|
Efl.Access.Selection.child_deselect;
|
|
|
|
Efl.Access.Selection.is_child_selected;
|
|
|
|
Efl.Access.Selection.all_children_select;
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Selection.access_selection_clear;
|
2017-10-15 08:44:18 -07:00
|
|
|
Efl.Ui.Focus.Composition.prepare;
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
item,focused: Efl.Object; [[Called when toolbar item got focus]]
|
|
|
|
item,unfocused: Efl.Object; [[Called when toolbar item lost focus]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|