This function adds the tc ETableCol definition into the eth ETableHeader
at position pos. This is the way you add new ETableCols to the
ETableHeader. The header will assume ownership of the tc; you should not
unref it after you add it.
This function will emit the "structure_change" signal on the eth object.
The ETableCol is assumed
int e_table_header_index (ETableHeader *eth,
int col);
ETableHeaders contain the visual list of columns that the user will
view. The visible columns will typically map to different columns
in the ETableModel (because the user reordered the data for
example).
Returns: the column in the model that the col column
in the ETableHeader points to. */
int
e_table_header_index (ETableHeader *eth, int col)
{
g_return_val_if_fail (eth != NULL, -1);
g_return_val_if_fail (E_IS_TABLE_HEADER (eth), -1);
g_return_val_if_fail (col >= 0 && col < eth->col_count, -1);
return eth->columns [col]->col_idx;
}
/**
e_table_header_get_index_at:
eth: the ETableHeader to query
x_offset: a pixel count from the beginning of the ETableHeader
This will return the ETableHeader column that would contain
the x_offset pixel.
eth :
the ETableHeader to query
col :
the column to fetch.
Returns :
the column that contains pixel x_offset, or -1
if no column inside this ETableHeader contains that pixel.
e_table_header_get_index_at ()
int e_table_header_get_index_at (ETableHeader *eth,
int x_offset);
A NULL terminated array of the ETableCols
contained in the ETableHeader eth. Note that every
returned ETableCol in the array has been referenced, to release
this information you need to g_free the buffer returned
and you need to gtk_object_unref every element returned
e_table_header_get_selected ()
int e_table_header_get_selected (ETableHeader *eth);
eth :
The ETableHeader to query
Returns :
The number of selected columns in the eth object.
e_table_header_total_width ()
int e_table_header_total_width (ETableHeader *eth);
eth :
The ETableHeader to query
Returns :
the number of pixels used by the eth object
when rendered on screen
e_table_header_move ()
void e_table_header_move (ETableHeader *eth,
int source_index,
int target_index);
This function moves the column source_index to target_index
inside the eth ETableHeader. The signals "dimension_change"
and "structure_change" will be emmited
eth :
The ETableHeader to operate on.
source_index :
the source column to move.
target_index :
the target location for the column
e_table_header_remove ()
void e_table_header_remove (ETableHeader *eth,
int idx);
Removes the column at idx position in the ETableHeader eth.
This emmits the "structure_change" signal on the eth object.
eth :
The ETableHeader to operate on.
idx :
the index to the column to be removed.
e_table_header_set_size ()
void e_table_header_set_size (ETableHeader *eth,
int idx,
int size);