The HtmlContainerCell class is an implementation of a cell that may
contain more cells in it. It is heavily used in the HTML layout algorithm.
Constructor. parent is pointer to parent container or NULL.
Returns container’s horizontal alignment.
Returns container’s vertical alignment.
Returns the background colour of the container or NullColour
if no background
colour is set.
Returns the indentation. ind is one of the *HTML_INDENT_** constants.
Note: You must call get_indent_units
with same ind parameter in order to correctly interpret the returned integer value.
It is NOT always in pixels!
Returns the units of indentation for ind where ind is one
of the *HTML_INDENT_** constants.
Inserts new cell into the container.
Sets the container’s alignment (both horizontal and vertical) according to
the values stored in tag_. (Tags ALIGN
parameter is extracted.) In fact
it is only a front-end to set_align_hor
and set_align_versetalignver.
Sets the container’s horizontal alignment. During Layout
each line is aligned according to al value.
HTML_ALIGN_LEFT | lines are left-aligned (default) |
HTML_ALIGN_JUSTIFY | lines are justified |
HTML_ALIGN_CENTER | lines are centered |
HTML_ALIGN_RIGHT | lines are right-aligned |
Sets the container’s vertical alignment. This is per-line alignment!
HTML_ALIGN_BOTTOM | cells are over the line (default) |
HTML_ALIGN_CENTER | cells are centered on line |
HTML_ALIGN_TOP | cells are under the line |
alignv.bmp
Sets the background colour for this container.
Sets the border (frame) colours. A border is a rectangle around the container.
Sets the indentation (free space between borders of container and subcells).
HTML_INDENT_TOP | top border |
HTML_INDENT_BOTTOM | bottom |
HTML_INDENT_LEFT | left |
HTML_INDENT_RIGHT | right |
HTML_INDENT_HORIZONTAL | left and right |
HTML_INDENT_VERTICAL | top and bottom |
HTML_INDENT_ALL | all 4 borders |
indent.bmp
HTML_UNITS_PIXELS | i is number of pixels |
HTML_UNITS_PERCENT | i is interpreted as percents of widthof parent container |
Sets minimal height of the container.
When container’s Layout is called, m_Height
is set depending on layout of subcells to the height of area covered
by layed-out subcells. Calling this method guarantees you that the height
of container is never smaller than h – even if the subcells cover
much smaller area.
Sets floating width adjustment.
The normal behaviour of container is that its width is the same as the width of
parent container (and thus you can have only one sub-container per line).
You can change this by setting FWA.
pixel_scale is number of real pixels that equals to 1 HTML pixel.
SetWidthFloat(-50, HTML_UNITS_PIXELS)
sets the widthHTML_UNITS_PIXELS | w is number of pixels |
HTML_UNITS_PERCENT | w is interpreted as percents of widthof parent container |
WIDTH
parameter.[This page automatically generated from the Textile source at 2023-06-03 08:07:33 +0000]