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.
|