2019-03-08 06:55:43 -08:00
|
|
|
function @beta Efl.Ui.Format_Func_Cb {
|
2017-10-15 23:24:06 -07:00
|
|
|
[[Function pointer for format function hook]]
|
|
|
|
params {
|
2017-11-21 23:28:56 -08:00
|
|
|
@in str: strbuf; [[the formated string to be appended by user.]]
|
2019-03-29 06:08:22 -07:00
|
|
|
@in value: const(any_value); [[The @Eina.Value passed by $obj.]]
|
2017-10-15 23:24:06 -07:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
mixin @beta Efl.Ui.Format
|
2017-10-15 23:24:06 -07:00
|
|
|
{
|
|
|
|
[[interface class for format_func]]
|
|
|
|
methods {
|
2017-10-16 23:45:50 -07:00
|
|
|
@property format_cb {
|
2017-10-25 03:25:14 -07:00
|
|
|
set @pure_virtual {
|
2017-10-16 21:37:26 -07:00
|
|
|
[[Set the format function pointer to format the string.
|
2017-10-15 23:24:06 -07:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
func: Efl.Ui.Format_Func_Cb @nullable; [[The format function callback]]
|
|
|
|
}
|
|
|
|
}
|
2017-10-16 23:45:50 -07:00
|
|
|
@property format_string {
|
2017-10-15 23:24:06 -07:00
|
|
|
[[Control the format string for a given units label
|
|
|
|
|
2017-12-22 02:41:11 -08:00
|
|
|
If $NULL is passed to $format, it will hide $obj's units
|
|
|
|
area completely. If not, it'll set the <b>format
|
|
|
|
string</b> for the units label text. The units label is
|
|
|
|
provided as a floating point value, so the units text can display
|
2017-10-15 23:24:06 -07:00
|
|
|
at most one floating point value. Note that the units label is
|
|
|
|
optional. Use a format string such as "%1.2f meters" for example.
|
|
|
|
|
|
|
|
Note: The default format string is an integer percentage,
|
|
|
|
as in $"%.0f %%".
|
|
|
|
]]
|
|
|
|
values {
|
|
|
|
units: string @nullable; [[The format string for $obj's units label.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|