summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-01-11 18:17:19 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-01-11 18:17:19 -0500
commitfcdd3f7cdca65d2f1b587b84b009196defb8ec86 (patch)
tree8b387c938c6437596bd0395c22b34c5cf8652cce
parent3b0af184cf784703f286004d67e1c2150690f54f (diff)
elm_table now supports alignment
-rw-r--r--src/lib/elm_table.c18
-rw-r--r--src/lib/elm_table.eo22
2 files changed, 40 insertions, 0 deletions
diff --git a/src/lib/elm_table.c b/src/lib/elm_table.c
index e8faaf4e2..33e69abe6 100644
--- a/src/lib/elm_table.c
+++ b/src/lib/elm_table.c
@@ -262,6 +262,24 @@ _elm_table_padding_get(Eo *obj, void *_pd EINA_UNUSED, Evas_Coord *horizontal, E
262} 262}
263 263
264EOLIAN static void 264EOLIAN static void
265_elm_table_align_set(Eo *obj, void *_pd EINA_UNUSED, double horizontal, double vertical)
266{
267 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
268
269 evas_object_table_align_set
270 (wd->resize_obj, horizontal, vertical);
271}
272
273EOLIAN static void
274_elm_table_align_get(Eo *obj, void *_pd EINA_UNUSED, double *horizontal, double *vertical)
275{
276 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
277
278 evas_object_table_align_get
279 (wd->resize_obj, horizontal, vertical);
280}
281
282EOLIAN static void
265_elm_table_pack(Eo *obj, void *_pd EINA_UNUSED, Evas_Object *subobj, int col, int row, int colspan, int rowspan) 283_elm_table_pack(Eo *obj, void *_pd EINA_UNUSED, Evas_Object *subobj, int col, int row, int colspan, int rowspan)
266{ 284{
267 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 285 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
diff --git a/src/lib/elm_table.eo b/src/lib/elm_table.eo
index ccbd20283..fa3449e84 100644
--- a/src/lib/elm_table.eo
+++ b/src/lib/elm_table.eo
@@ -44,6 +44,28 @@ class Elm_Table (Elm_Widget)
44 Evas_Coord vertical; /*@ set the vertical padding. */ 44 Evas_Coord vertical; /*@ set the vertical padding. */
45 } 45 }
46 } 46 }
47 align {
48 set {
49 /*@
50 @brief Set alignment of table
51 @since 1.13
52
53 Default value is 0.5.
54
55 @ingroup Table */
56 }
57 get {
58 /*@
59 @brief Get alignment of table.
60 @since 1.13
61
62 @ingroup Table */
63 }
64 values {
65 double horizontal; /*@ the horizontal alignment. */
66 double vertical; /*@ the vertical alignment. */
67 }
68 }
47 } 69 }
48 methods { 70 methods {
49 clear { 71 clear {