wxPropertyGrid
Public Member Functions | List of all members
wxPGVariantData Class Referenceabstract

wxVariantData with additional functionality. More...

#include <propgrid.h>

Inheritance diagram for wxPGVariantData:

Public Member Functions

virtual wxVariant GetDefaultValue () const =0
 
virtual void * GetValuePtr ()=0
 

Detailed Description

wxVariantData with additional functionality.

It is usually enough to use supplied to macros to automatically generate variant data class. Like so:

// In header
WX_PG_DECLARE_VARIANT_DATA(wxPGVariantDataMyClass, // Name of the class
MyClass, // Name of the data type
wxEMPTY_PARAMETER_VALUE) // Declaration
// In source
WX_PG_IMPLEMENT_VARIANT_DATA(wxPGVariantDataMyClass, MyClass)

If your class has operator==() implementation, then it is recommended that you use WX_PG_IMPLEMENT_VARIANT_DATA_WITH_EQ macro instead, since the plain WX_PG_IMPLEMENT_VARIANT_DATA macro only implements a simple, shallow equality testing.

If your class is derived from wxObject, it is recommended that you use wxObject-versions of the macros (WX_PG_DECLARE_WXOBJECT_VARIANT_DATA and WX_PG_IMPLEMENT_WXOBJECT_VARIANT_DATA).


The documentation for this class was generated from the following file: