1/* Efl.Ui enum and struct types */
2
3/* FIXME: find a better way to express this */
4error @extern Efl.Ui.Theme.Apply_Error.NONE = "Succcess"; [[Successfully applied the requested style from the current theme.]]
5
6error Efl.Ui.Theme.Apply_Error.DEFAULT = "Fallback to default style was enabled for this widget"; [[
7   Successfully applied the default style. The widget may look different from
8   the rest of the UI if a custom theme is in use, but it should be usable.
9]]
10error Efl.Ui.Theme.Apply_Error.GENERIC = "An error occurred and no theme could be set for this widget"; [[
11   Failed to apply theme. The widget may become unusable.
12]]
13error Efl.Ui.Theme.Apply_Error.VERSION = "The widget attempted to load a theme that is incompatible with the current EFL version"; [[
14   The theme was applied. The widget may not function or look as expected.
15]]
16
17enum Efl.Ui.Focus.Direction
18{
19   [[ Focus directions.
20
21     @since 1.23
22   ]]
23   previous = 0, [[ previous direction ]]
24   next = 1,     [[ next direction ]]
25   up = 2,       [[ up direction ]]
26   down = 3,     [[ down direction ]]
27   right = 4,    [[ right direction ]]
28   left = 5,     [[ left direction ]]
29   last = 6      [[ last direction ]]
30}
31
32enum Efl.Ui.Focus.Move_Policy
33{
34   [[Focus Movement Policy.
35     @since 1.22]]
36   click, [[Move focus by mouse click or touch. Elementary focus is set on mouse
37            click and this is checked at mouse up time. (default)]]
38   move_in, [[Move focus by mouse in. Elementary focus is set on mouse move when the
39         mouse pointer is moved into an object.]]
40   key_only, [[Move focus by key. Elementary focus is set on key input like
41               Left, Right, Up, Down, Tab, or Shift+Tab.]]
42}
43
44enum @beta Efl.Ui.Focus.Autoscroll_Mode
45{
46   [[Focus Autoscroll Mode
47
48     @since 1.22
49   ]]
50   show,    [[Directly show the focused region or item automatically.]]
51   none,    [[Do not show the focused region or item automatically.]]
52   bring_in [[Bring in the focused region or item automatically which might invole the scrolling.]]
53}
54
55enum @beta Efl.Ui.Softcursor_Mode
56{
57   [[Software cursor mode.]]
58   auto, [[Auto-detect if a software cursor should be used (default).]]
59   on,   [[Always use a softcursor.]]
60   off   [[Never use a softcursor.]]
61}
62
63/* 'on_access_activate' is beta API in the Widget class */
64enum @beta Efl.Ui.Activate
65{
66   [[Accessibility ]]
67   default = 0, [[Activate default]]
68   up, [[Activate up]]
69   down, [[Activate down]]
70   right, [[Activate right]]
71   left, [[Activate left]]
72   back, [[Activate back]]
73}
74
75enum @beta Efl.Ui.Widget_Orientation_Mode
76{
77   [[Widget orientation mode, or how the theme handles screen orientation.
78
79     Note: Support for this feature is highly dependent on the theme in use.
80     At the time of writing, the default theme for EFL does not implement
81     support for orientation modes.
82   ]]
83   default, [[Default or automatic mode: if the widget's theme supports
84      orientation, it will be handled automatically.]]
85   disabled, [[No signal is sent to the widget's theme. Widget's theme will
86      not change according to the window or screen orientation.]]
87}
88
89enum Efl.Ui.Select_Mode {
90   [[Type of multi selectable object.
91
92     @since 1.24
93   ]]
94   single, [[Only single child is selected. If a child is selected,
95             previous selected child will be unselected.]]
96   multi, [[Allow multiple selection of children.]]
97   none [[No child can be selected at all.]]
98}
99
100/* Types for A11Y (internal/beta API) */
101type @beta @extern Efl.Access.Action_Data: __undefined_type; [[Internal struct for accesssibility.]]
102