Contents Up Previous Next

wxClientDataContainer

This class is a mixin that provides storage and management of "client data." This data can either be of type void - in which case the data container does not take care of freeing the data again or it is of type wxClientData or its derivatives. In that case the container will free the memory itself later. Note that you must not assign both void data and data derived from the wxClientData class to a container.

NOTE: This functionality is currently duplicated in wxEvtHandler in order to avoid having more than one vtable in that class hierarchy.

See also

wxEvtHandler, wxClientData

Derived from

No base class

Include files

<wx/clntdata.h>

Data structures

Members

wxClientDataContainer::wxClientDataContainer
wxClientDataContainer::~wxClientDataContainer
wxClientDataContainer::GetClientData
wxClientDataContainer::GetClientObject
wxClientDataContainer::SetClientData
wxClientDataContainer::SetClientObject


wxClientDataContainer::wxClientDataContainer

wxClientDataContainer()


wxClientDataContainer::~wxClientDataContainer

~wxClientDataContainer()


wxClientDataContainer::GetClientData

void* GetClientData() const

Get the untyped client data.


wxClientDataContainer::GetClientObject

wxClientData* GetClientObject() const

Get a pointer to the client data object.


wxClientDataContainer::SetClientData

void SetClientData(void* data)

Set the untyped client data.


wxClientDataContainer::SetClientObject

void SetClientObject(wxClientData* data)

Set the client data object. Any previous object will be deleted.