summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-05-20 14:15:23 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-05-20 16:08:53 +0300
commit5886bc3e5d18e6b675a190133734224bb2d400e4 (patch)
treeac51ee6f8e8bddf80bac93d36ab6f68e54fed771
parentbd150ca456bafeae957aa3dd8c876cbd67c58c0d (diff)
Move elm_general types to Eolian format
-rw-r--r--src/lib/Makefile.am2
-rw-r--r--src/lib/elm_general.eot85
-rw-r--r--src/lib/elm_general.h97
3 files changed, 89 insertions, 95 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 8677f0a2b..b76835a54 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -564,6 +564,7 @@ elm_fileselector_entry.eo \
564elm_flip.eo \ 564elm_flip.eo \
565elm_flipselector.eo \ 565elm_flipselector.eo \
566elm_frame.eo \ 566elm_frame.eo \
567elm_general.eot \
567elm_gengrid.eo \ 568elm_gengrid.eo \
568elm_gengrid_pan.eo \ 569elm_gengrid_pan.eo \
569elm_genlist.eo \ 570elm_genlist.eo \
@@ -709,6 +710,7 @@ elementaryeolianfiles_DATA = \
709 elm_fileselector_entry.eo \ 710 elm_fileselector_entry.eo \
710 elm_flipselector.eo \ 711 elm_flipselector.eo \
711 elm_flip.eo \ 712 elm_flip.eo \
713 elm_general.eot \
712 elm_gengrid.eo \ 714 elm_gengrid.eo \
713 elm_gengrid_pan.eo \ 715 elm_gengrid_pan.eo \
714 elm_genlist.eo \ 716 elm_genlist.eo \
diff --git a/src/lib/elm_general.eot b/src/lib/elm_general.eot
new file mode 100644
index 000000000..aa84a665c
--- /dev/null
+++ b/src/lib/elm_general.eot
@@ -0,0 +1,85 @@
1struct Elm.Event.Policy_Changed
2{
3 /*@
4 @struct _Elm_Event_Policy_Changed
5
6 Data on the event when an Elementary policy has changed
7 */
8 policy: uint; /*@< the policy identifier */
9 new_value: int; /*@< value the policy had before the change */
10 old_value: int; /*@< new value the policy got */
11}
12
13enum Elm.Policy
14{
15 /*@
16 Policy identifiers.
17 */
18 quit, /*@< under which circumstances the application should quit automatically. @see Elm_Policy_Quit. */
19 exit, /*@< defines elm_exit() behaviour. @see Elm_Policy_Exit.
20 @since 1.8
21 */
22 throttle, /*@< defines how throttling should work @see Elm_Policy_Throttle
23 @since 1.8
24 */
25 last
26}
27
28enum Elm.Policy.Quit
29{
30 /*@
31 Possible values for the #ELM_POLICY_QUIT policy
32 */
33 none = 0, /*@< never quit the application
34 automatically */
35 last_window_closed /*@< quit when the
36 application's last
37 window is closed */
38}
39
40enum Elm.Policy.Exit
41{
42 /*@
43 Possible values for the #ELM_POLICY_EXIT policy.
44 @since 1.8
45 */
46 none = 0, /*@< just quit the main loop on elm_exit() */
47 windows_del /*@< delete all the windows after quitting
48 the main loop */
49}
50
51enum Elm.Policy.Throttle
52{
53 /*@
54 Possible values for the #ELM_POLICY_THROTTLE policy.
55 @since 1.8
56 */
57 config = 0, /*@< do whatever elementary config is configured to do */
58 hidden_always, /*@< always throttle when all windows are no longer visible */
59 never /*@< never throttle when windows are all hidden, regardless of config settings */
60}
61
62enum Elm.Object.Select_Mode
63{
64 /*@
65 Possible values for the #ELM_OBJECT_SELECT_MODE policy.
66 @since 1.7
67 */
68 default = 0, /*@< default select mode. Once an item is selected, it would stay highlighted and not going to call selected callback again even it was clicked. Items can get focus. */
69 always, /*@< always select mode. Item selected callbacks will be called every time for click events, even after the item was already selected. Items can get focus. */
70 none, /*@< no select mode. Items will never be highlighted and selected but the size will be adjusted by the finger size configuration. Items can't get focus. */
71 display_only, /*@< no select mode with no finger size rule. Items will never be highlighted and selected and ignore the finger size. So the item size can be reduced below than the finger size configuration. Items can't get focus. */
72 max /*@< canary value: any value greater or equal to ELM_OBJECT_SELECT_MODE_MAX is forbidden. */
73}
74
75enum Elm.Object.Multi_Select_Mode
76{
77 /*@
78 Possible values for the #ELM_OBJECT_MULTI_SELECT_MODE policy.
79 @since 1.8
80 */
81 default = 0, /*@< default multiple select mode */
82 with_control, /*@< disallow mutiple selection when clicked without control key pressed */
83 max /*@< canary value: any value greater or equal to ELM_OBJECT_MULTI_SELECT_MODE_MAX is forbidden. */
84}
85
diff --git a/src/lib/elm_general.h b/src/lib/elm_general.h
index 726fc2ccd..53b818797 100644
--- a/src/lib/elm_general.h
+++ b/src/lib/elm_general.h
@@ -18,6 +18,8 @@
18 * @{ 18 * @{
19 */ 19 */
20 20
21#include "elm_general.eot.h"
22
21/** 23/**
22 * Defines couple of standard Evas_Object layers to be used 24 * Defines couple of standard Evas_Object layers to be used
23 * with evas_object_layer_set(). 25 * with evas_object_layer_set().
@@ -63,101 +65,6 @@ EAPI extern int ELM_EVENT_PROCESS_BACKGROUND;
63 */ 65 */
64EAPI extern int ELM_EVENT_PROCESS_FOREGROUND; 66EAPI extern int ELM_EVENT_PROCESS_FOREGROUND;
65 67
66/**
67 * @typedef Elm_Event_Policy_Changed
68 *
69 * Data on the event when an Elementary policy has changed
70 */
71typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed;
72
73/**
74 * @struct _Elm_Event_Policy_Changed
75 *
76 * Data on the event when an Elementary policy has changed
77 */
78struct _Elm_Event_Policy_Changed
79{
80 unsigned int policy; /**< the policy identifier */
81 int new_value; /**< value the policy had before the change */
82 int old_value; /**< new value the policy got */
83};
84
85/**
86 * Policy identifiers.
87 */
88typedef enum
89{
90 ELM_POLICY_QUIT, /**< under which circumstances the application
91 * should quit automatically. @see
92 * Elm_Policy_Quit.
93 */
94 ELM_POLICY_EXIT, /**< defines elm_exit() behaviour. @see Elm_Policy_Exit.
95 * @since 1.8
96 */
97 ELM_POLICY_THROTTLE, /**< defines how throttling should work @see Elm_Policy_Throttle
98 * @since 1.8
99 */
100 ELM_POLICY_LAST
101} Elm_Policy; /**< Elementary policy identifiers/groups enumeration. @see elm_policy_set() */
102
103/**
104 * Possible values for the #ELM_POLICY_QUIT policy
105 */
106typedef enum
107{
108 ELM_POLICY_QUIT_NONE = 0, /**< never quit the application
109 * automatically */
110 ELM_POLICY_QUIT_LAST_WINDOW_CLOSED /**< quit when the
111 * application's last
112 * window is closed */
113} Elm_Policy_Quit;
114
115/**
116 * Possible values for the #ELM_POLICY_EXIT policy.
117 * @since 1.8
118 */
119typedef enum
120{
121 ELM_POLICY_EXIT_NONE = 0, /**< just quit the main loop on elm_exit() */
122 ELM_POLICY_EXIT_WINDOWS_DEL /**< delete all the windows after quitting
123 * the main loop */
124} Elm_Policy_Exit;
125
126/**
127 * Possible values for the #ELM_POLICY_THROTTLE policy.
128 * @since 1.8
129 */
130typedef enum
131{
132 ELM_POLICY_THROTTLE_CONFIG = 0, /**< do whatever elementary config is configured to do */
133 ELM_POLICY_THROTTLE_HIDDEN_ALWAYS, /**< always throttle when all windows are no longer visible */
134 ELM_POLICY_THROTTLE_NEVER /**< never throttle when windows are all hidden, regardless of config settings */
135} Elm_Policy_Throttle;
136
137/**
138 * Possible values for the #ELM_OBJECT_SELECT_MODE policy.
139 * @since 1.7
140 */
141typedef enum
142{
143 ELM_OBJECT_SELECT_MODE_DEFAULT = 0, /**< default select mode. Once an item is selected, it would stay highlighted and not going to call selected callback again even it was clicked. Items can get focus. */
144 ELM_OBJECT_SELECT_MODE_ALWAYS, /**< always select mode. Item selected callbacks will be called every time for click events, even after the item was already selected. Items can get focus. */
145 ELM_OBJECT_SELECT_MODE_NONE, /**< no select mode. Items will never be highlighted and selected but the size will be adjusted by the finger size configuration. Items can't get focus. */
146 ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY, /**< no select mode with no finger size rule. Items will never be highlighted and selected and ignore the finger size. So the item size can be reduced below than the finger size configuration. Items can't get focus. */
147 ELM_OBJECT_SELECT_MODE_MAX /**< canary value: any value greater or equal to ELM_OBJECT_SELECT_MODE_MAX is forbidden. */
148} Elm_Object_Select_Mode;
149
150/**
151 * Possible values for the #ELM_OBJECT_MULTI_SELECT_MODE policy.
152 * @since 1.8
153 */
154typedef enum
155{
156 ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT = 0, /**< default multiple select mode */
157 ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL, /**< disallow mutiple selection when clicked without control key pressed */
158 ELM_OBJECT_MULTI_SELECT_MODE_MAX /**< canary value: any value greater or equal to ELM_OBJECT_MULTI_SELECT_MODE_MAX is forbidden. */
159} Elm_Object_Multi_Select_Mode;
160
161typedef Eina_Bool (*Elm_Event_Cb)(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */ 68typedef Eina_Bool (*Elm_Event_Cb)(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info); /**< Function prototype definition for callbacks on input events happening on Elementary widgets. @a data will receive the user data pointer passed to elm_object_event_callback_add(). @a src will be a pointer to the widget on which the input event took place. @a type will get the type of this event and @a event_info, the struct with details on this event. */
162 69
163extern EAPI double _elm_startup_time; 70extern EAPI double _elm_startup_time;