aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_table_private.h
blob: ff261f1fae4f210b4d0438f0f006e54a9e0dec04 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef EFL_UI_TABLE_PRIVATE_H
#define EFL_UI_TABLE_PRIVATE_H

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

#define EFL_PACK_LAYOUT_PROTECTED

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

typedef struct _Efl_Ui_Table_Data Efl_Ui_Table_Data;
typedef struct _Table_Item_Iterator Table_Item_Iterator;
typedef struct _Table_Item Table_Item;

void _efl_ui_table_custom_layout(Efl_Ui_Table *ui_table, Efl_Ui_Table_Data *pd);

#define TABLE_ITEM_KEY "__table_item"

struct _Table_Item
{
   EINA_INLIST;

   Efl_Gfx_Entity *object;
   int col_span, row_span;
   int col, row;
};

struct _Efl_Ui_Table_Data
{
   Table_Item *items;
   Eo *clipper;
   int count;

   int cols, rows;
   int req_cols, req_rows; // requested - 0 means infinite
   int last_col, last_row; // only used by pack api
   Efl_Ui_Layout_Orientation fill_dir;    // direction in which cells are added when using pack()
   struct {
      double h, v;
      Eina_Bool scalable: 1;
   } pad;
   struct {
      double h, v;
   } align;
   Eina_Bool cols_recalc : 1;
   Eina_Bool rows_recalc : 1;
   Eina_Bool linear_recalc : 1;
   Eina_Bool homogeneoush : 1;
   Eina_Bool homogeneousv : 1;
};

struct _Table_Item_Iterator
{
   Eina_Iterator  iterator;
   Efl_Ui_Table  *object;
   Eina_Inlist   *cur;
};

#endif