summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_container_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_container_layout.h')
-rw-r--r--src/lib/elementary/efl_ui_container_layout.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_container_layout.h b/src/lib/elementary/efl_ui_container_layout.h
new file mode 100644
index 0000000..097abee
--- /dev/null
+++ b/src/lib/elementary/efl_ui_container_layout.h
@@ -0,0 +1,42 @@
1#ifndef _EFL_UI_CONTAINER_HELPER_H_
2#define _EFL_UI_CONTAINER_HELPER_H_
3
4#ifdef HAVE_CONFIG_H
5# include "elementary_config.h"
6#endif
7
8#include <Elementary.h>
9#include "elm_priv.h"
10
11typedef struct _Efl_Ui_Container_Item_Hints Efl_Ui_Container_Item_Hints;
12typedef struct _Efl_Ui_Container_Layout_Calc Efl_Ui_Container_Layout_Calc;
13
14struct _Efl_Ui_Container_Item_Hints
15{
16 int max;
17 int min;
18 int aspect;
19 int margin[2]; // start, end
20 Efl_Gfx_Hint_Aspect aspect_type;
21 double weight;
22 double align;
23 double space;
24 Eina_Bool fill;
25};
26
27struct _Efl_Ui_Container_Layout_Calc
28{
29 int pos;
30 int size;
31 int margin[2];
32 double align;
33 double scale;
34 double pad;
35 Eina_Bool fill : 1;
36};
37
38void _efl_ui_container_layout_min_max_calc(Efl_Ui_Container_Item_Hints *item, int *cw, int *ch, Eina_Bool aspect_check);
39void _efl_ui_container_layout_item_init(Eo* o, Efl_Ui_Container_Item_Hints *item);
40void _efl_ui_container_layout_init(Eo* obj, Efl_Ui_Container_Layout_Calc *calc);
41
42#endif