Inheritance diagram for wx.html.HtmlContainerCell:
The wx.html.HtmlContainerCell class is an implementation of a cell that may contain more cells in it. It is heavily used in the wxHTML layout algorithm.
Constructor.
Parameters:
Returns:
Returns container’s horizontal alignment.
Returns:
int
Returns container’s vertical alignment.
Returns:
int
Returns the background colour of the container or wx.NullColour if no background colour is set.
Returns:
Returns the indentation.
ind is one of the wx.HTML_INDENT_* constants, see SetIndent for constants details.
Parameters:
Returns:
int
Note
You must call GetIndentUnits with same ind parameter in order to correctly interpret the returned integer value. It is not always in pixels!
See also
Returns the units of indentation for ind where ind is one of the wx.HTML_INDENT_* constants, see SetIndent for constants details.
Parameters:
Returns:
int
See also
Inserts new cell into the container.
Parameters:
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.
Parameters:
Sets the container’s horizontal alignment.
During Layout each line is aligned according to al value.
Parameters:
al (int): new horizontal alignment. May be one of these values:
Horizontal Alignment Flag |
Description |
---|---|
wx.html.HTML_ALIGN_LEFT |
Lines are left-aligned (default). |
wx.html.HTML_ALIGN_JUSTIFY |
Lines are justified. |
wx.html.HTML_ALIGN_CENTER |
Lines are centered. |
wx.html.HTML_ALIGN_RIGHT |
Lines are right-aligned. |
Sets the container’s vertical alignment. This is per-line alignment!
Parameters:
al (int): new vertical alignment. May be one of these values:
Vertical Alignment Flag |
Description |
---|---|
wx.html.HTML_ALIGN_BOTTOM |
Cells are over the line (default). |
wx.html.HTML_ALIGN_CENTER |
Cells are centered on line. |
wx.html.HTML_ALIGN_TOP |
Cells are under the line. |
See this image for vertical alignment explanation:
Sets the background colour for this container.
Parameters:
Sets the border (frame) colours. A border is a rectangle around the container.
Parameters:
Sets the indentation (free space between borders of container and subcells).
Parameters:
i (int): Indentation value.
what (int): Determines which of the four borders we’re setting. It is OR combination of following constants:
Border Flag |
Description |
---|---|
wx.html.HTML_INDENT_TOP |
top border |
wx.html.HTML_INDENT_BOTTOM |
bottom |
wx.html.HTML_INDENT_LEFT |
left |
wx.html.HTML_INDENT_RIGHT |
right |
wx.html.HTML_INDENT_HORIZONTAL |
left and right |
wx.html.HTML_INDENT_VERTICAL |
top and bottom |
wx.html.HTML_INDENT_ALL |
all 4 borders |
And this image for border explanation:
units (int): Units of i. This parameter affects interpretation of the value:
Units Flag |
Description |
---|---|
wx.html.HTML_UNITS_PIXELS |
i is number of pixels. |
wx.html.HTML_UNITS_PERCENT |
i is interpreted as percents of width of parent container. |
Sets minimal height of the container.
When container’s Layout is called, the 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.
Parameters:
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.
Parameters:
w (int): Width of the container. If the value is negative it means complement to full width of parent container, e.g. SetWidthFloat(-50, wx.html.HTML_UNITS_PIXELS) sets the width of container to parent’s width minus 50 pixels. This is useful when creating tables – you can call SetWidthFloat(50) and SetWidthFloat(-50).
units (int): Units of w. This parameter affects the interpretation of value:
Units Flag |
Description |
---|---|
wx.html.HTML_UNITS_PIXELS |
w is number of pixels. |
wx.html.HTML_UNITS_PERCENT |
w is interpreted as percents of width of parent container. |
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.
Parameters: