#include <wx/clntdata.h>
This class is a replacement for wxClientDataContainer, and unlike wxClientDataContainer the wxSharedClientDataContainer client data is copiable, so it can be copied when objects containing it are cloned.
Like wxClientDataContainer, wxSharedClientDataContainer is a mixin that provides storage and management of "client data.". The client data is reference counted and managed by the container. As the client data is a shared object, changing the client data used by any object changes it for all other objects, too.
Public Member Functions | |
void * | GetClientData () const |
Get the untyped client data. More... | |
wxClientData * | GetClientObject () const |
Get a pointer to the client data object. More... | |
void | SetClientData (void *data) |
Set the untyped client data. More... | |
void | SetClientObject (wxClientData *data) |
Set the client data object. More... | |
void* wxSharedClientDataContainer::GetClientData | ( | ) | const |
Get the untyped client data.
wxClientData* wxSharedClientDataContainer::GetClientObject | ( | ) | const |
Get a pointer to the client data object.
void wxSharedClientDataContainer::SetClientData | ( | void * | data | ) |
Set the untyped client data.
void wxSharedClientDataContainer::SetClientObject | ( | wxClientData * | data | ) |
Set the client data object.
Any previous object will be deleted.