wx.SharedClientDataContainer¶This class is a replacement for wx.ClientDataContainer, and unlike wx.ClientDataContainer the wx.SharedClientDataContainer client data is copiable, so it can be copied when objects containing it are cloned.
Like wx.ClientDataContainer, wx.SharedClientDataContainer 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.
Added in version 4.1/wxWidgets-3.1.7.
Note
If your class has a Clone function and needs to store client data, use wx.SharedClientDataContainer and not ClientDataContainer!
See also
wx.ClientDataContainer, ClientData
Class Hierarchy¶
Inheritance diagram for class SharedClientDataContainer:
Known Subclasses¶wx.grid.GridCellAttr, wx.grid.GridCellEditor, wx.grid.GridCellRenderer
Methods Summary¶Get the untyped client data. |
|
Get a pointer to the client data object. |
|
Set the untyped client data. |
|
Set the client data object. |
Properties Summary¶See |
|
See |
Class API¶This class is a replacement for ClientDataContainer, and unlike ClientDataContainer the SharedClientDataContainer client data is copiable, so it can be copied when objects containing it are cloned.
Get the untyped client data.
Any
Get a pointer to the client data object.
Set the untyped client data.
data
None
Set the client data object.
Any previous object will be deleted.
data (ClientData)
None
See GetClientData and SetClientData
See GetClientObject and SetClientObject