The wxHtmlContainerCell class is an implementation of a cell that may contain more cells in it. It is heavily used in the wxHTML layout algorithm.
Constructor. parent is pointer to parent container or NULL.
int GetAlignHor(void) const
Returns container's horizontal alignment.
int GetAlignVer(void) const
Returns container's vertical alignment.
Returns the background colour of the container or wxNullColour if no background colour is set.
Returns pointer to the first cell in the list. You can then use wxHtmlCell's GetNext method to obtain pointer to the next cell in list.
Note: This shouldn't be used by the end user. If you need some way of finding particular cell in the list, try Find method instead.
int GetIndent(int ind) const
Returns the indentation. ind is one of the wxHTML_INDENT_* constants.
Note: You must call GetIndentUnits with same ind parameter in order to correctly interpret the returned integer value. It is NOT always in pixels!
int GetIndentUnits(int ind) const
Returns the units of indentation for ind where ind is one of the wxHTML_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 SetAlignHor and SetAlignVer.
Sets the container's horizontal alignment. During Layout each line is aligned according to al value.
|wxHTML_ALIGN_LEFT||lines are left-aligned (default)|
|wxHTML_ALIGN_JUSTIFY||lines are justified|
|wxHTML_ALIGN_CENTER||lines are centered|
|wxHTML_ALIGN_RIGHT||lines are right-aligned|
Sets the container's vertical alignment. This is per-line alignment!
|wxHTML_ALIGN_BOTTOM||cells are over the line (default)|
|wxHTML_ALIGN_CENTER||cells are centered on line|
|wxHTML_ALIGN_TOP||cells are under the line|
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).
|wxHTML_INDENT_HORIZONTAL||left and right|
|wxHTML_INDENT_VERTICAL||top and bottom|
|wxHTML_INDENT_ALL||all 4 borders|
|wxHTML_UNITS_PIXELS||i is number of pixels|
|wxHTML_UNITS_PERCENT||i is interpreted as percents of width of 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.
|wxHTML_UNITS_PIXELS||w is number of pixels|
|wxHTML_UNITS_PERCENT||w is interpreted as percents of width of parent container|
wxPython での注意点: The second form of this method is named SetWidthFloatFromTag in wxPython.