1 \section{\class{wxListItem
}}\label{wxlistitem
}
3 This class stores information about a wxListCtrl item or column.
5 \wxheading{Derived from
}
7 \helpref{wxObject
}{wxobject
}
9 \wxheading{Include files
}
13 \latexignore{\rtfignore{\wxheading{Members
}}}
15 \membersection{wxListItem::wxListItem
}\label{wxlistitemwxlistitem
}
17 \func{}{wxListItem
}{\void}
21 \membersection{wxListItem::Clear
}\label{wxlistitemclear
}
23 \func{void
}{Clear
}{\void}
25 Resets the item state to the default.
29 \membersection{wxListItem::GetAlign
}\label{wxlistitemgetalign
}
31 \constfunc{wxListColumnFormat
}{GetAlign
}{\void}
33 Returns the alignment for this item. Can be one of
34 wxLIST
\_FORMAT\_LEFT, wxLIST
\_FORMAT\_RIGHT or wxLIST
\_FORMAT\_CENTRE.
38 \membersection{wxListItem::GetBackgroundColour
}\label{wxlistitemgetbackgroundcolour
}
40 \constfunc{wxColour
}{GetBackgroundColour
}{\void}
42 Returns the background colour for this item.
46 \membersection{wxListItem::GetColumn
}\label{wxlistitemgetcolumn
}
48 \constfunc{int
}{GetColumn
}{\void}
50 Returns the zero-based column; meaningful only in
report mode.
54 \membersection{wxListItem::GetData
}\label{wxlistitemgetdata
}
56 \constfunc{long
}{GetData
}{\void}
58 Returns client data associated with the control.
62 \membersection{wxListItem::GetFont
}\label{wxlistitemgetfont
}
64 \constfunc{wxFont
}{GetFont
}{\void}
66 Returns the font used to display the item.
70 \membersection{wxListItem::GetId
}\label{wxlistitemgetid
}
72 \constfunc{long
}{GetId
}{\void}
74 Returns the zero-based item position.
78 \membersection{wxListItem::GetImage
}\label{wxlistitemgetimage
}
80 \constfunc{int
}{GetImage
}{\void}
82 Returns the zero-based index of the image
83 associated with the item into the image list.
87 \membersection{wxListItem::GetMask
}\label{wxlistitemgetmask
}
89 \constfunc{long
}{GetMask
}{\void}
91 Returns a bit mask indicating which fields of the structure are valid;
92 can be any combination of the following values:
95 \begin{twocollist
}\itemsep=
0pt
96 \twocolitem{wxLIST
\_MASK\_STATE}{The
{\bf GetState
} is valid.
}
97 \twocolitem{wxLIST
\_MASK\_TEXT}{The
{\bf GetText
} is valid.
}
98 \twocolitem{wxLIST
\_MASK\_IMAGE}{The
{\bf GetImage
} is valid.
}
99 \twocolitem{wxLIST
\_MASK\_DATA}{The
{\bf GetData
} is valid.
}
100 \twocolitem{wxLIST
\_MASK\_WIDTH}{The
{\bf GetWidth
} is valid.
}
101 \twocolitem{wxLIST
\_MASK\_FORMAT}{The
{\bf GetAlign
} is valid.
}
106 \membersection{wxListItem::GetState
}\label{wxlistitemgetstate
}
108 \constfunc{long
}{GetState
}{\void}
110 Returns a bit field representing the state of the item. Can be any
114 \begin{twocollist
}\itemsep=
0pt
115 \twocolitem{wxLIST
\_STATE\_DONTCARE}{Don't care what the state is. Win32 only.
}
116 \twocolitem{wxLIST
\_STATE\_DROPHILITED}{The item is highlighted to receive a drop event. Win32 only.
}
117 \twocolitem{wxLIST
\_STATE\_FOCUSED}{The item has the focus.
}
118 \twocolitem{wxLIST
\_STATE\_SELECTED}{The item is selected.
}
119 \twocolitem{wxLIST
\_STATE\_CUT}{The item is in the cut state. Win32 only.
}
124 \membersection{wxListItem::GetText
}\label{wxlistitemgettext
}
126 \constfunc{const wxString\&
}{GetText
}{\void}
128 Returns the label/header text.
132 \membersection{wxListItem::GetTextColour
}\label{wxlistitemgettextcolour
}
134 \constfunc{wxColour
}{GetTextColour
}{\void}
136 Returns the text colour.
140 \membersection{wxListItem::GetWidth
}\label{wxlistitemgetwidth
}
142 \constfunc{int
}{GetWidth
}{\void}
144 Meaningful only for column headers in
report mode. Returns the column width.
148 \membersection{wxListItem::SetAlign
}\label{wxlistitemsetalign
}
150 \func{void
}{SetAlign
}{\param{wxListColumnFormat
}{align
}}
152 Sets the alignment for the item. See also
153 \helpref{wxListItem::SetAlign
}{wxlistitemsetalign
}
157 \membersection{wxListItem::SetBackgroundColour
}\label{wxlistitemsetbackgroundcolour
}
159 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
161 Sets the background colour for the item.
165 \membersection{wxListItem::SetColumn
}\label{wxlistitemsetcolumn
}
167 \func{void
}{SetColumn
}{\param{int
}{col
}}
169 Sets the zer-based column. Meaningful only in
report mode.
173 \membersection{wxListItem::SetData
}\label{wxlistitemsetdata
}
175 \func{void
}{SetData
}{\param{long
}{data
}}
177 \func{void
}{SetData
}{\param{void*
}{data
}}
179 Sets client data for the item.
183 \membersection{wxListItem::SetFont
}\label{wxlistitemsetfont
}
185 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
187 Sets the font for the item.
191 \membersection{wxListItem::SetId
}\label{wxlistitemsetid
}
193 \func{void
}{SetId
}{\param{long
}{id
}}
195 Sets the zero-based item position.
199 \membersection{wxListItem::SetImage
}\label{wxlistitemsetimage
}
201 \func{void
}{SetImage
}{\param{int
}{image
}}
203 Returns the zero-based index of the image associated with the item
208 \membersection{wxListItem::SetMask
}\label{wxlistitemsetmask
}
210 \func{void
}{SetMask
}{\param{long
}{mask
}}
212 Sets the mask of valid fields. See
213 \helpref{wxListItem::SetMask
}{wxlistitemsetmask
}.
217 \membersection{wxListItem::SetState
}\label{wxlistitemsetstate
}
219 \func{void
}{SetState
}{\param{long
}{state
}}
221 Sets the item state flags (note that the valid state flags are influenced
222 by the value of the state mask, see
223 \helpref{wxListItem::SetStateMask
}{wxlistitemsetstatemask
}).
224 See
\helpref{wxListItem::GetState
}{wxlistitemsetstate
} for valid flag
229 \membersection{wxListItem::SetStateMask
}\label{wxlistitemsetstatemask
}
231 \func{void
}{SetStateMask
}{\param{long
}{stateMask
}}
233 Sets the bitmask that is used to determine which of the state flags
234 are to be set. See also
\helpref{wxListItem::SetState
}{wxlistitemsetstate
}.
238 \membersection{wxListItem::SetText
}\label{wxlistitemsettext
}
240 \func{void
}{SetText
}{\param{const wxString\&
}{text
}}
242 Sets the text label for the item.
246 \membersection{wxListItem::SetTextColour
}\label{wxlistitemsettextcolour
}
248 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
250 Sets the text colour for the item.
254 \membersection{wxListItem::SetWidth
}\label{wxlistitemsetwidth
}
256 \func{void
}{SetWidth
}{\param{int
}{width
}}
258 Meaningful only for column headers in
report mode. Sets the column width.