wxHtmlContainerCellThe wxHtmlContainerCell class is an implementation of a cell that may contain more cells in it. It is heavily used in the wxHTML layout algorithm. Derived from Include files <wx/html/htmlcell.h> See Also Members
wxHtmlContainerCell::wxHtmlContainerCell
wxHtmlContainerCell::wxHtmlContainerCellwxHtmlContainerCell(wxHtmlContainerCell *parent) Constructor. parent is pointer to parent container or NULL.
wxHtmlContainerCell::GetAlignHorint GetAlignHor() const Returns container's horizontal alignment.
wxHtmlContainerCell::GetAlignVerint GetAlignVer() const Returns container's vertical alignment.
wxHtmlContainerCell::GetBackgroundColourwxColour GetBackgroundColour() Returns the background colour of the container or wxNullColour if no background colour is set.
wxHtmlContainerCell::GetIndentint 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!
wxHtmlContainerCell::GetIndentUnitsint GetIndentUnits(int ind) const Returns the units of indentation for ind where ind is one of the wxHTML_INDENT_* constants.
wxHtmlContainerCell::InsertCellvoid InsertCell(wxHtmlCell *cell) Inserts new cell into the container.
wxHtmlContainerCell::SetAlignvoid SetAlign(const wxHtmlTag& tag) 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.
wxHtmlContainerCell::SetAlignHorvoid SetAlignHor(int al) Sets the container's horizontal alignment. During Layout each line is aligned according to al value. Parameters al
wxHtmlContainerCell::SetAlignVervoid SetAlignVer(int al) Sets the container's vertical alignment. This is per-line alignment! Parameters al
wxHtmlContainerCell::SetBackgroundColourvoid SetBackgroundColour(const wxColour& clr) Sets the background colour for this container.
wxHtmlContainerCell::SetBordervoid SetBorder(const wxColour& clr1, const wxColour& clr2) Sets the border (frame) colours. A border is a rectangle around the container. Parameters clr1
clr2
wxHtmlContainerCell::SetIndentvoid SetIndent(int i, int what, int units = wxHTML_UNITS_PIXELS) Sets the indentation (free space between borders of container and subcells). Parameters i
what
units
wxHtmlContainerCell::SetMinHeightvoid SetMinHeight(int h, int align = wxHTML_ALIGN_TOP) 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. Parameters h
align
wxHtmlContainerCell::SetWidthFloatvoid SetWidthFloat(int w, int units) void SetWidthFloat(const wxHtmlTag& tag, double pixel_scale = 1.0) 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. Parameters w
units
tag
wxPython note: The second form of this method is named SetWidthFloatFromTag in wxPython.
|