Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Table: The Table Layout Container.

Defines the Ewl_Box class used for laying out Ewl_Widget's in a horizontal or vertical line. More...

Defines

#define EWL_TABLE(table)   ((Ewl_Table *)table)
 Typecase a pointer to an Ewl_Table pointer.


Typedefs

typedef Ewl_Table Ewl_Table
 The table widget is an Ewl_Container used to lay out widgets in a grid like pattern with headers and alignment.


Functions

Ewl_Widgetewl_table_new (int cols, int rows, char **col_headers)
 Create a new table.

int ewl_table_init (Ewl_Table *t, int cols, int rows, char **col_headers)
 Initialize table to starting values.

void ewl_table_add (Ewl_Table *table, Ewl_Cell *cell, int start_col, int end_col, int start_row, int end_row)
 Add a child widget to the table.

void ewl_table_reset (Ewl_Table *t, int cols, int rows, char **c_headers)
 Clear the table and set new geometry.

void ewl_table_col_w_set (Ewl_Table *table, int col, int width)
 Set the width of a table column.

void ewl_table_row_h_set (Ewl_Table *table, int row, int height)
 Set the height of a table row.

void ewl_table_col_w_get (Ewl_Table *table, int col, int *width)
 Get the width of a table column.

void ewl_table_row_h_get (Ewl_Table *table, int row, int *height)
 Get the height of a table row.

void ewl_table_col_row_get (Ewl_Table *table, Ewl_Cell *cell, int *start_col, int *end_col, int *start_row, int *end_row)
 Get the column and row of a widget.

Ecore_List * ewl_table_find (Ewl_Table *table, int start_col, int end_col, int start_row, int emd_row)
 Get a list of the widgets in the specified col/row.

char * ewl_table_selected_get (Ewl_Table *table)
 Get the text in the current selected box.


Detailed Description

Defines the Ewl_Box class used for laying out Ewl_Widget's in a horizontal or vertical line.


Function Documentation

void ewl_table_add Ewl_Table table,
Ewl_Cell cell,
int  start_col,
int  end_col,
int  start_row,
int  end_row
 

Add a child widget to the table.

Parameters:
table: the table
cell: the cell to add
start_col: the start column
end_col: the end columnt
start_row: the start row
end_row: the end row
Returns:
Returns no value.

void ewl_table_col_row_get Ewl_Table t,
Ewl_Cell cell,
int *  start_col,
int *  end_col,
int *  start_row,
int *  end_row
 

Get the column and row of a widget.

Parameters:
t: the table
cell: the cell to add
start_col: integer pointer to store the start column
end_col: integer pointer to store the end column in
start_row: integer pointer to store the start row in
end_row: integer pointer to store the end row in
Returns:
Returns nothing

void ewl_table_col_w_get Ewl_Table table,
int  col,
int *  width
 

Get the width of a table column.

Parameters:
table: the table
col: the column
width: integer pointer to store the width in
Returns:
Returns no value.

void ewl_table_col_w_set Ewl_Table table,
int  col,
int  width
 

Set the width of a table column.

Parameters:
table: the table
col: the column
width: the new width
Returns:
Returns no value.

Ecore_List* ewl_table_find Ewl_Table t,
int  start_col,
int  end_col,
int  start_row,
int  end_row
 

Get a list of the widgets in the specified col/row.

Parameters:
t: the table
start_col: the start column
end_col: the end column
start_row: the start row
end_row: the end row
Returns:
Returns Ecore_List of widgets found in the specified col/row area.

int ewl_table_init Ewl_Table t,
int  cols,
int  rows,
char **  col_headers
 

Initialize table to starting values.

Parameters:
t: the table
cols: the number of columns
rows: the number of rows
col_headers: the column titles
Returns:
Returns no value.
Responsible for setting up default values and callbacks withing the table structure

Ewl_Widget* ewl_table_new int  cols,
int  rows,
char **  col_headers
 

Create a new table.

Parameters:
cols: the number of columns
rows: the number of rows
col_headers: the column titles
Returns:
Returns a a newl table on success, NULL on failure.

void ewl_table_reset Ewl_Table t,
int  cols,
int  rows,
char **  col_headers
 

Clear the table and set new geometry.

Parameters:
t: the table
cols: the new number of columns
rows: the new number of columns
col_headers: the new column headers
Returns:
Returns no value

void ewl_table_row_h_get Ewl_Table table,
int  row,
int *  height
 

Get the height of a table row.

Parameters:
table: the table
row: the row
height: integer pointer to store the height in
Returns:
Returns no value.

void ewl_table_row_h_set Ewl_Table table,
int  row,
int  height
 

Set the height of a table row.

Parameters:
table: the table
row: the row
height: the new height
Returns:
Returns no value.

char* ewl_table_selected_get Ewl_Table t  ) 
 

Get the text in the current selected box.

Parameters:
t: the table
Returns:
Returns the text in the currently selected widget in the table