summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_layout_legacy_eo.c
blob: e08568e57d72ed26d1253bfea4223642c5c50509 (plain)
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
62
63
64
65
66
67
68
69
70
71

Efl_Object *_efl_ui_layout_legacy_efl_object_constructor(Eo *obj, void *pd);

static Eina_Bool
_efl_ui_layout_legacy_class_initializer(Efl_Class *klass)
{
   const Efl_Object_Ops *opsp = NULL;

   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;

#ifndef EFL_UI_LAYOUT_LEGACY_EXTRA_OPS
#define EFL_UI_LAYOUT_LEGACY_EXTRA_OPS
#endif

   EFL_OPS_DEFINE(ops,
      EFL_OBJECT_OP_FUNC(efl_constructor, _efl_ui_layout_legacy_efl_object_constructor),
      EFL_UI_LAYOUT_LEGACY_EXTRA_OPS
   );
   opsp = &ops;

   return efl_class_functions_set(klass, opsp, ropsp);
}

static const Efl_Class_Description _efl_ui_layout_legacy_class_desc = {
   EO_VERSION,
   "Efl.Ui.Layout_Legacy",
   EFL_CLASS_TYPE_REGULAR,
   0,
   _efl_ui_layout_legacy_class_initializer,
   NULL,
   NULL
};

EFL_DEFINE_CLASS(efl_ui_layout_legacy_class_get, &_efl_ui_layout_legacy_class_desc, EFL_UI_LAYOUT_CLASS, ELM_LAYOUT_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);

static void _elm_layout_sizing_eval(Eo *obj, Elm_Layout_Data *ld);
EAPI EFL_VOID_FUNC_BODY(elm_layout_sizing_eval);

static Eina_Bool
_elm_layout_class_initializer(Efl_Class *klass)
{
   const Efl_Object_Ops *opsp = NULL;

   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;

#ifndef ELM_LAYOUT_EXTRA_OPS
#define ELM_LAYOUT_EXTRA_OPS
#endif

   EFL_OPS_DEFINE(ops,
      EFL_OBJECT_OP_FUNC(elm_layout_sizing_eval, _elm_layout_sizing_eval),
      EFL_OBJECT_OP_FUNC(efl_canvas_group_change, _elm_layout_efl_canvas_group_change),
      EFL_OBJECT_OP_FUNC(efl_gfx_hint_size_restricted_min_set, _elm_layout_efl_gfx_hint_size_restricted_min_set),
      ELM_LAYOUT_EXTRA_OPS
   );
   opsp = &ops;

   return efl_class_functions_set(klass, opsp, ropsp);
}

static const Efl_Class_Description _elm_layout_class_desc = {
   EO_VERSION,
   "Elm.Layout",
   EFL_CLASS_TYPE_MIXIN,
   sizeof(Elm_Layout_Data),
   _elm_layout_class_initializer,
   NULL,
   NULL
};

EFL_DEFINE_CLASS(elm_layout_mixin_get, &_elm_layout_class_desc, NULL, NULL);