elementary/grid - reviewed APIs

SVN revision: 68187
This commit is contained in:
ChunEon Park 2012-02-21 02:57:51 +00:00
parent 3b6e8e86c0
commit 98f221323e
2 changed files with 9 additions and 9 deletions

View File

@ -99,7 +99,7 @@ elm_grid_add(Evas_Object *parent)
} }
EAPI void EAPI void
elm_grid_size_set(Evas_Object *obj, int w, int h) elm_grid_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
{ {
ELM_CHECK_WIDTYPE(obj, widtype); ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj); Widget_Data *wd = elm_widget_data_get(obj);
@ -108,7 +108,7 @@ elm_grid_size_set(Evas_Object *obj, int w, int h)
} }
EAPI void EAPI void
elm_grid_size_get(Evas_Object *obj, int *w, int *h) elm_grid_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{ {
ELM_CHECK_WIDTYPE(obj, widtype); ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj); Widget_Data *wd = elm_widget_data_get(obj);
@ -117,7 +117,7 @@ elm_grid_size_get(Evas_Object *obj, int *w, int *h)
} }
EAPI void EAPI void
elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h) elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{ {
ELM_CHECK_WIDTYPE(obj, widtype); ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj); Widget_Data *wd = elm_widget_data_get(obj);
@ -150,7 +150,7 @@ elm_grid_clear(Evas_Object *obj, Eina_Bool clear)
} }
EAPI void EAPI void
elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h) elm_grid_pack_set(Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{ {
Evas_Object *obj = elm_widget_parent_widget_get(subobj); Evas_Object *obj = elm_widget_parent_widget_get(subobj);
ELM_CHECK_WIDTYPE(obj, widtype); ELM_CHECK_WIDTYPE(obj, widtype);

View File

@ -32,7 +32,7 @@ EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
* *
* @ingroup Grid * @ingroup Grid
*/ */
EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h); EAPI void elm_grid_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
/** /**
* Get the virtual size of the grid * Get the virtual size of the grid
@ -43,7 +43,7 @@ EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
* *
* @ingroup Grid * @ingroup Grid
*/ */
EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h); EAPI void elm_grid_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
/** /**
* Pack child at given position and size * Pack child at given position and size
@ -57,7 +57,7 @@ EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
* *
* @ingroup Grid * @ingroup Grid
*/ */
EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h); EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
/** /**
* Unpack a child from a grid object * Unpack a child from a grid object
@ -90,7 +90,7 @@ EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
* *
* @ingroup Grid * @ingroup Grid
*/ */
EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h); EAPI void elm_grid_pack_set(Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
/** /**
* get packing of a child * get packing of a child
@ -103,7 +103,7 @@ EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, in
* *
* @ingroup Grid * @ingroup Grid
*/ */
EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h); EAPI void elm_grid_pack_get(Evas_Object *subobj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
/** /**
* @} * @}