X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..9ef4a31e643ce01bef16b37f10be125df0c2ab0f:/include/wx/generic/colrdlgg.h diff --git a/include/wx/generic/colrdlgg.h b/include/wx/generic/colrdlgg.h index c0629c183e..942d2ed8ee 100644 --- a/include/wx/generic/colrdlgg.h +++ b/include/wx/generic/colrdlgg.h @@ -35,15 +35,15 @@ class WXDLLEXPORT wxGenericColourDialog: public wxDialog 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; @@ -76,13 +76,13 @@ class WXDLLEXPORT wxGenericColourDialog: public wxDialog // 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); @@ -116,6 +116,8 @@ class WXDLLEXPORT wxGenericColourDialog: public wxDialog DECLARE_EVENT_TABLE() }; +#ifdef __WXGTK__ typedef wxGenericColourDialog wxColourDialog; +#endif #endif