Add missing getters to elm_table

For padding and homogenous



SVN revision: 54399
This commit is contained in:
Bruno Dilly 2010-11-10 11:36:58 +00:00
parent 6e22d984ae
commit 3f8dbd2eb6
2 changed files with 39 additions and 1 deletions

View File

@ -752,7 +752,9 @@ extern "C" {
/* table */
EAPI Evas_Object *elm_table_add(Evas_Object *parent);
EAPI void elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous);
EAPI Eina_Bool elm_table_homogeneous_get(const Evas_Object *obj);
EAPI void elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertical);
EAPI void elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical);
EAPI void elm_table_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h);
EAPI void elm_table_unpack(Evas_Object *obj, Evas_Object *subobj);
EAPI void elm_table_clear(Evas_Object *obj, Eina_Bool clear);

View File

@ -164,11 +164,29 @@ elm_table_homogenous_set(Evas_Object *obj, Eina_Bool homogenous)
evas_object_table_homogeneous_set(wd->tbl, homogenous);
}
/**
* Get the current table homogeneous mode.
*
* @param obj The table object
* @return a boolean to set (or no) layout homogenous in the table
* (1 = homogenous, 0 = no homogenous)
*
* @ingroup Table
*/
EAPI Eina_Bool
elm_table_homogeneous_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return evas_object_table_homogeneous_get(wd->tbl);
}
/**
* Set padding between cells.
*
* @param obj The layout object.
* @param horizontal set the horizontal padding.
* @param horizontal set the horizontal padding.
* @param vertical set the vertical padding.
*
* @ingroup Table
@ -182,6 +200,24 @@ elm_table_padding_set(Evas_Object *obj, Evas_Coord horizontal, Evas_Coord vertic
evas_object_table_padding_set(wd->tbl, horizontal, vertical);
}
/**
* Get padding between cells.
*
* @param obj The layout object.
* @param horizontal set the horizontal padding.
* @param vertical set the vertical padding.
*
* @ingroup Table
*/
EAPI void
elm_table_padding_get(const Evas_Object *obj, Evas_Coord *horizontal, Evas_Coord *vertical)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
evas_object_table_padding_get(wd->tbl, horizontal, vertical);
}
/**
* Add a subobject on the table with the coordinates passed
*