elm_table now supports alignment

This commit is contained in:
Mike Blumenkrantz 2015-01-11 18:17:19 -05:00
parent 65db0dc1cd
commit 79efce849d
2 changed files with 40 additions and 0 deletions

View File

@ -261,6 +261,24 @@ _elm_table_padding_get(Eo *obj, void *_pd EINA_UNUSED, Evas_Coord *horizontal, E
(wd->resize_obj, horizontal, vertical);
}
EOLIAN static void
_elm_table_align_set(Eo *obj, void *_pd EINA_UNUSED, double horizontal, double vertical)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
evas_object_table_align_set
(wd->resize_obj, horizontal, vertical);
}
EOLIAN static void
_elm_table_align_get(Eo *obj, void *_pd EINA_UNUSED, double *horizontal, double *vertical)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
evas_object_table_align_get
(wd->resize_obj, horizontal, vertical);
}
EOLIAN static void
_elm_table_pack(Eo *obj, void *_pd EINA_UNUSED, Evas_Object *subobj, int col, int row, int colspan, int rowspan)
{

View File

@ -44,6 +44,28 @@ class Elm_Table (Elm_Widget)
Evas_Coord vertical; /*@ set the vertical padding. */
}
}
align {
set {
/*@
@brief Set alignment of table
@since 1.13
Default value is 0.5.
@ingroup Table */
}
get {
/*@
@brief Get alignment of table.
@since 1.13
@ingroup Table */
}
values {
double horizontal; /*@ the horizontal alignment. */
double vertical; /*@ the vertical alignment. */
}
}
}
methods {
clear {