wxWindow *dialogParent;
// Area reserved for grids of colours
- wxRectangle standardColoursRect;
- wxRectangle customColoursRect;
- wxRectangle singleCustomColourRect;
+ wxRect standardColoursRect;
+ wxRect customColoursRect;
+ wxRect singleCustomColourRect;
// Size of each colour rectangle
- wxIntPoint smallRectangleSize;
+ wxPoint smallRectangleSize;
// For single customizable colour
- wxIntPoint customRectangleSize;
+ wxPoint customRectangleSize;
// Grid spacing (between rectangles)
int gridSpacing;
// static bool colourDialogCancelled;
public:
wxGenericColourDialog(void);
- wxGenericColourDialog(wxWindow *parent, wxColourData *data = NULL);
+ wxGenericColourDialog(wxWindow *parent, wxColourData *data = (wxColourData *) NULL);
~wxGenericColourDialog(void);
- bool Create(wxWindow *parent, wxColourData *data = NULL);
+ bool Create(wxWindow *parent, wxColourData *data = (wxColourData *) NULL);
int ShowModal(void);
- wxColourData GetColourData(void) { return colourData; }
+ wxColourData &GetColourData(void) { return colourData; }
// Internal functions
void OnMouseEvent(wxMouseEvent& event);
DECLARE_EVENT_TABLE()
};
-#ifdef __GTK__
+#ifdef __WXGTK__
typedef wxGenericColourDialog wxColourDialog;
#endif