2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Table (Elm.Widget)
|
2014-03-26 08:37:22 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_table;
|
|
|
|
data: null;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property homogeneous {
|
2014-03-26 08:37:22 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set the homogeneous layout in the table
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the current table homogeneous mode.
|
|
|
|
|
|
|
|
@return A boolean to indicating if the layout is homogeneous in the table
|
2014-06-18 04:57:52 -07:00
|
|
|
(EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous)
|
2014-03-26 08:37:22 -07:00
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
homogeneous: bool; /*@ A boolean to set if the layout is homogeneous in the
|
2014-06-18 04:57:52 -07:00
|
|
|
table (EINA_TRUE = homogeneous, EINA_FALSE = no homogeneous) */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property padding {
|
2014-03-26 08:37:22 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set padding between cells.
|
|
|
|
|
|
|
|
Default value is 0.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get padding between cells.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
horizontal: Evas_Coord; /*@ set the horizontal padding. */
|
|
|
|
vertical: Evas_Coord; /*@ set the vertical padding. */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property align {
|
2015-01-11 15:17:19 -08:00
|
|
|
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 {
|
2015-05-18 08:16:08 -07:00
|
|
|
horizontal: double; /*@ the horizontal alignment. */
|
|
|
|
vertical: double; /*@ the vertical alignment. */
|
2015-01-11 15:17:19 -08:00
|
|
|
}
|
|
|
|
}
|
2014-03-26 08:37:22 -07:00
|
|
|
clear {
|
|
|
|
/*@
|
|
|
|
@brief Faster way to remove all child objects from a table object.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in clear: bool; /*@ If true, will delete children, else just remove from table. */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
child_get @const {
|
2014-03-26 08:37:22 -07:00
|
|
|
/*@
|
|
|
|
@brief Get child object of table at given coordinates.
|
|
|
|
|
|
|
|
@return Child of object if find if not return NULL. */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: Evas_Object *;
|
2014-03-26 08:37:22 -07:00
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in col: int; /*@ Column number of child object */
|
|
|
|
@in row: int; /*@ Row number of child object */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pack_set {
|
|
|
|
/*@
|
|
|
|
@brief Set the packing location of an existing child of the table
|
|
|
|
|
|
|
|
Modifies the position of an object already in the table.
|
|
|
|
|
|
|
|
@note All positioning inside the table is relative to rows and columns, so
|
|
|
|
a value of 0 for col and row, means the top left cell of the table, and a
|
|
|
|
value of 1 for colspan and rowspan means @p subobj only takes that 1 cell.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in subobj: Evas_Object *; /*@ The subobject to be modified in the table */
|
|
|
|
@in column: int; /*@ Column number */
|
|
|
|
@in row: int; /*@ Row number */
|
|
|
|
@in colspan: int; /*@ colspan */
|
|
|
|
@in rowspan: int; /*@ rowspan */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
2014-08-11 07:46:11 -07:00
|
|
|
legacy: null;
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
pack_get {
|
|
|
|
/*@
|
|
|
|
@brief Get the packing location of an existing child of the table
|
|
|
|
|
|
|
|
@see elm_table_pack_set()
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in subobj: Evas_Object *; /*@ The subobject to be modified in the table */
|
|
|
|
@out column: int; /*@ Column number */
|
|
|
|
@out row: int; /*@ Row number */
|
|
|
|
@out colspan: int; /*@ colspan */
|
|
|
|
@out rowspan: int; /*@ rowspan */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
2014-08-11 07:46:11 -07:00
|
|
|
legacy: null;
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
unpack {
|
|
|
|
/*@
|
|
|
|
@brief Remove child from table.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in subobj: Evas_Object *; /*@ The subobject */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pack {
|
|
|
|
/*@
|
|
|
|
@brief Add a subobject on the table with the coordinates passed
|
|
|
|
|
|
|
|
@note All positioning inside the table is relative to rows and columns, so
|
|
|
|
a value of 0 for x and y, means the top left cell of the table, and a
|
|
|
|
value of 1 for w and h means @p subobj only takes that 1 cell.
|
|
|
|
|
|
|
|
Note that columns and rows only guarantee 16bit unsigned values at best.
|
|
|
|
That means that col + colspan AND row + rowspan must fit inside 16bit
|
|
|
|
unsigned values cleanly. You will be warned once values exceed 15bit
|
|
|
|
storage, and attempting to use values not able to fit in 16bits will
|
|
|
|
result in failure.
|
|
|
|
|
|
|
|
@ingroup Table */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in subobj: Evas_Object *; /*@ The subobject to be added to the table */
|
|
|
|
@in column: int; /*@ Column number */
|
|
|
|
@in row: int; /*@ Row number */
|
|
|
|
@in colspan: int; /*@ colspan */
|
|
|
|
@in rowspan: int; /*@ rowspan */
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_direction;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.sub_object_del;
|
2014-03-26 08:37:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|