summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_ui_format.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl/interfaces/efl_ui_format.eo')
-rw-r--r--src/lib/efl/interfaces/efl_ui_format.eo44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_ui_format.eo b/src/lib/efl/interfaces/efl_ui_format.eo
new file mode 100644
index 0000000000..74d6249127
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_ui_format.eo
@@ -0,0 +1,44 @@
1import eina_types;
2
3function Efl.Ui.Format_Func_Cb {
4 [[Function pointer for format function hook]]
5 params {
6 @in str: ptr(Eina.Strbuf);
7 @in value: Eina.Value;
8 }
9};
10
11interface Efl.Ui.Format
12{
13 [[interface class for format_func]]
14 methods {
15 @property func_cb @protected {
16 set {
17 [[Set the format function pointer to format the indicator string.
18 ]]
19 }
20 values {
21 func: Efl.Ui.Format_Func_Cb @nullable; [[The format function callback]]
22 }
23 }
24 @property unit @protected {
25 [[Control the format string for a given units label
26
27 If $NULL is passed on $format, it will make $obj's units
28 area to be hidden completely. If not, it'll set the <b>format
29 string</b> for the units label's text. The units label is
30 provided a floating point value, so the units text is up display
31 at most one floating point value. Note that the units label is
32 optional. Use a format string such as "%1.2f meters" for example.
33
34 Note: The default format string is an integer percentage,
35 as in $"%.0f %%".
36 ]]
37 set {
38 }
39 values {
40 units: string @nullable; [[The format string for $obj's units label.]]
41 }
42 }
43 }
44}