]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htcontnr.tex
Added periods
[wxWidgets.git] / docs / latex / wx / htcontnr.tex
CommitLineData
c40aba83
WS
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: htcontnr.tex
3%% Purpose: wxHtmlContainerCell documentation
4%% Author: wxWidgets Team
5%% Modified by:
6%% Created: 21/Mar/99 22:45:23
7%% RCS-ID: $Id$
8%% Copyright: (c) wxWidgets Team
9%% License: wxWindows license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
704a4b75 11
704a4b75
VS
12\section{\class{wxHtmlContainerCell}}\label{wxhtmlcontainercell}
13
448af9a4 14The wxHtmlContainerCell class is an implementation of a cell that may
22d6efa8 15contain more cells in it. It is heavily used in the wxHTML layout algorithm.
704a4b75
VS
16
17\wxheading{Derived from}
18
19\helpref{wxHtmlCell}{wxhtmlcell}
20
9704b250
VS
21\wxheading{Include files}
22
23<wx/html/htmlcell.h>
24
a7af285d
VZ
25\wxheading{Library}
26
27\helpref{wxHtml}{librarieslist}
28
704a4b75
VS
29\wxheading{See Also}
30
31\helpref{Cells Overview}{cells}
32
33\latexignore{\rtfignore{\wxheading{Members}}}
34
704a4b75
VS
35\membersection{wxHtmlContainerCell::wxHtmlContainerCell}\label{wxhtmlcontainercellwxhtmlcontainercell}
36
37\func{}{wxHtmlContainerCell}{\param{wxHtmlContainerCell }{*parent}}
38
39Constructor. {\it parent} is pointer to parent container or NULL.
40
41
559fe022
VS
42\membersection{wxHtmlContainerCell::GetAlignHor}\label{wxhtmlcontainercellgetalignhor}
43
44\constfunc{int}{GetAlignHor}{\void}
45
46Returns container's horizontal alignment.
47
48\membersection{wxHtmlContainerCell::GetAlignVer}\label{wxhtmlcontainercellgetalignver}
49
50\constfunc{int}{GetAlignVer}{\void}
51
52Returns container's vertical alignment.
53
2b5f62a0
VZ
54\membersection{wxHtmlContainerCell::GetBackgroundColour}\label{wxhtmlcontainercellgetbackgroundcolour}
55
56\func{wxColour}{GetBackgroundColour}{\void}
57
58Returns the background colour of the container or {\tt wxNullColour} if no background
59colour is set.
60
559fe022
VS
61\membersection{wxHtmlContainerCell::GetIndent}\label{wxhtmlcontainercellgetindent}
62
63\constfunc{int}{GetIndent}{\param{int }{ind}}
64
dff873d1 65Returns the indentation. {\it ind} is one of the {\bf wxHTML\_INDENT\_*} constants.
559fe022 66
fa482912 67{\bf Note:} You must call \helpref{GetIndentUnits}{wxhtmlcontainercellgetindentunits}
559fe022
VS
68with same {\it ind} parameter in order to correctly interpret the returned integer value.
69It is NOT always in pixels!
70
71\membersection{wxHtmlContainerCell::GetIndentUnits}\label{wxhtmlcontainercellgetindentunits}
72
73\constfunc{int}{GetIndentUnits}{\param{int }{ind}}
74
448af9a4 75Returns the units of indentation for {\it ind} where {\it ind} is one
dff873d1 76of the {\bf wxHTML\_INDENT\_*} constants.
559fe022 77
704a4b75
VS
78\membersection{wxHtmlContainerCell::InsertCell}\label{wxhtmlcontainercellinsertcell}
79
80\func{void}{InsertCell}{\param{wxHtmlCell }{*cell}}
81
82Inserts new cell into the container.
83
559fe022
VS
84\membersection{wxHtmlContainerCell::SetAlign}\label{wxhtmlcontainercellsetalign}
85
86\func{void}{SetAlign}{\param{const wxHtmlTag\& }{tag}}
87
448af9a4 88Sets the container's alignment (both horizontal and vertical) according to
559fe022 89the values stored in {\it tag}. (Tags {\tt ALIGN} parameter is extracted.) In fact
fa482912 90it is only a front-end to \helpref{SetAlignHor}{wxhtmlcontainercellsetalignhor}
559fe022
VS
91and \helpref{SetAlignVer}{wxhtmlcontainercellsetalignver}.
92
704a4b75
VS
93\membersection{wxHtmlContainerCell::SetAlignHor}\label{wxhtmlcontainercellsetalignhor}
94
95\func{void}{SetAlignHor}{\param{int }{al}}
96
fa482912 97Sets the container's {\it horizontal alignment}. During \helpref{Layout}{wxhtmlcelllayout}
704a4b75
VS
98each line is aligned according to {\it al} value.
99
100\wxheading{Parameters}
101
102\docparam{al}{new horizontal alignment. May be one of these values:
103
448af9a4 104\begin{twocollist}\itemsep=0pt
dff873d1
VS
105\twocolitem{{\bf wxHTML\_ALIGN\_LEFT}}{lines are left-aligned (default)}
106\twocolitem{{\bf wxHTML\_ALIGN\_JUSTIFY}}{lines are justified}
107\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{lines are centered}
108\twocolitem{{\bf wxHTML\_ALIGN\_RIGHT}}{lines are right-aligned}
704a4b75
VS
109\end{twocollist}
110}
111
704a4b75
VS
112\membersection{wxHtmlContainerCell::SetAlignVer}\label{wxhtmlcontainercellsetalignver}
113
114\func{void}{SetAlignVer}{\param{int }{al}}
115
448af9a4 116Sets the container's {\it vertical alignment}. This is per-line alignment!
704a4b75
VS
117
118\wxheading{Parameters}
119
120\docparam{al}{new vertical alignment. May be one of these values:
121
448af9a4 122\begin{twocollist}\itemsep=0pt
dff873d1
VS
123\twocolitem{{\bf wxHTML\_ALIGN\_BOTTOM}}{cells are over the line (default)}
124\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{cells are centered on line}
125\twocolitem{{\bf wxHTML\_ALIGN\_TOP}}{cells are under the line}
704a4b75
VS
126\end{twocollist}
127
605d715d 128\helponly{\image{}{alignv.bmp}}
704a4b75
VS
129}
130
559fe022 131\membersection{wxHtmlContainerCell::SetBackgroundColour}\label{wxhtmlcontainercellsetbackgroundcolour}
704a4b75 132
559fe022 133\func{void}{SetBackgroundColour}{\param{const wxColour\& }{clr}}
704a4b75 134
fa482912 135Sets the background colour for this container.
559fe022
VS
136
137\membersection{wxHtmlContainerCell::SetBorder}\label{wxhtmlcontainercellsetborder}
138
139\func{void}{SetBorder}{\param{const wxColour\& }{clr1}, \param{const wxColour\& }{clr2}}
140
fa482912 141Sets the border (frame) colours. A border is a rectangle around the container.
559fe022
VS
142
143\wxheading{Parameters}
144
fa482912 145\docparam{clr1}{Colour of top and left lines}
559fe022 146
fa482912 147\docparam{clr2}{Colour of bottom and right lines}
704a4b75 148
704a4b75
VS
149\membersection{wxHtmlContainerCell::SetIndent}\label{wxhtmlcontainercellsetindent}
150
dff873d1 151\func{void}{SetIndent}{\param{int }{i}, \param{int }{what}, \param{int }{units = wxHTML\_UNITS\_PIXELS}}
704a4b75 152
448af9a4 153Sets the indentation (free space between borders of container and subcells).
704a4b75
VS
154
155\wxheading{Parameters}
156
157\docparam{i}{Indentation value.}
158
448af9a4 159\docparam{what}{Determines which of the four borders we're setting. It is OR
704a4b75
VS
160combination of following constants:
161
448af9a4 162\begin{twocollist}\itemsep=0pt
dff873d1
VS
163\twocolitem{{\bf wxHTML\_INDENT\_TOP}}{top border}
164\twocolitem{{\bf wxHTML\_INDENT\_BOTTOM}}{bottom}
165\twocolitem{{\bf wxHTML\_INDENT\_LEFT}}{left}
166\twocolitem{{\bf wxHTML\_INDENT\_RIGHT}}{right}
167\twocolitem{{\bf wxHTML\_INDENT\_HORIZONTAL}}{left and right}
168\twocolitem{{\bf wxHTML\_INDENT\_VERTICAL}}{top and bottom}
169\twocolitem{{\bf wxHTML\_INDENT\_ALL}}{all 4 borders}
704a4b75
VS
170\end{twocollist}
171
605d715d 172\helponly{\image{}{indent.bmp}}
704a4b75
VS
173}
174
175\docparam{units}{Units of {\it i}. This parameter affects interpretation of {\it} value.
176
448af9a4 177\begin{twocollist}\itemsep=0pt
dff873d1
VS
178\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it i} is number of pixels}
179\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it i} is interpreted as percents of width
704a4b75
VS
180of parent container}
181\end{twocollist}
182}
183
559fe022 184\membersection{wxHtmlContainerCell::SetMinHeight}\label{wxhtmlcontainercellsetminheight}
704a4b75 185
dff873d1 186\func{void}{SetMinHeight}{\param{int }{h}, \param{int }{align = wxHTML\_ALIGN\_TOP}}
704a4b75 187
b32c6ff0 188Sets minimal height of the container.
704a4b75 189
448af9a4 190When container's \helpref{Layout}{wxhtmlcelllayout} is called, m\_Height
559fe022 191is set depending on layout of subcells to the height of area covered
448af9a4 192by layed-out subcells. Calling this method guarantees you that the height
559fe022 193of container is never smaller than {\it h} - even if the subcells cover
448af9a4 194much smaller area.
704a4b75 195
559fe022 196\wxheading{Parameters}
704a4b75 197
559fe022 198\docparam{h}{The minimal height.}
704a4b75 199
448af9a4 200\docparam{align}{If height of the container is lower than the minimum height, empty space must be inserted
dff873d1 201somewhere in order to ensure minimal height. This parameter is one of {\bf wxHTML\_ALIGN\_TOP,
fa482912
JS
202wxHTML\_ALIGN\_BOTTOM, wxHTML\_ALIGN\_CENTER}. It refers to the {\it contents}, not to the
203empty place.}
704a4b75
VS
204
205\membersection{wxHtmlContainerCell::SetWidthFloat}\label{wxhtmlcontainercellsetwidthfloat}
206
207\func{void}{SetWidthFloat}{\param{int }{w}, \param{int }{units}}
208
605d715d 209\func{void}{SetWidthFloat}{\param{const wxHtmlTag\& }{tag}, \param{double }{pixel\_scale = 1.0}}
704a4b75 210
b32c6ff0 211Sets floating width adjustment.
704a4b75 212
b32c6ff0 213The normal behaviour of container is that its width is the same as the width of
704a4b75
VS
214parent container (and thus you can have only one sub-container per line).
215You can change this by setting FWA.
216
605d715d 217{\it pixel\_scale} is number of real pixels that equals to 1 HTML pixel.
edbd0635 218
704a4b75
VS
219\wxheading{Parameters}
220
221\docparam{w}{Width of the container. If the value is negative it means
b32c6ff0 222complement to full width of parent container (e.g.
dff873d1 223{\tt SetWidthFloat(-50, wxHTML\_UNITS\_PIXELS)} sets the width
704a4b75
VS
224of container to parent's width minus 50 pixels. This is useful when
225creating tables - you can call SetWidthFloat(50) and SetWidthFloat(-50))}
226
448af9a4 227\docparam{units}{Units of {\it w} This parameter affects the interpretation of {\it} value.
704a4b75 228
448af9a4 229\begin{twocollist}\itemsep=0pt
dff873d1
VS
230\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it w} is number of pixels}
231\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it w} is interpreted as percents of width
704a4b75
VS
232of parent container}
233\end{twocollist}
234}
235
236\docparam{tag}{In the second version of method, {\it w} and {\it units}
237info is extracted from tag's {\tt WIDTH} parameter.}
238
b32c6ff0
RD
239\pythonnote{The second form of this method is named
240SetWidthFloatFromTag in wxPython.}
241
242
243
244
245
246
247
248