Version: 3.0.3

#include <wx/dataview.h>

Detailed Description

wxDataViewItem is a small opaque class that represents an item in a wxDataViewCtrl in a persistent way, i.e.

independent of the position of the item in the control or changes to its contents.

It must hold a unique ID of type void* in its only field and can be converted to and from it.

If the ID is NULL the wxDataViewItem is invalid and wxDataViewItem::IsOk will return false which used in many places in the API of wxDataViewCtrl to indicate that e.g. no item was found. An ID of NULL is also used to indicate the invisible root. Examples for this are wxDataViewModel::GetParent and wxDataViewModel::GetChildren.

Library:  wxAdvanced
Category:  wxDataViewCtrl Related Classes

Public Member Functions

void * GetID () const
 Returns the ID. More...
bool IsOk () const
 Returns true if the ID is not NULL. More...
 wxDataViewItem ()
 Constructor. More...
 wxDataViewItem (const wxDataViewItem &item)
 Constructor. More...
 wxDataViewItem (void *id)
 Constructor. More...

Constructor & Destructor Documentation

wxDataViewItem::wxDataViewItem ( )


wxDataViewItem::wxDataViewItem ( const wxDataViewItem item)


wxDataViewItem::wxDataViewItem ( void *  id)


Member Function Documentation

void* wxDataViewItem::GetID ( ) const

Returns the ID.

bool wxDataViewItem::IsOk ( ) const

Returns true if the ID is not NULL.