Defines | |
#define | WX_PG_CLASSINFO(NAME) NAME##ClassInfo |
#define | wxPG_COLOUR(R, G, B) ((wxUint32)(R+(G<<8)+(B<<16))) |
#define | wxPG_COLOUR_BLACK (*wxBLACK) |
#define | wxPG_EMPTY_ARRAYINT (*((wxArrayInt*)NULL)) |
#define | wxPG_EMPTY_ARRAYSTRING (*((wxArrayString*)NULL)) |
#define | wxPG_FLEXIBLE_SIZE(PREFWID, PREFHEI) wxSize(-(PREFWID),-(PREFHEI)) |
#define | wxPG_FULL_CUSTOM_PAINT_FLEXIBLE_SIZE(PREFHEI) wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,-(PREFHEI)) |
#define | wxPG_FULL_CUSTOM_PAINT_SIZE(HEI) wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,HEI) |
#define | wxPG_FULL_CUSTOM_PAINT_WIDTH -99999 |
#define | wxPG_INVALID_VALUE INT_MAX |
#define | wxPG_LABEL (*((wxString*)NULL)) |
#define | wxPG_NULL_BITMAP wxNullBitmap |
Typedefs | |
typedef void(*) | wxPGPaintCallback (wxPGProperty *property, wxDC &dc, const wxRect &rect, wxPGPaintData &paintdata) |
typedef bool(*) | wxPropertyGridCallback (wxPropertyGrid *propGrid, wxPGProperty *property, wxWindow *ctrl, int data) |
#define WX_PG_CLASSINFO | ( | NAME | ) | NAME##ClassInfo |
Use this with wxPropertyGrid::IsPropertyKindOf.
For example, as in
pg->IsPropertyKindOf(WX_PG_CLASSINFO(wxStringProperty))
#define wxPG_COLOUR | ( | R, | |||
G, | |||||
B | ) | ((wxUint32)(R+(G<<8)+(B<<16))) |
Convert Red, Green and Blue to a single 32-bit value.
#define wxPG_FLEXIBLE_SIZE | ( | PREFWID, | |||
PREFHEI | ) | wxSize(-(PREFWID),-(PREFHEI)) |
Return this in GetImageSize() to indicate that the custom painted property image is flexible.
That is, it will paint (dropdown) list item images with PREFWID,PREFHEI size.
#define wxPG_FULL_CUSTOM_PAINT_FLEXIBLE_SIZE | ( | PREFHEI | ) | wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,-(PREFHEI)) |
Return this in GetImageSize() to indicate that the property is custom painted completely (ie.
the text as well), and with flexible height.
#define wxPG_FULL_CUSTOM_PAINT_SIZE | ( | HEI | ) | wxSize(wxPG_FULL_CUSTOM_PAINT_WIDTH,HEI) |
Return this in GetImageSize() to indicate that the property is custom painted completely (ie.
the text as well).
typedef void(*) wxPGPaintCallback(wxPGProperty *property, wxDC &dc, const wxRect &rect, wxPGPaintData &paintdata) |
This callback function is used by atleast wxCustomProperty to facilitiate drawing items in drop down list.
Works very much like wxPGProperty::OnCustomPaint.
typedef bool(*) wxPropertyGridCallback(wxPropertyGrid *propGrid, wxPGProperty *property, wxWindow *ctrl, int data) |
This callback function is used by atleast wxCustomProperty to facilitiate easy custom action on button press.
propGrid | related wxPropertyGrid | |
property | related wxPGProperty | |
ctrl | If not NULL (for example, not selected), a wxWindow* or equivalent | |
data | Value depends on the context. |
True | if changed value of the property. |