~~Title: Efl.Pack_Table~~ ====== Efl.Pack_Table (interface) ====== ===== Description ===== %%Interface for 2D containers which arrange their elements on a table with rows and columns.%% %%Elements can be positioned on a specific row and column, or they can be simply added to the table using %%[[:develop:api:efl:pack:method:pack|Efl.Pack.pack]]%% and the container will chose where to put them.%% {{page>:develop:api-include:efl:pack_table:description&nouser&nolink&nodate}} ===== Inheritance ===== => [[:develop:api:efl:pack|Efl.Pack]] //(interface)// => [[:develop:api:efl:container|Efl.Container]] //(interface)// ++++ Full hierarchy | * [[:develop:api:efl:pack|Efl.Pack]] //(interface)// * [[:develop:api:efl:container|Efl.Container]] //(interface)// ++++ ===== Members ===== **[[:develop:api:efl:pack_table:method:pack_table|pack_table]]**\\ > %%Pack object at a given location in the table.%% Eina_Bool efl_pack_table(Eo *obj, Efl_Gfx_Entity *subobj, int col, int row, int colspan, int rowspan); \\ **[[:develop:api:efl:pack_table:property:table_cell_column|table_cell_column]]** //**(get, set)**//\\ > %%column of the %%''subobj''%% in this container.%% Eina_Bool efl_pack_table_cell_column_get(const Eo *obj, Efl_Gfx_Entity *subobj, int *col, int *colspan); void efl_pack_table_cell_column_set(Eo *obj, Efl_Gfx_Entity *subobj, int col, int colspan); \\ **[[:develop:api:efl:pack_table:property:table_cell_row|table_cell_row]]** //**(get, set)**//\\ > %%row of the %%''subobj''%% in this container.%% Eina_Bool efl_pack_table_cell_row_get(const Eo *obj, Efl_Gfx_Entity *subobj, int *row, int *rowspan); void efl_pack_table_cell_row_set(Eo *obj, Efl_Gfx_Entity *subobj, int row, int rowspan); \\ **[[:develop:api:efl:pack_table:property:table_columns|table_columns]]** //**(get, set)**//\\ > %%Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and %%[[:develop:api:efl:pack_table:property:table_rows|Efl.Pack_Table.table_rows]]%%.%% int efl_pack_table_columns_get(const Eo *obj); void efl_pack_table_columns_set(Eo *obj, int cols); \\ **[[:develop:api:efl:pack_table:method:table_content_get|table_content_get]]**\\ > %%Returns a child at a given position, see %%[[:develop:api:efl:pack_table:method:table_contents_get|Efl.Pack_Table.table_contents_get]]%%.%% Efl_Gfx_Entity *efl_pack_table_content_get(Eo *obj, int col, int row); \\ **[[:develop:api:efl:pack_table:method:table_contents_get|table_contents_get]]**\\ > %%Returns all objects at a given position in this table.%% Eina_Iterator *efl_pack_table_contents_get(Eo *obj, int col, int row, Eina_Bool below); \\ **[[:develop:api:efl:pack_table:property:table_rows|table_rows]]** //**(get, set)**//\\ > %%Specifies the amount of rows the table will have when the fill direction is vertical. If it is horizontal, the amount of rows depends on the amount of cells added and %%[[:develop:api:efl:pack_table:property:table_columns|Efl.Pack_Table.table_columns]]%%.%% int efl_pack_table_rows_get(const Eo *obj); void efl_pack_table_rows_set(Eo *obj, int rows); \\ **[[:develop:api:efl:pack_table:property:table_size|table_size]]** //**(get, set)**//\\ > %%Combines %%[[:develop:api:efl:pack_table:property:table_columns|Efl.Pack_Table.table_columns]]%% and %%[[:develop:api:efl:pack_table:property:table_rows|Efl.Pack_Table.table_rows]]%%%% void efl_pack_table_size_get(const Eo *obj, int *cols, int *rows); void efl_pack_table_size_set(Eo *obj, int cols, int rows); \\ ==== Inherited ==== ^ [[:develop:api:efl:container|Efl.Container]] ^^^ | | **[[:develop:api:efl:container:method:content_count|content_count]]** | %%Returns the number of contained sub-objects.%% | | | **[[:develop:api:efl:container:method:content_iterate|content_iterate]]** | %%Begin iterating over this object's contents.%% | ^ [[:develop:api:efl:pack|Efl.Pack]] ^^^ | | **[[:develop:api:efl:pack:method:pack|pack]]** | %%Adds a sub-object to this container.%% | | | **[[:develop:api:efl:pack:method:pack_clear|pack_clear]]** | %%Removes all packed sub-objects and unreferences them.%% | | | **[[:develop:api:efl:pack:method:unpack|unpack]]** | %%Removes an existing sub-object from the container without deleting it.%% | | | **[[:develop:api:efl:pack:method:unpack_all|unpack_all]]** | %%Removes all packed sub-objects without unreferencing them.%% | ===== Events ===== ==== Inherited ==== ^ [[:develop:api:efl:container|Efl.Container]] ^^^ | | **[[:develop:api:efl:container:event:content_added|content,added]]** | %%Sent after a new sub-object was added.%% | | | **[[:develop:api:efl:container:event:content_removed|content,removed]]** | %%Sent after a sub-object was removed, before unref.%% |