2015-05-20 04:15:49 -07:00
|
|
|
import elm_general;
|
|
|
|
|
2015-05-17 05:02:03 -07:00
|
|
|
enum Elm.Toolbar.Shrink_Mode
|
|
|
|
{
|
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
|
|
|
}
|
|
|
|
|
2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Toolbar (Elm.Widget, Elm_Interface_Scrollable,
|
2015-06-09 06:21:46 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action, Elm_Interface_Atspi_Selection,
|
|
|
|
Evas.Clickable_Interface, Evas.Selectable_Interface)
|
2014-03-27 01:15:16 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_toolbar;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@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 horizontal {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Change a toolbar's orientation
|
|
|
|
|
|
|
|
By default, a toolbar will be horizontal. Use this function to create a vertical toolbar.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
horizontal: bool; [[If $true, the toolbar is horizontal.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property icon_order_lookup {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Sets icon lookup order, for toolbar items' icons.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
Icons added before calling this function will not be affected.
|
|
|
|
The default lookup order is #ELM_ICON_LOOKUP_THEME_FDO.]]
|
|
|
|
set {
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-08-11 06:46:41 -07:00
|
|
|
order: Elm_Icon_Lookup_Order(1); [[The icon lookup order. (If getting the icon order loopup fails, it returns #ELM_ICON_LOOKUP_THEME_FDO)]]
|
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.
|
|
|
|
|
|
|
|
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 {
|
2015-08-11 06:46:41 -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 {
|
2015-08-11 06:46:41 -07:00
|
|
|
parent: Evas.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 selected_item {
|
2014-03-27 01:15:16 -07:00
|
|
|
get {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Get the selected item.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
The selected item can be unselected with function
|
|
|
|
elm_toolbar_item_selected_set().
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
The selected item always will be highlighted on toolbar.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The selected toolbar item.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property first_item {
|
2014-03-27 01:15:16 -07:00
|
|
|
get {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Get the first item in the given toolbar widget's list of items.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: @.item_append and @.last_item]]
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The first item or $NULL, if it has no items (and on errors)]]
|
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
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The toolbar more item.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property last_item {
|
2014-03-27 01:15:16 -07:00
|
|
|
get {
|
2015-08-11 06:46:41 -07:00
|
|
|
[[Get the last item in the given toolbar widget's list of items.
|
2014-03-27 01:15:16 -07:00
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
See: @.item_prepend and @.first_item]]
|
|
|
|
return: Elm.Widget_Item *; [[The last item or $NULL, if it has no items (and on errors)]]
|
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
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2015-08-11 06:46:41 -07:00
|
|
|
@in before: Elm.Widget_Item *; [[The toolbar item to insert before.]]
|
|
|
|
@in icon: const(char)* @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: const(char)*; [[The label of the item.]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
|
|
|
@in data: const(void)* @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
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2015-08-11 06:46:41 -07:00
|
|
|
@in after: Elm.Widget_Item *; [[The toolbar item to insert after.]]
|
|
|
|
@in icon: const(char)* @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: const(char)*; [[The label of the item.]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
|
|
|
@in data: const(void)* @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
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2015-08-11 06:46:41 -07:00
|
|
|
@in icon: const(char)* @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: const(char)*; [[The label of the item.]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
|
|
|
@in data: const(void)* @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
|
|
|
|
2015-08-11 06:46:41 -07:00
|
|
|
return: Elm.Widget_Item *; [[The created item or $NULL upon failure.]]
|
2014-03-27 01:15:16 -07:00
|
|
|
params {
|
2015-08-11 06:46:41 -07:00
|
|
|
@in icon: const(char)* @optional; [[A string with icon name or the absolute path of an image file.]]
|
|
|
|
@in label: const(char)*; [[The label of the item.]]
|
|
|
|
@in func: Evas_Smart_Cb @optional; [[The function to call when the item is clicked.]]
|
|
|
|
@in data: const(void)* @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
|
|
|
|
2015-08-11 06:46:41 -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 {
|
2015-08-11 06:46:41 -07:00
|
|
|
@in label: const(char)*; [[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;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2015-10-15 16:33:15 -07:00
|
|
|
Evas.Object_Smart.calculate;
|
2014-06-27 15:36:05 -07:00
|
|
|
Evas.Object_Smart.move;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.member_add;
|
|
|
|
Evas.Object_Smart.resize;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.access;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.on_focus;
|
|
|
|
Elm.Widget.translate;
|
|
|
|
Elm.Widget.event;
|
|
|
|
Elm.Widget.focus_highlight_geometry_get;
|
|
|
|
Elm.Widget.focused_item.get;
|
2014-07-25 01:33:19 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
|
2014-10-09 01:14:38 -07:00
|
|
|
Elm_Interface_Atspi_Accessible.children.get;
|
|
|
|
Elm_Interface_Atspi_Accessible.state_set.get;
|
2015-05-26 07:28:35 -07:00
|
|
|
Elm_Interface_Atspi_Selection.selected_children_count.get;
|
|
|
|
Elm_Interface_Atspi_Selection.selected_child.get;
|
|
|
|
Elm_Interface_Atspi_Selection.selected_child_deselect;
|
|
|
|
Elm_Interface_Atspi_Selection.child_select;
|
|
|
|
Elm_Interface_Atspi_Selection.child_deselect;
|
|
|
|
Elm_Interface_Atspi_Selection.is_child_selected;
|
|
|
|
Elm_Interface_Atspi_Selection.all_children_select;
|
|
|
|
Elm_Interface_Atspi_Selection.clear;
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
language,changed;
|
|
|
|
access,changed;
|
2015-06-09 06:21:46 -07:00
|
|
|
item,focused;
|
|
|
|
item,unfocused;
|
2014-03-27 01:15:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|