aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_box_private.h
blob: 2bd12c9fe86c87076aa6c31fd2c537cca248874a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef EFL_UI_BOX_PRIVATE_H
#define EFL_UI_BOX_PRIVATE_H

#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif

#define EFL_PACK_LAYOUT_PROTECTED

#include <Elementary.h>
#include "elm_priv.h"

// FIXME: stop using Evas.Box
#include <../evas/canvas/evas_box.eo.h>

// FIXME: stop using evas box
void _efl_ui_box_custom_layout(Efl_Ui_Box *box, Evas_Object_Box_Data *priv);

typedef struct _Efl_Ui_Box_Data Efl_Ui_Box_Data;
typedef struct _Box_Item_Iterator Box_Item_Iterator;

struct _Efl_Ui_Box_Data
{
   Efl_Ui_Dir dir;
   Eina_Bool homogeneous : 1;
   Eina_Bool delete_me : 1;
   Eina_Bool recalc : 1;

   struct {
      double h, v;
      Eina_Bool scalable: 1;
   } pad;

   struct {
      double h, v;
   } align;
};

struct _Box_Item_Iterator
{
   Eina_Iterator  iterator;
   Eina_List     *list;
   Eina_Iterator *real_iterator;
   Efl_Ui_Box    *object;
};

#endif