2016-05-12 03:37:43 -07:00
|
|
|
mixin Elm.Interface.Atspi_Action ()
|
2014-04-20 23:04:25 -07:00
|
|
|
{
|
2016-11-04 02:31:24 -07:00
|
|
|
[[AT-SPI action mixin]]
|
2014-04-20 23:04:25 -07:00
|
|
|
eo_prefix: elm_interface_atspi_action;
|
|
|
|
data: null;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2017-01-13 06:44:09 -08:00
|
|
|
@property name @protected @pure_virtual {
|
2016-06-30 08:31:10 -07:00
|
|
|
[[Gets action name for given id]]
|
2014-04-20 23:04:25 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-06-30 08:31:10 -07:00
|
|
|
name: string; [[Action name]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
keys {
|
2016-10-21 07:12:57 -07:00
|
|
|
id: int; [[ID to get action name for]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property localized_name @protected {
|
2016-06-30 08:31:10 -07:00
|
|
|
[[Gets localized action name for given id]]
|
2014-04-20 23:04:25 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-06-30 08:31:10 -07:00
|
|
|
name: string; [[Localized name]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
keys {
|
2016-10-21 07:12:57 -07:00
|
|
|
id: int; [[ID to get localized name for]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property description @protected @pure_virtual {
|
2016-06-30 08:31:10 -07:00
|
|
|
[[Action description for given id]]
|
2014-04-20 23:04:25 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
set {
|
2016-11-17 03:19:50 -08:00
|
|
|
return: bool; [[$true if description was set, $false otherwise]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-10-21 07:12:57 -07:00
|
|
|
description: string; [[Action description]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
keys {
|
2016-10-21 07:12:57 -07:00
|
|
|
id: int; [[ID to set or get description for]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property actions @protected {
|
2016-06-30 08:31:10 -07:00
|
|
|
[[Get list of available widget actions]]
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-10-21 07:12:57 -07:00
|
|
|
actions: list<Elm_Atspi_Action>; [[Contains statically allocated strings]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
action_do @protected @pure_virtual {
|
2015-08-07 06:26:50 -07:00
|
|
|
[[Performs action on given widget.]]
|
2014-04-20 23:04:25 -07:00
|
|
|
params {
|
2016-10-21 07:12:57 -07:00
|
|
|
@in id: int; [[ID for widget]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
2016-11-17 03:19:50 -08:00
|
|
|
return: bool; [[$true if action was performed, $false otherwise]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
keybinding_get @protected @pure_virtual {
|
2015-08-07 06:26:50 -07:00
|
|
|
[[Gets configured keybinding for specific action and widget.]]
|
2014-04-20 23:04:25 -07:00
|
|
|
params {
|
2016-10-21 07:12:57 -07:00
|
|
|
@in id: int; [[ID for widget]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
2016-11-09 06:52:44 -08:00
|
|
|
return: own(ptr(char)) @warn_unused; [[Should be freed by the user.]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|