2017-10-18 01:12:03 -07:00
|
|
|
/* FIXME: This shouldn't be using undefined Elm_Atspi_Action */
|
2017-09-28 14:22:05 -07:00
|
|
|
import elm_general;
|
|
|
|
|
2017-09-18 19:19:21 -07:00
|
|
|
mixin Efl.Access.Action ()
|
2014-04-20 23:04:25 -07:00
|
|
|
{
|
2017-09-18 19:19:21 -07:00
|
|
|
[[Accessible action mixin]]
|
2014-04-20 23:04:25 -07:00
|
|
|
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
|
|
|
}
|
2017-09-22 08:10:42 -07:00
|
|
|
return: mstring @owned @warn_unused; [[Should be freed by the user.]]
|
2014-04-20 23:04:25 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|