Cell in a table. It plays a similar role to class node, controlling graphical images in a hierarchical layout.
Normally, a table_cell
object is created as a side effect of table->append,
appending a graphical to a table.
The table_cell object stores layout information on this particular cell (spanning, alignment, etc.), as well as information required by the table object for fast manipulation of the cells. Important attributes:
table_cell ->cell_paddingSpace around the layout_interface <-imagetable_cell ->col_span# columns spanned table_cell ->row_span# rows spanned table_cell ->halignHorizontal alignment of the image table_cell ->valignVertical alignment of the image table_cell ->selectedSelect the cell. table_cell <-column1-based column index (read) table_cell <-row1-based row index (read)
<-table.->col_span
will destroy cells in the spanned area, while contracting the span will
created holes in the table. See also table_cell->row_span.<-column<-image
in cell. Values:
<-image
in the box.
<-image
in the box
<-image
in the box
<-reference
of all cells in this column having this alignment, and place the
graphicals such that the references are horizontally aligned. For
example, one could define a subclass of class text
that returns the X-location of a decimal dot as the X-value of the
reference, for proper alignment of a column holding numerical data.
See also table_column->halign
and table_cell->valign.
The image is part of the background of the cell. See also table_cell->background.
<-row.->col_span.->_redraw_area
to draw a box around the selected cells. See also table<->selection.<-image
in cell. Symetric to table_cell->halign.
|pixmap]->note_mark.<-image
of the cell. Normally,
table_cell objects
are created implicitely by table_cell<-convert.<-table
and removes the layout_interface<-image
from its device.
<-cell_padding)
in the coordinate system of the device to which the table
object is connected. See also table<-cell_from_position,
graphical<-area
and graphical->in_event_area.<-image.
This method ensures graphicals can be appended directly to a table.
<-layout_manager,
but fails of the cell is not part of a table, instead of returning @nil.