1999-07-10 21:17:24 +00:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% htmlcontainercell.tex at 21/Mar/99 22:45:23
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxHtmlContainerCell}}\label{wxhtmlcontainercell}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
The wxHtmlContainerCell class is an implementation of a cell that may
|
1999-08-05 22:05:15 +00:00
|
|
|
contain more cells in it. It is heavily used in the wxHTML layout algorithm.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxHtmlCell}{wxhtmlcell}
|
|
|
|
|
2000-02-27 21:06:58 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/html/htmlcell.h>
|
|
|
|
|
1999-07-10 21:17:24 +00:00
|
|
|
\wxheading{See Also}
|
|
|
|
|
|
|
|
\helpref{Cells Overview}{cells}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::wxHtmlContainerCell}\label{wxhtmlcontainercellwxhtmlcontainercell}
|
|
|
|
|
|
|
|
\func{}{wxHtmlContainerCell}{\param{wxHtmlContainerCell }{*parent}}
|
|
|
|
|
|
|
|
Constructor. {\it parent} is pointer to parent container or NULL.
|
|
|
|
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlContainerCell::GetAlignHor}\label{wxhtmlcontainercellgetalignhor}
|
|
|
|
|
|
|
|
\constfunc{int}{GetAlignHor}{\void}
|
|
|
|
|
|
|
|
Returns container's horizontal alignment.
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetAlignVer}\label{wxhtmlcontainercellgetalignver}
|
|
|
|
|
|
|
|
\constfunc{int}{GetAlignVer}{\void}
|
|
|
|
|
|
|
|
Returns container's vertical alignment.
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetFirstCell}\label{wxhtmlcontainercellgetfirstcell}
|
|
|
|
|
|
|
|
\func{wxHtmlCell*}{GetFirstCell}{\void}
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
{\bf Note:} This shouldn't be used by the end user. If you need some way of
|
1999-10-16 15:38:26 +00:00
|
|
|
finding particular cell in the list, try \helpref{Find}{wxhtmlcellfind} method
|
|
|
|
instead.
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetIndent}\label{wxhtmlcontainercellgetindent}
|
|
|
|
|
|
|
|
\constfunc{int}{GetIndent}{\param{int }{ind}}
|
|
|
|
|
2000-01-18 09:17:21 +00:00
|
|
|
Returns the indentation. {\it ind} is one of the {\bf wxHTML\_INDENT\_*} constants.
|
1999-10-16 15:38:26 +00:00
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
{\bf Note:} You must call \helpref{GetIndentUnits}{wxhtmlcontainercellgetindentunits}
|
1999-10-16 15:38:26 +00:00
|
|
|
with same {\it ind} parameter in order to correctly interpret the returned integer value.
|
|
|
|
It is NOT always in pixels!
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetIndentUnits}\label{wxhtmlcontainercellgetindentunits}
|
|
|
|
|
|
|
|
\constfunc{int}{GetIndentUnits}{\param{int }{ind}}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
Returns the units of indentation for {\it ind} where {\it ind} is one
|
2000-01-18 09:17:21 +00:00
|
|
|
of the {\bf wxHTML\_INDENT\_*} constants.
|
1999-10-16 15:38:26 +00:00
|
|
|
|
1999-07-10 21:17:24 +00:00
|
|
|
\membersection{wxHtmlContainerCell::InsertCell}\label{wxhtmlcontainercellinsertcell}
|
|
|
|
|
|
|
|
\func{void}{InsertCell}{\param{wxHtmlCell }{*cell}}
|
|
|
|
|
|
|
|
Inserts new cell into the container.
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlContainerCell::SetAlign}\label{wxhtmlcontainercellsetalign}
|
|
|
|
|
|
|
|
\func{void}{SetAlign}{\param{const wxHtmlTag\& }{tag}}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
Sets the container's alignment (both horizontal and vertical) according to
|
1999-10-16 15:38:26 +00:00
|
|
|
the values stored in {\it tag}. (Tags {\tt ALIGN} parameter is extracted.) In fact
|
2000-03-15 00:21:49 +00:00
|
|
|
it is only a front-end to \helpref{SetAlignHor}{wxhtmlcontainercellsetalignhor}
|
1999-10-16 15:38:26 +00:00
|
|
|
and \helpref{SetAlignVer}{wxhtmlcontainercellsetalignver}.
|
|
|
|
|
1999-07-10 21:17:24 +00:00
|
|
|
\membersection{wxHtmlContainerCell::SetAlignHor}\label{wxhtmlcontainercellsetalignhor}
|
|
|
|
|
|
|
|
\func{void}{SetAlignHor}{\param{int }{al}}
|
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
Sets the container's {\it horizontal alignment}. During \helpref{Layout}{wxhtmlcelllayout}
|
1999-07-10 21:17:24 +00:00
|
|
|
each line is aligned according to {\it al} value.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{al}{new horizontal alignment. May be one of these values:
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 09:17:21 +00:00
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_LEFT}}{lines are left-aligned (default)}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_JUSTIFY}}{lines are justified}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{lines are centered}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_RIGHT}}{lines are right-aligned}
|
1999-07-10 21:17:24 +00:00
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetAlignVer}\label{wxhtmlcontainercellsetalignver}
|
|
|
|
|
|
|
|
\func{void}{SetAlignVer}{\param{int }{al}}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
Sets the container's {\it vertical alignment}. This is per-line alignment!
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{al}{new vertical alignment. May be one of these values:
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 09:17:21 +00:00
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_BOTTOM}}{cells are over the line (default)}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{cells are centered on line}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_TOP}}{cells are under the line}
|
1999-07-10 21:17:24 +00:00
|
|
|
\end{twocollist}
|
|
|
|
|
1999-12-24 23:40:13 +00:00
|
|
|
\helponly{\image{}{alignv.bmp}}
|
1999-07-10 21:17:24 +00:00
|
|
|
}
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlContainerCell::SetBackgroundColour}\label{wxhtmlcontainercellsetbackgroundcolour}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetBackgroundColour}{\param{const wxColour\& }{clr}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
Sets the background colour for this container.
|
1999-10-16 15:38:26 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetBorder}\label{wxhtmlcontainercellsetborder}
|
|
|
|
|
|
|
|
\func{void}{SetBorder}{\param{const wxColour\& }{clr1}, \param{const wxColour\& }{clr2}}
|
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
Sets the border (frame) colours. A border is a rectangle around the container.
|
1999-10-16 15:38:26 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
\docparam{clr1}{Colour of top and left lines}
|
1999-10-16 15:38:26 +00:00
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
\docparam{clr2}{Colour of bottom and right lines}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetIndent}\label{wxhtmlcontainercellsetindent}
|
|
|
|
|
2000-01-18 09:17:21 +00:00
|
|
|
\func{void}{SetIndent}{\param{int }{i}, \param{int }{what}, \param{int }{units = wxHTML\_UNITS\_PIXELS}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
Sets the indentation (free space between borders of container and subcells).
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{i}{Indentation value.}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\docparam{what}{Determines which of the four borders we're setting. It is OR
|
1999-07-10 21:17:24 +00:00
|
|
|
combination of following constants:
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 09:17:21 +00:00
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_TOP}}{top border}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_BOTTOM}}{bottom}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_LEFT}}{left}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_RIGHT}}{right}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_HORIZONTAL}}{left and right}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_VERTICAL}}{top and bottom}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_ALL}}{all 4 borders}
|
1999-07-10 21:17:24 +00:00
|
|
|
\end{twocollist}
|
|
|
|
|
1999-12-24 23:40:13 +00:00
|
|
|
\helponly{\image{}{indent.bmp}}
|
1999-07-10 21:17:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{units}{Units of {\it i}. This parameter affects interpretation of {\it} value.
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 09:17:21 +00:00
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it i} is number of pixels}
|
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it i} is interpreted as percents of width
|
1999-07-10 21:17:24 +00:00
|
|
|
of parent container}
|
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlContainerCell::SetMinHeight}\label{wxhtmlcontainercellsetminheight}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
2000-01-18 09:17:21 +00:00
|
|
|
\func{void}{SetMinHeight}{\param{int }{h}, \param{int }{align = wxHTML\_ALIGN\_TOP}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-29 22:16:53 +00:00
|
|
|
Sets minimal height of the container.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
When container's \helpref{Layout}{wxhtmlcelllayout} is called, m\_Height
|
1999-10-16 15:38:26 +00:00
|
|
|
is set depending on layout of subcells to the height of area covered
|
1999-10-25 13:46:48 +00:00
|
|
|
by layed-out subcells. Calling this method guarantees you that the height
|
1999-10-16 15:38:26 +00:00
|
|
|
of container is never smaller than {\it h} - even if the subcells cover
|
1999-10-25 13:46:48 +00:00
|
|
|
much smaller area.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\wxheading{Parameters}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\docparam{h}{The minimal height.}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\docparam{align}{If height of the container is lower than the minimum height, empty space must be inserted
|
2000-01-18 09:17:21 +00:00
|
|
|
somewhere in order to ensure minimal height. This parameter is one of {\bf wxHTML\_ALIGN\_TOP,
|
2000-03-15 00:21:49 +00:00
|
|
|
wxHTML\_ALIGN\_BOTTOM, wxHTML\_ALIGN\_CENTER}. It refers to the {\it contents}, not to the
|
|
|
|
empty place.}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetWidthFloat}\label{wxhtmlcontainercellsetwidthfloat}
|
|
|
|
|
|
|
|
\func{void}{SetWidthFloat}{\param{int }{w}, \param{int }{units}}
|
|
|
|
|
1999-12-24 23:40:13 +00:00
|
|
|
\func{void}{SetWidthFloat}{\param{const wxHtmlTag\& }{tag}, \param{double }{pixel\_scale = 1.0}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-29 22:16:53 +00:00
|
|
|
Sets floating width adjustment.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-29 22:16:53 +00:00
|
|
|
The normal behaviour of container is that its width is the same as the width of
|
1999-07-10 21:17:24 +00:00
|
|
|
parent container (and thus you can have only one sub-container per line).
|
|
|
|
You can change this by setting FWA.
|
|
|
|
|
1999-12-24 23:40:13 +00:00
|
|
|
{\it pixel\_scale} is number of real pixels that equals to 1 HTML pixel.
|
1999-12-11 21:50:44 +00:00
|
|
|
|
1999-07-10 21:17:24 +00:00
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{w}{Width of the container. If the value is negative it means
|
1999-10-29 22:16:53 +00:00
|
|
|
complement to full width of parent container (e.g.
|
2000-01-18 09:17:21 +00:00
|
|
|
{\tt SetWidthFloat(-50, wxHTML\_UNITS\_PIXELS)} sets the width
|
1999-07-10 21:17:24 +00:00
|
|
|
of container to parent's width minus 50 pixels. This is useful when
|
|
|
|
creating tables - you can call SetWidthFloat(50) and SetWidthFloat(-50))}
|
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\docparam{units}{Units of {\it w} This parameter affects the interpretation of {\it} value.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 09:17:21 +00:00
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it w} is number of pixels}
|
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it w} is interpreted as percents of width
|
1999-07-10 21:17:24 +00:00
|
|
|
of parent container}
|
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{tag}{In the second version of method, {\it w} and {\it units}
|
|
|
|
info is extracted from tag's {\tt WIDTH} parameter.}
|
|
|
|
|
1999-10-29 22:16:53 +00:00
|
|
|
\pythonnote{The second form of this method is named
|
|
|
|
SetWidthFloatFromTag in wxPython.}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|