2 \section{\class{wxDataViewItem
}}\label{wxdataviewitem
}
4 wxDataViewItem is a small opaque class that represents an
5 item in a
\helpref{wxDataViewCtrl
}{wxdataviewctrl
} in a
6 persistent way, i.e. indepent of the position of the
7 item in the control or changes to its contents. It must
8 hold a unique ID of type
{\it void*
} in its only field
9 and can be converted to a from it.
11 If the ID is
{\it NULL
} the wxDataViewItem is invalid and
12 \helpref{IsOk
}{wxdataviewitemisok
} will return
{\it false
}
13 which used in many places in the API of wxDataViewCtrl
14 to indicate that e.g. no item was found. An ID of NULL
15 is also used to indicate the invisible root. Examples
17 \helpref{wxDataViewModel::GetParent
}{wxdataviewmodelgetparent
} and
18 \helpref{wxDataViewModel::GetChildren
}{wxdataviewmodelgetchildren
}.
21 \wxheading{Derived from
}
25 \wxheading{Include files
}
31 \helpref{wxAdv
}{librarieslist
}
34 \membersection{wxDataViewItem::wxDataViewItem
}\label{wxdataviewitemwxdataviewitem
}
36 \func{}{wxDataViewItem
}{\param{void*
}{id = NULL
}}
40 \func{}{wxDataViewItem
}{\param{const wxDataViewItem\&
}{item
}}
43 \membersection{wxDataViewItem::GetID
}\label{wxdataviewitemgetid
}
45 \constfunc{void*
}{GetID
}{\void}
49 \membersection{wxDataViewItem::IsOk
}\label{wxdataviewitemisok
}
51 \constfunc{bool
}{IsOk
}{\void}
53 Returns true if the ID is not
{\it NULL
}.
55 \membersection{wxDataViewItem::void*
}\label{wxdataviewitemvoid
}
57 \constfunc{operator const
}{void*
}{\void}
59 Converts to
{\it void*
}.