2016-06-23 03:33:34 -07:00
|
|
|
interface Efl.Config ()
|
2016-06-21 01:54:56 -07:00
|
|
|
{
|
|
|
|
[[A generic configuration interface, that holds key-value pairs.]]
|
|
|
|
methods {
|
|
|
|
/* FIXME: make this a property -- @own is a problem */
|
2016-06-23 03:33:34 -07:00
|
|
|
config_set {
|
2016-11-17 03:16:01 -08:00
|
|
|
[[Set configuration]]
|
2016-06-21 01:54:56 -07:00
|
|
|
params {
|
2016-11-01 06:18:26 -07:00
|
|
|
name: string; [[Configuration option name]]
|
2017-09-22 11:25:31 -07:00
|
|
|
val: const(any_value_ptr); [[Configuration option value]]
|
2016-06-21 01:54:56 -07:00
|
|
|
}
|
|
|
|
return: bool; [[$false in case of error: value type was invalid, the
|
|
|
|
config can't be changed, config does not exist...]]
|
|
|
|
}
|
2016-06-23 03:33:34 -07:00
|
|
|
config_get @const {
|
2016-11-17 03:16:01 -08:00
|
|
|
[[Get configuration]]
|
2016-06-21 01:54:56 -07:00
|
|
|
params {
|
2016-11-01 06:18:26 -07:00
|
|
|
name: string; [[Configuration option name]]
|
2016-06-21 01:54:56 -07:00
|
|
|
}
|
2017-09-22 11:25:31 -07:00
|
|
|
return: any_value_ptr @owned; [[Configuration option value]]
|
2016-06-21 01:54:56 -07:00
|
|
|
}
|
2016-06-23 03:33:34 -07:00
|
|
|
config_list_get @const {
|
2016-06-21 01:54:56 -07:00
|
|
|
[[Returns a list of generic values under a given key.]]
|
|
|
|
params {
|
2016-11-01 06:18:26 -07:00
|
|
|
@in name: string; [[Configuration option name]]
|
2016-06-21 01:54:56 -07:00
|
|
|
}
|
2017-09-22 11:25:31 -07:00
|
|
|
return: iterator<any_value_ptr> @owned; [[
|
2016-11-01 06:18:26 -07:00
|
|
|
List of configuration option values]]
|
2016-06-21 01:54:56 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* NOTES:
|
2017-05-15 00:47:34 -07:00
|
|
|
- Font hinting seems to be missing!
|
2016-06-21 01:54:56 -07:00
|
|
|
- Elm_Color_Class list -> no need to return the struct, only the name matters
|
|
|
|
but also provide func to get desc from name
|
|
|
|
- Elm_Color_Overlay -> see with Jee-Yong and his color patch (common intf)
|
|
|
|
- elm_config_font_overlay_set -> ?
|
|
|
|
- what else?
|
|
|
|
*/
|