Interface Efl.IPackTable
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 Efl.IPack.Pack(Efl.Gfx.IEntity) and the container will chose where to put them.
Syntax
public interface IPackTable : IPack, IContainer, IWrapper, IDisposable
Properties
TableColumns
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 Efl.IPackTable.TableRows.
Declaration
int TableColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Amount of columns. |
TableRows
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 Efl.IPackTable.TableColumns.
Declaration
int TableRows { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Amount of rows. |
TableSize
Combines Efl.IPackTable.TableColumns and Efl.IPackTable.TableRows
Declaration
(int, int)TableSize { get; set; }
Property Value
Type | Description |
---|---|
System.ValueTuple<System.Int32, System.Int32> | Number of columns |
Methods
GetTableCellColumn(IEntity, out Int32, out Int32)
column of the subobj
in this container.
Declaration
bool GetTableCellColumn(IEntity subobj, out int col, out int colspan)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | Child object |
System.Int32 | col | Column number |
System.Int32 | colspan | Column span |
Returns
Type | Description |
---|---|
System.Boolean | Returns false if item is not a child |
GetTableCellRow(IEntity, out Int32, out Int32)
row of the subobj
in this container.
Declaration
bool GetTableCellRow(IEntity subobj, out int row, out int rowspan)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | Child object |
System.Int32 | row | Row number |
System.Int32 | rowspan | Row span |
Returns
Type | Description |
---|---|
System.Boolean | Returns false if item is not a child |
GetTableColumns()
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 Efl.IPackTable.TableRows.
Declaration
int GetTableColumns()
Returns
Type | Description |
---|---|
System.Int32 | Amount of columns. |
GetTableContent(Int32, Int32)
Returns a child at a given position, see Efl.IPackTable.GetTableContents(System.Int32, System.Int32, System.Boolean).
Declaration
IEntity GetTableContent(int col, int row)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | col | Column number |
System.Int32 | row | Row number |
Returns
Type | Description |
---|---|
Efl.Gfx.IEntity | Child object |
GetTableContents(Int32, Int32, Boolean)
Returns all objects at a given position in this table.
Declaration
Iterator<IEntity> GetTableContents(int col, int row, bool below)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | col | Column number |
System.Int32 | row | Row number |
System.Boolean | below | If |
Returns
Type | Description |
---|---|
Eina.Iterator<Efl.Gfx.IEntity> | Iterator to table contents |
GetTableRows()
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 Efl.IPackTable.TableColumns.
Declaration
int GetTableRows()
Returns
Type | Description |
---|---|
System.Int32 | Amount of rows. |
GetTableSize(out Int32, out Int32)
Combines Efl.IPackTable.TableColumns and Efl.IPackTable.TableRows
Declaration
void GetTableSize(out int cols, out int rows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cols | Number of columns |
System.Int32 | rows | Number of rows |
PackTable(IEntity, Int32, Int32, Int32, Int32)
Pack object at a given location in the table.
When this container is deleted, it will request deletion of the given subobj
. Use Efl.IPack.Unpack(Efl.Gfx.IEntity) to remove subobj
from this container without deleting it.
Declaration
bool PackTable(IEntity subobj, int col, int row, int colspan, int rowspan)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | A child object to pack in this table. |
System.Int32 | col | Column number |
System.Int32 | row | Row number |
System.Int32 | colspan | 0 means 1, -1 means Efl.IPackTable.TableColumns |
System.Int32 | rowspan | 0 means 1, -1 means Efl.IPackTable.TableRows |
Returns
Type | Description |
---|---|
System.Boolean |
|
SetTableCellColumn(IEntity, Int32, Int32)
column of the subobj
in this container.
Declaration
void SetTableCellColumn(IEntity subobj, int col, int colspan)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | Child object |
System.Int32 | col | Column number |
System.Int32 | colspan | Column span |
SetTableCellRow(IEntity, Int32, Int32)
row of the subobj
in this container.
Declaration
void SetTableCellRow(IEntity subobj, int row, int rowspan)
Parameters
Type | Name | Description |
---|---|---|
Efl.Gfx.IEntity | subobj | Child object |
System.Int32 | row | Row number |
System.Int32 | rowspan | Row span |
SetTableColumns(Int32)
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 Efl.IPackTable.TableRows.
Declaration
void SetTableColumns(int cols)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cols | Amount of columns. |
SetTableRows(Int32)
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 Efl.IPackTable.TableColumns.
Declaration
void SetTableRows(int rows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rows | Amount of rows. |
SetTableSize(Int32, Int32)
Combines Efl.IPackTable.TableColumns and Efl.IPackTable.TableRows
Declaration
void SetTableSize(int cols, int rows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cols | Number of columns |
System.Int32 | rows | Number of rows |