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