forked from enlightenment/efl
elm_table now supports alignment
This commit is contained in:
parent
65db0dc1cd
commit
79efce849d
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue