3 typedef struct _E_Widget_Data E_Widget_Data;
9 static void _e_wid_del_hook(Evas_Object *obj);
11 /* local subsystem functions */
13 /* externally accessible functions */
15 e_widget_table_add(Evas *evas, int homogenous)
20 obj = e_widget_add(evas);
22 e_widget_del_hook_set(obj, _e_wid_del_hook);
23 wd = calloc(1, sizeof(E_Widget_Data));
24 e_widget_data_set(obj, wd);
26 o = e_table_add(evas);
28 e_table_homogenous_set(o, homogenous);
30 e_widget_sub_object_add(obj, o);
31 e_widget_resize_object_set(obj, o);
37 e_widget_table_object_append(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h)
39 e_widget_table_object_align_append(obj, sobj,
40 col, row, colspan, rowspan,
41 fill_w, fill_h, expand_w, expand_h,
46 e_widget_table_object_align_append(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h, double ax, double ay)
49 Evas_Coord mw = 0, mh = 0;
51 wd = e_widget_data_get(obj);
53 e_table_pack(wd->o_table, sobj, col, row, colspan, rowspan);
54 e_widget_size_min_get(sobj, &mw, &mh);
55 e_table_pack_options_set(sobj,
56 fill_w, fill_h, /* fill */
57 expand_w, expand_h, /* expand */
60 99999, 99999 /* max */
62 e_table_size_min_get(wd->o_table, &mw, &mh);
63 e_widget_size_min_set(obj, mw, mh);
64 e_widget_sub_object_add(obj, sobj);
65 evas_object_show(sobj);
69 e_widget_table_object_repack(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h)
72 Evas_Coord mw = 0, mh = 0;
74 wd = e_widget_data_get(obj);
77 e_table_pack(wd->o_table, sobj, col, row, colspan, rowspan);
78 e_widget_size_min_get(sobj, &mw, &mh);
79 e_table_pack_options_set(sobj,
80 fill_w, fill_h, /* fill */
81 expand_w, expand_h, /* expand */
84 99999, 99999 /* max */
86 e_table_size_min_get(wd->o_table, &mw, &mh);
87 e_widget_size_min_set(obj, mw, mh);
91 e_widget_table_unpack(Evas_Object *obj, Evas_Object *sobj)
93 e_widget_sub_object_del(obj, sobj);
98 e_widget_table_freeze(Evas_Object *obj)
102 wd = e_widget_data_get(obj);
103 e_table_freeze(wd->o_table);
107 e_widget_table_thaw(Evas_Object *obj)
111 wd = e_widget_data_get(obj);
112 e_table_thaw(wd->o_table);
116 _e_wid_del_hook(Evas_Object *obj)
120 wd = e_widget_data_get(obj);