2 % automatically generated by HelpGen from
3 % htmlcontainercell.tex at 21/Mar/99 22:45:23
7 \section{\class{wxHtmlContainerCell
}}\label{wxhtmlcontainercell
}
9 wxHtmlContainerCell class an implementation of cell that may
10 contain more cells in it. It is heavily used in layouting algorithm.
13 \wxheading{Derived from
}
15 \helpref{wxHtmlCell
}{wxhtmlcell
}
19 \helpref{Cells Overview
}{cells
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxHtmlContainerCell::wxHtmlContainerCell
}\label{wxhtmlcontainercellwxhtmlcontainercell
}
26 \func{}{wxHtmlContainerCell
}{\param{wxHtmlContainerCell
}{*parent
}}
28 Constructor.
{\it parent
} is pointer to parent container or NULL.
31 \membersection{wxHtmlContainerCell::InsertCell
}\label{wxhtmlcontainercellinsertcell
}
33 \func{void
}{InsertCell
}{\param{wxHtmlCell
}{*cell
}}
35 Inserts new cell into the container.
37 \membersection{wxHtmlContainerCell::SetAlignHor
}\label{wxhtmlcontainercellsetalignhor
}
39 \func{void
}{SetAlignHor
}{\param{int
}{al
}}
41 Sets container's
{\it horizontal alignment
}. During
\helpref{Layout
}{wxhtmlcelllayout
}
42 each line is aligned according to
{\it al
} value.
44 \wxheading{Parameters
}
46 \docparam{al
}{new horizontal alignment. May be one of these values:
49 \twocolitem{{\bf HTML
\_ALIGN\_LEFT}}{lines are left-aligned (default)
}
50 \twocolitem{{\bf HTML
\_ALIGN\_CENTER\_H}}{lines are centered
}
51 \twocolitem{{\bf HTML
\_ALIGN\_RIGHT}}{lines are right-aligned
}
56 \membersection{wxHtmlContainerCell::GetAlignHor
}\label{wxhtmlcontainercellgetalignhor
}
58 \constfunc{int
}{GetAlignHor
}{\void}
60 Returns container's horizontal alignment.
62 \membersection{wxHtmlContainerCell::SetAlignVer
}\label{wxhtmlcontainercellsetalignver
}
64 \func{void
}{SetAlignVer
}{\param{int
}{al
}}
66 Sets container's
{\it vertical alignment
}. This is per-line alignment!
68 \wxheading{Parameters
}
70 \docparam{al
}{new vertical alignment. May be one of these values:
73 \twocolitem{{\bf HTML
\_ALIGN\_BOTTOM}}{cells are over the line (default)
}
74 \twocolitem{{\bf HTML
\_ALIGN\_CENTER\_V}}{cells are centered on line
}
75 \twocolitem{{\bf HTML
\_ALIGN\_TOP}}{cells are under the line
}
81 \membersection{wxHtmlContainerCell::GetAlignVer
}\label{wxhtmlcontainercellgetalignver
}
83 \constfunc{int
}{GetAlignVer
}{\void}
85 Returns container's vertical alignment.
88 \membersection{wxHtmlContainerCell::SetIndent
}\label{wxhtmlcontainercellsetindent
}
90 \func{void
}{SetIndent
}{\param{int
}{i
},
\param{int
}{what
},
\param{int
}{units = HTML
\_UNITS\_PIXELS}}
92 Sets indentation (free space between borders of container and subcells).
94 \wxheading{Parameters
}
96 \docparam{i
}{Indentation value.
}
98 \docparam{what
}{Determines which of the
4 borders we're setting. It is OR
99 combination of following constants:
102 \twocolitem{{\bf HTML
\_INDENT\_TOP}}{top border
}
103 \twocolitem{{\bf HTML
\_INDENT\_BOTTOM}}{bottom
}
104 \twocolitem{{\bf HTML
\_INDENT\_LEFT}}{left
}
105 \twocolitem{{\bf HTML
\_INDENT\_RIGHT}}{right
}
106 \twocolitem{{\bf HTML
\_INDENT\_HORIZONTAL}}{left and right
}
107 \twocolitem{{\bf HTML
\_INDENT\_VERTICAL}}{top and bottom
}
108 \twocolitem{{\bf HTML
\_INDENT\_ALL}}{all
4 borders
}
114 \docparam{units
}{Units of
{\it i
}. This parameter affects interpretation of
{\it} value.
117 \twocolitem{{\bf HTML
\_UNITS\_PIXELS}}{{\it i
} is number of pixels
}
118 \twocolitem{{\bf HTML
\_UNITS\_PERCENT}}{{\it i
} is interpreted as percents of width
123 \membersection{wxHtmlContainerCell::GetIndent
}\label{wxhtmlcontainercellgetindent
}
125 \constfunc{int
}{GetIndent
}{\param{int
}{ind
}}
127 Returns the indentation.
{\it ind
} is one of the
{\bf HTML
\_INDENT\_*
} constants.
129 {\bf Note:
} You must call
\helpref{GetIndentUnits
}{wxhtmlcontainercellgetindentunits
}
130 with same
{\it ind
} parameter in order to correctly interpret the returned integer value.
131 It is NOT always in pixels!
133 \membersection{wxHtmlContainerCell::GetIndentUnits
}\label{wxhtmlcontainercellgetindentunits
}
135 \constfunc{int
}{GetIndentUnits
}{\param{int
}{ind
}}
137 Returns units of intentation value for
{\it ind
} where
{\it ind
} is one
138 of the
{\bf HTML
\_INDENT\_*
} constants.
141 \membersection{wxHtmlContainerCell::SetAlign
}\label{wxhtmlcontainercellsetalign
}
143 \func{void
}{SetAlign
}{\param{const wxHtmlTag\&
}{tag
}}
145 Sets container's alignment (both horizontal and vertical) according to
146 the values stored in
{\it tag
}. (Tags
{\tt ALIGN
} parameter is extracted.) In fact
147 it is only a front-end to
\helpref{SetAlignHor
}{wxhtmlcontainercellsetalignhor
}
148 and
\helpref{SetAlignVer
}{wxhtmlcontainercellsetalignver
}.
151 \membersection{wxHtmlContainerCell::SetWidthFloat
}\label{wxhtmlcontainercellsetwidthfloat
}
153 \func{void
}{SetWidthFloat
}{\param{int
}{w
},
\param{int
}{units
}}
155 \func{void
}{SetWidthFloat
}{\param{const wxHtmlTag\&
}{tag
}}
157 Sets floating width adjustment.
159 Normal behaviour of container is that it's width is same as width of
160 parent container (and thus you can have only one sub-container per line).
161 You can change this by setting FWA.
163 \wxheading{Parameters
}
165 \docparam{w
}{Width of the container. If the value is negative it means
166 complement to full width of parent container (e.g.
167 {\tt SetWidthFloat(-
50, HTML
\_UNITS\_PIXELS)
} sets the width
168 of container to parent's width minus
50 pixels. This is useful when
169 creating tables - you can call SetWidthFloat(
50) and SetWidthFloat(-
50))
}
171 \docparam{units
}{Units of
{\it w
} This parameter affects interpretation of
{\it} value.
174 \twocolitem{{\bf HTML
\_UNITS\_PIXELS}}{{\it w
} is number of pixels
}
175 \twocolitem{{\bf HTML
\_UNITS\_PERCENT}}{{\it w
} is interpreted as percents of width
180 \docparam{tag
}{In the second version of method,
{\it w
} and
{\it units
}
181 info is extracted from tag's
{\tt WIDTH
} parameter.
}
184 \membersection{wxHtmlContainerCell::SetMinHeight
}\label{wxhtmlcontainercellsetminheight
}
186 \func{void
}{SetMinHeight
}{\param{int
}{h
},
\param{int
}{align = HTML_ALIGN_TOP
}}
188 Sets minimal height of the container.
190 (When container's
\helpref{Layout
}{wxhtmlcelllayout
} is called, m_Height
191 is set depending on layout of subcells to the height of area covered
192 by layouted subcells. Call to this method guarantees you that the height
193 of container is never smaller than
{\it h
} - even if the subcells cover
196 \wxheading{Parameters
}
198 \docparam{h
}{The minimal height.
}
200 \docparam{align
}{If height of the container is lower than min. height, empty space must be inserted
201 somewhere in order to ensure minimal height. This parameter is one of
{\bf HTML_ALIGN_TOP,
202 HTML_ALIGN_BOTTOM, HTML_ALIGN_CENTER
} constants. It refers to the
{\it contents
}, not to the
205 \membersection{wxHtmlContainerCell::GetMaxLineWidth
}\label{wxhtmlcontainercellgetmaxlinewidth
}
207 \constfunc{int
}{GetMaxLineWidth
}{\void}
209 Returns width of widest line (note : this may be more than GetWidth()!!
210 E.g. if you have
640x480 image and the wxHtmlWindow is only
100x100...)
212 Call to this method is valid only after calling
\helpref{Layout
}{wxhtmlcelllayout
}
215 \membersection{wxHtmlContainerCell::SetBackgroundColour
}\label{wxhtmlcontainercellsetbackgroundcolour
}
217 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{clr
}}
219 Sets background
color for this container.
223 \membersection{wxHtmlContainerCell::SetBorder
}\label{wxhtmlcontainercellsetborder
}
225 \func{void
}{SetBorder
}{\param{const wxColour\&
}{clr1
},
\param{const wxColour\&
}{clr2
}}
227 Sets border (frame) colours. Border is rectangle around the container.
229 \wxheading{Parameters
}
231 \docparam{clr1
}{Color of top and left lines
}
233 \docparam{clr2
}{Color of bottom and right lines
}
237 \membersection{wxHtmlContainerCell::GetFirstCell
}\label{wxhtmlcontainercellgetfirstcell
}
239 \func{wxHtmlCell*
}{GetFirstCell
}{\void}
241 Returns pointer to the first cell in the list.
242 You can then use wxHtmlCell's GetNext method to obtain pointer to the next
245 {\bf Note
} : This shouldn't be used by end user. If you need some way of
246 finding particular cell in the list, try
\helpref{Find
}{wxhtmlcellfind
} method