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.
52 \membersection{wxListItem::GetFont
}\label{wxlistitemgetfont
}
54 \constfunc{wxFont
}{GetFont
}{\void}
56 Returns the font used to display the item.
58 \membersection{wxListItem::GetId
}\label{wxlistitemgetid
}
60 \constfunc{long
}{GetId
}{\void}
62 Returns the zero-based item position.
64 \membersection{wxListItem::GetImage
}\label{wxlistitemgetimage
}
66 \constfunc{int
}{GetImage
}{\void}
68 Returns the zero-based index of the image
69 associated with the item into the image list.
71 \membersection{wxListItem::GetMask
}\label{wxlistitemgetmask
}
73 \constfunc{long
}{GetMask
}{\void}
75 Returns a bit mask indicating which fields of the structure are valid;
76 can be any combination of the following values:
79 \begin{twocollist
}\itemsep=
0pt
80 \twocolitem{wxLIST
\_MASK\_STATE}{{\bf GetState
} is valid.
}
81 \twocolitem{wxLIST
\_MASK\_TEXT}{{\bf GetText
} is valid.
}
82 \twocolitem{wxLIST
\_MASK\_IMAGE}{{\bf GetImage
} is valid.
}
83 \twocolitem{wxLIST
\_MASK\_DATA}{{\bf GetData
} is valid.
}
84 \twocolitem{wxLIST
\_MASK\_WIDTH}{{\bf GetWidth
} is valid.
}
85 \twocolitem{wxLIST
\_MASK\_FORMAT}{{\bf GetFormat
} is valid.
}
88 \membersection{wxListItem::GetState
}\label{wxlistitemgetstate
}
90 \constfunc{long
}{GetState
}{\void}
92 Returns a bit field representing the state of the item. Can be any
96 \begin{twocollist
}\itemsep=
0pt
97 \twocolitem{wxLIST
\_STATE\_DONTCARE}{Don't care what the state is. Win32 only.
}
98 \twocolitem{wxLIST
\_STATE\_DROPHILITED}{The item is highlighted to receive a drop event. Win32 only.
}
99 \twocolitem{wxLIST
\_STATE\_FOCUSED}{The item has the focus.
}
100 \twocolitem{wxLIST
\_STATE\_SELECTED}{The item is selected.
}
101 \twocolitem{wxLIST
\_STATE\_CUT}{The item is in the cut state. Win32 only.
}
104 \membersection{wxListItem::GetText
}\label{wxlistitemgettext
}
106 \constfunc{const wxString\&
}{GetText
}{\void}
108 Returns the label/header text.
110 \membersection{wxListItem::GetTextColour
}\label{wxlistitemgettextcolour
}
112 \constfunc{wxColour
}{GetTextColour
}{\void}
114 Returns the text colour.
116 \membersection{wxListItem::GetWidth
}\label{wxlistitemgetwidth
}
118 \constfunc{int
}{GetWidth
}{\void}
120 Meaningful only for column headers in
report mode. Returns the column width.
122 \membersection{wxListItem::SetAlign
}\label{wxlistitemsetalign
}
124 \func{void
}{SetAlign
}{\param{wxListColumnFormat
}{align
}}
126 Sets the alignment for the item. See also
127 \helpref{wxListItem::GetAlign
}{wxlistitemgetalign
}
129 \membersection{wxListItem::SetBackgroundColour
}\label{wxlistitemsetbackgroundcolour
}
131 \func{void
}{SetBackgroundColour
}{\param{const wxColour\&
}{colBack
}}
133 Sets the background colour for the item.
135 \membersection{wxListItem::SetColumn
}\label{wxlistitemsetcolumn
}
137 \func{void
}{SetColumn
}{\param{int
}{col
}}
139 Sets the zero-based column. Meaningful only in
report mode.
141 \membersection{wxListItem::SetData
}\label{wxlistitemsetdata
}
143 \func{void
}{SetData
}{\param{long
}{data
}}
145 \func{void
}{SetData
}{\param{void*
}{data
}}
147 Sets client data for the item.
149 \membersection{wxListItem::SetFont
}\label{wxlistitemsetfont
}
151 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
153 Sets the font for the item.
155 \membersection{wxListItem::SetId
}\label{wxlistitemsetid
}
157 \func{void
}{SetId
}{\param{long
}{id
}}
159 Sets the zero-based item position.
161 \membersection{wxListItem::SetImage
}\label{wxlistitemsetimage
}
163 \func{void
}{SetImage
}{\param{int
}{image
}}
165 Sets the zero-based index of the image associated with the item
168 \membersection{wxListItem::SetMask
}\label{wxlistitemsetmask
}
170 \func{void
}{SetMask
}{\param{long
}{mask
}}
172 Sets the mask of valid fields. See
\helpref{wxListItem::GetMask
}{wxlistitemgetmask
}.
174 \membersection{wxListItem::SetState
}\label{wxlistitemsetstate
}
176 \func{void
}{SetState
}{\param{long
}{state
}}
178 Sets the item state flags (note that the valid state flags are influenced
179 by the value of the state mask, see
180 \helpref{wxListItem::SetStateMask
}{wxlistitemsetstatemask
}).
181 See
\helpref{wxListItem::GetState
}{wxlistitemsetstate
} for valid flag
184 \membersection{wxListItem::SetStateMask
}\label{wxlistitemsetstatemask
}
186 \func{void
}{SetStateMask
}{\param{long
}{stateMask
}}
188 Sets the bitmask that is used to determine which of the state flags
189 are to be set. See also
\helpref{wxListItem::SetState
}{wxlistitemsetstate
}.
191 \membersection{wxListItem::SetText
}\label{wxlistitemsettext
}
193 \func{void
}{SetText
}{\param{const wxString\&
}{text
}}
195 Sets the text label for the item.
197 \membersection{wxListItem::SetTextColour
}\label{wxlistitemsettextcolour
}
199 \func{void
}{SetTextColour
}{\param{const wxColour\&
}{colText
}}
201 Sets the text colour for the item.
203 \membersection{wxListItem::SetWidth
}\label{wxlistitemsetwidth
}
205 \func{void
}{SetWidth
}{\param{int
}{width
}}
207 Meaningful only for column headers in
report mode. Sets the column width.