2 % automatically generated by HelpGen from
3 % htmlcontainercell.tex at 21/Mar/99 22:45:23
6 \section{\class{wxHtmlContainerCell
}}\label{wxhtmlcontainercell
}
8 The wxHtmlContainerCell class is an implementation of a cell that may
9 contain more cells in it. It is heavily used in the wxHTML layout algorithm.
11 \wxheading{Derived from
}
13 \helpref{wxHtmlCell
}{wxhtmlcell
}
15 \wxheading{Include files
}
21 \helpref{Cells Overview
}{cells
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxHtmlContainerCell::wxHtmlContainerCell
}\label{wxhtmlcontainercellwxhtmlcontainercell
}
27 \func{}{wxHtmlContainerCell
}{\param{wxHtmlContainerCell
}{*parent
}}
29 Constructor.
{\it parent
} is pointer to parent container or NULL.
32 \membersection{wxHtmlContainerCell::GetAlignHor
}\label{wxhtmlcontainercellgetalignhor
}
34 \constfunc{int
}{GetAlignHor
}{\void}
36 Returns container's horizontal alignment.
38 \membersection{wxHtmlContainerCell::GetAlignVer
}\label{wxhtmlcontainercellgetalignver
}
40 \constfunc{int
}{GetAlignVer
}{\void}
42 Returns container's vertical alignment.
44 \membersection{wxHtmlContainerCell::GetFirstCell
}\label{wxhtmlcontainercellgetfirstcell
}
46 \func{wxHtmlCell*
}{GetFirstCell
}{\void}
48 Returns pointer to the first cell in the list.
49 You can then use wxHtmlCell's GetNext method to obtain pointer to the next
52 {\bf Note:
} This shouldn't be used by the end user. If you need some way of
53 finding particular cell in the list, try
\helpref{Find
}{wxhtmlcellfind
} method
56 \membersection{wxHtmlContainerCell::GetIndent
}\label{wxhtmlcontainercellgetindent
}
58 \constfunc{int
}{GetIndent
}{\param{int
}{ind
}}
60 Returns the indentation.
{\it ind
} is one of the
{\bf wxHTML
\_INDENT\_*
} constants.
62 {\bf Note:
} You must call
\helpref{GetIndentUnits
}{wxhtmlcontainercellgetindentunits
}
63 with same
{\it ind
} parameter in order to correctly interpret the returned integer value.
64 It is NOT always in pixels!
66 \membersection{wxHtmlContainerCell::GetIndentUnits
}\label{wxhtmlcontainercellgetindentunits
}
68 \constfunc{int
}{GetIndentUnits
}{\param{int
}{ind
}}
70 Returns the units of indentation for
{\it ind
} where
{\it ind
} is one
71 of the
{\bf wxHTML
\_INDENT\_*
} constants.
73 \membersection{wxHtmlContainerCell::InsertCell
}\label{wxhtmlcontainercellinsertcell
}
75 \func{void
}{InsertCell
}{\param{wxHtmlCell
}{*cell
}}
77 Inserts new cell into the container.
79 \membersection{wxHtmlContainerCell::SetAlign
}\label{wxhtmlcontainercellsetalign
}
81 \func{void
}{SetAlign
}{\param{const wxHtmlTag\&
}{tag
}}
83 Sets the container's alignment (both horizontal and vertical) according to
84 the values stored in
{\it tag
}. (Tags
{\tt ALIGN
} parameter is extracted.) In fact
85 it is only a front-end to
\helpref{SetAlignHor
}{wxhtmlcontainercellsetalignhor
}
86 and
\helpref{SetAlignVer
}{wxhtmlcontainercellsetalignver
}.
88 \membersection{wxHtmlContainerCell::SetAlignHor
}\label{wxhtmlcontainercellsetalignhor
}
90 \func{void
}{SetAlignHor
}{\param{int
}{al
}}
92 Sets the container's
{\it horizontal alignment
}. During
\helpref{Layout
}{wxhtmlcelllayout
}
93 each line is aligned according to
{\it al
} value.
95 \wxheading{Parameters
}
97 \docparam{al
}{new horizontal alignment. May be one of these values:
99 \begin{twocollist
}\itemsep=
0pt
100 \twocolitem{{\bf wxHTML
\_ALIGN\_LEFT}}{lines are left-aligned (default)
}
101 \twocolitem{{\bf wxHTML
\_ALIGN\_JUSTIFY}}{lines are justified
}
102 \twocolitem{{\bf wxHTML
\_ALIGN\_CENTER}}{lines are centered
}
103 \twocolitem{{\bf wxHTML
\_ALIGN\_RIGHT}}{lines are right-aligned
}
107 \membersection{wxHtmlContainerCell::SetAlignVer
}\label{wxhtmlcontainercellsetalignver
}
109 \func{void
}{SetAlignVer
}{\param{int
}{al
}}
111 Sets the container's
{\it vertical alignment
}. This is per-line alignment!
113 \wxheading{Parameters
}
115 \docparam{al
}{new vertical alignment. May be one of these values:
117 \begin{twocollist
}\itemsep=
0pt
118 \twocolitem{{\bf wxHTML
\_ALIGN\_BOTTOM}}{cells are over the line (default)
}
119 \twocolitem{{\bf wxHTML
\_ALIGN\_CENTER}}{cells are centered on line
}
120 \twocolitem{{\bf wxHTML
\_ALIGN\_TOP}}{cells are under the line
}
123 \helponly{\image{}{alignv.bmp
}}
126 \membersection{wxHtmlContainerCell::SetBackgroundColour
}\label{wxhtmlcontainercellsetbackgroundcolour
}
128 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{clr
}}
130 Sets the background colour for this container.
132 \membersection{wxHtmlContainerCell::SetBorder
}\label{wxhtmlcontainercellsetborder
}
134 \func{void
}{SetBorder
}{\param{const wxColour\&
}{clr1
},
\param{const wxColour\&
}{clr2
}}
136 Sets the border (frame) colours. A border is a rectangle around the container.
138 \wxheading{Parameters
}
140 \docparam{clr1
}{Colour of top and left lines
}
142 \docparam{clr2
}{Colour of bottom and right lines
}
144 \membersection{wxHtmlContainerCell::SetIndent
}\label{wxhtmlcontainercellsetindent
}
146 \func{void
}{SetIndent
}{\param{int
}{i
},
\param{int
}{what
},
\param{int
}{units = wxHTML
\_UNITS\_PIXELS}}
148 Sets the indentation (free space between borders of container and subcells).
150 \wxheading{Parameters
}
152 \docparam{i
}{Indentation value.
}
154 \docparam{what
}{Determines which of the four borders we're setting. It is OR
155 combination of following constants:
157 \begin{twocollist
}\itemsep=
0pt
158 \twocolitem{{\bf wxHTML
\_INDENT\_TOP}}{top border
}
159 \twocolitem{{\bf wxHTML
\_INDENT\_BOTTOM}}{bottom
}
160 \twocolitem{{\bf wxHTML
\_INDENT\_LEFT}}{left
}
161 \twocolitem{{\bf wxHTML
\_INDENT\_RIGHT}}{right
}
162 \twocolitem{{\bf wxHTML
\_INDENT\_HORIZONTAL}}{left and right
}
163 \twocolitem{{\bf wxHTML
\_INDENT\_VERTICAL}}{top and bottom
}
164 \twocolitem{{\bf wxHTML
\_INDENT\_ALL}}{all
4 borders
}
167 \helponly{\image{}{indent.bmp
}}
170 \docparam{units
}{Units of
{\it i
}. This parameter affects interpretation of
{\it} value.
172 \begin{twocollist
}\itemsep=
0pt
173 \twocolitem{{\bf wxHTML
\_UNITS\_PIXELS}}{{\it i
} is number of pixels
}
174 \twocolitem{{\bf wxHTML
\_UNITS\_PERCENT}}{{\it i
} is interpreted as percents of width
179 \membersection{wxHtmlContainerCell::SetMinHeight
}\label{wxhtmlcontainercellsetminheight
}
181 \func{void
}{SetMinHeight
}{\param{int
}{h
},
\param{int
}{align = wxHTML
\_ALIGN\_TOP}}
183 Sets minimal height of the container.
185 When container's
\helpref{Layout
}{wxhtmlcelllayout
} is called, m
\_Height
186 is set depending on layout of subcells to the height of area covered
187 by layed-out subcells. Calling this method guarantees you that the height
188 of container is never smaller than
{\it h
} - even if the subcells cover
191 \wxheading{Parameters
}
193 \docparam{h
}{The minimal height.
}
195 \docparam{align
}{If height of the container is lower than the minimum height, empty space must be inserted
196 somewhere in order to ensure minimal height. This parameter is one of
{\bf wxHTML
\_ALIGN\_TOP,
197 wxHTML
\_ALIGN\_BOTTOM, wxHTML
\_ALIGN\_CENTER}. It refers to the
{\it contents
}, not to the
200 \membersection{wxHtmlContainerCell::SetWidthFloat
}\label{wxhtmlcontainercellsetwidthfloat
}
202 \func{void
}{SetWidthFloat
}{\param{int
}{w
},
\param{int
}{units
}}
204 \func{void
}{SetWidthFloat
}{\param{const wxHtmlTag\&
}{tag
},
\param{double
}{pixel
\_scale =
1.0}}
206 Sets floating width adjustment.
208 The normal behaviour of container is that its width is the same as the width of
209 parent container (and thus you can have only one sub-container per line).
210 You can change this by setting FWA.
212 {\it pixel
\_scale} is number of real pixels that equals to
1 HTML pixel.
214 \wxheading{Parameters
}
216 \docparam{w
}{Width of the container. If the value is negative it means
217 complement to full width of parent container (e.g.
218 {\tt SetWidthFloat(-
50, wxHTML
\_UNITS\_PIXELS)
} sets the width
219 of container to parent's width minus
50 pixels. This is useful when
220 creating tables - you can call SetWidthFloat(
50) and SetWidthFloat(-
50))
}
222 \docparam{units
}{Units of
{\it w
} This parameter affects the interpretation of
{\it} value.
224 \begin{twocollist
}\itemsep=
0pt
225 \twocolitem{{\bf wxHTML
\_UNITS\_PIXELS}}{{\it w
} is number of pixels
}
226 \twocolitem{{\bf wxHTML
\_UNITS\_PERCENT}}{{\it w
} is interpreted as percents of width
231 \docparam{tag
}{In the second version of method,
{\it w
} and
{\it units
}
232 info is extracted from tag's
{\tt WIDTH
} parameter.
}
234 \pythonnote{The second form of this method is named
235 SetWidthFloatFromTag in wxPython.
}