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.
27 \membersection{wxListItem::GetAlign
}\label{wxlistitemgetalign
}
29 \constfunc{wxListColumnFormat
}{GetAlign
}{\void}
31 Returns the alignment for this item. Can be one of
32 wxLIST
\_FORMAT\_LEFT, wxLIST
\_FORMAT\_RIGHT or wxLIST
\_FORMAT\_CENTRE.
34 \membersection{wxListItem::GetBackgroundColour
}\label{wxlistitemgetbackgroundcolour
}
36 \constfunc{wxColour
}{GetBackgroundColour
}{\void}
38 Returns the background colour for this item.
40 \membersection{wxListItem::GetColumn
}\label{wxlistitemgetcolumn
}
42 \constfunc{int
}{GetColumn
}{\void}
44 Returns the zero-based column; meaningful only in
report mode.
46 \membersection{wxListItem::GetData
}\label{wxlistitemgetdata
}
48 \constfunc{long
}{GetData
}{\void}
50 Returns client data associated with the control. Please note that
51 client data is associated with the item and not with subitems.
53 \membersection{wxListItem::GetFont
}\label{wxlistitemgetfont
}
55 \constfunc{wxFont
}{GetFont
}{\void}
57 Returns the font used to display the item.
59 \membersection{wxListItem::GetId
}\label{wxlistitemgetid
}
61 \constfunc{long
}{GetId
}{\void}
63 Returns the zero-based item position.
65 \membersection{wxListItem::GetImage
}\label{wxlistitemgetimage
}
67 \constfunc{int
}{GetImage
}{\void}
69 Returns the zero-based index of the image
70 associated with the item into the image list.
72 \membersection{wxListItem::GetMask
}\label{wxlistitemgetmask
}
74 \constfunc{long
}{GetMask
}{\void}
76 Returns a bit mask indicating which fields of the structure are valid;
77 can be any combination of the following values:
80 \begin{twocollist
}\itemsep=
0pt
81 \twocolitem{wxLIST
\_MASK\_STATE}{{\bf GetState
} is valid.
}
82 \twocolitem{wxLIST
\_MASK\_TEXT}{{\bf GetText
} is valid.
}
83 \twocolitem{wxLIST
\_MASK\_IMAGE}{{\bf GetImage
} is valid.
}
84 \twocolitem{wxLIST
\_MASK\_DATA}{{\bf GetData
} is valid.
}
85 \twocolitem{wxLIST
\_MASK\_WIDTH}{{\bf GetWidth
} is valid.
}
86 \twocolitem{wxLIST
\_MASK\_FORMAT}{{\bf GetFormat
} is valid.
}
89 \membersection{wxListItem::GetState
}\label{wxlistitemgetstate
}
91 \constfunc{long
}{GetState
}{\void}
93 Returns a bit field representing the state of the item. Can be any
97 \begin{twocollist
}\itemsep=
0pt
98 \twocolitem{wxLIST
\_STATE\_DONTCARE}{Don't care what the state is. Win32 only.
}
99 \twocolitem{wxLIST
\_STATE\_DROPHILITED}{The item is highlighted to receive a drop event. Win32 only.
}
100 \twocolitem{wxLIST
\_STATE\_FOCUSED}{The item has the focus.
}
101 \twocolitem{wxLIST
\_STATE\_SELECTED}{The item is selected.
}
102 \twocolitem{wxLIST
\_STATE\_CUT}{The item is in the cut state. Win32 only.
}
105 \membersection{wxListItem::GetText
}\label{wxlistitemgettext
}
107 \constfunc{const wxString\&
}{GetText
}{\void}
109 Returns the label/header text.
111 \membersection{wxListItem::GetTextColour
}\label{wxlistitemgettextcolour
}
113 \constfunc{wxColour
}{GetTextColour
}{\void}
115 Returns the text colour.
117 \membersection{wxListItem::GetWidth
}\label{wxlistitemgetwidth
}
119 \constfunc{int
}{GetWidth
}{\void}
121 Meaningful only for column headers in
report mode. Returns the column width.
123 \membersection{wxListItem::SetAlign
}\label{wxlistitemsetalign
}
125 \func{void
}{SetAlign
}{\param{wxListColumnFormat
}{align
}}
127 Sets the alignment for the item. See also
128 \helpref{wxListItem::GetAlign
}{wxlistitemgetalign
}
130 \membersection{wxListItem::SetBackgroundColour
}\label{wxlistitemsetbackgroundcolour
}
132 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
134 Sets the background colour for the item.
136 \membersection{wxListItem::SetColumn
}\label{wxlistitemsetcolumn
}
138 \func{void
}{SetColumn
}{\param{int
}{col
}}
140 Sets the zero-based column. Meaningful only in
report mode.
142 \membersection{wxListItem::SetData
}\label{wxlistitemsetdata
}
144 \func{void
}{SetData
}{\param{long
}{data
}}
146 \func{void
}{SetData
}{\param{void*
}{data
}}
148 Sets client data for the item. Please note that
149 client data is associated with the item and not with subitems.
151 \membersection{wxListItem::SetFont
}\label{wxlistitemsetfont
}
153 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
155 Sets the font for the item.
157 \membersection{wxListItem::SetId
}\label{wxlistitemsetid
}
159 \func{void
}{SetId
}{\param{long
}{id
}}
161 Sets the zero-based item position.
163 \membersection{wxListItem::SetImage
}\label{wxlistitemsetimage
}
165 \func{void
}{SetImage
}{\param{int
}{image
}}
167 Sets the zero-based index of the image associated with the item
170 \membersection{wxListItem::SetMask
}\label{wxlistitemsetmask
}
172 \func{void
}{SetMask
}{\param{long
}{mask
}}
174 Sets the mask of valid fields. See
\helpref{wxListItem::GetMask
}{wxlistitemgetmask
}.
176 \membersection{wxListItem::SetState
}\label{wxlistitemsetstate
}
178 \func{void
}{SetState
}{\param{long
}{state
}}
180 Sets the item state flags (note that the valid state flags are influenced
181 by the value of the state mask, see
182 \helpref{wxListItem::SetStateMask
}{wxlistitemsetstatemask
}).
183 See
\helpref{wxListItem::GetState
}{wxlistitemgetstate
} for valid flag
186 \membersection{wxListItem::SetStateMask
}\label{wxlistitemsetstatemask
}
188 \func{void
}{SetStateMask
}{\param{long
}{stateMask
}}
190 Sets the bitmask that is used to determine which of the state flags
191 are to be set. See also
\helpref{wxListItem::SetState
}{wxlistitemsetstate
}.
193 \membersection{wxListItem::SetText
}\label{wxlistitemsettext
}
195 \func{void
}{SetText
}{\param{const wxString\&
}{text
}}
197 Sets the text label for the item.
199 \membersection{wxListItem::SetTextColour
}\label{wxlistitemsettextcolour
}
201 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
203 Sets the text colour for the item.
205 \membersection{wxListItem::SetWidth
}\label{wxlistitemsetwidth
}
207 \func{void
}{SetWidth
}{\param{int
}{width
}}
209 Meaningful only for column headers in
report mode. Sets the column width.