X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/clrpicker.h diff --git a/interface/wx/clrpicker.h b/interface/wx/clrpicker.h index 062c134d13..31b42b8ddc 100644 --- a/interface/wx/clrpicker.h +++ b/interface/wx/clrpicker.h @@ -2,13 +2,18 @@ // Name: clrpicker.h // Purpose: interface of wxColourPickerCtrl // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#define wxCLRP_USE_TEXTCTRL (wxPB_USE_TEXTCTRL) +#define wxCLRP_DEFAULT_STYLE 0 +#define wxCLRP_SHOW_LABEL 0x0008 + +wxEventType wxEVT_COLOURPICKER_CHANGED; + + /** @class wxColourPickerCtrl - @wxheader{clrpicker.h} This control allows the user to select a colour. The generic implementation is a button which brings up a wxColourDialog when clicked. Native @@ -30,7 +35,7 @@ (instead of no label at all). @endStyleTable - @beginEventTable{wxColourPickerEvent} + @beginEventEmissionTable{wxColourPickerEvent} @event{EVT_COLOURPICKER_CHANGED(id, func)} The user changed the colour selected in the control either using the button or using text control (see @c wxCLRP_USE_TEXTCTRL; note that @@ -40,23 +45,25 @@ @library{wxcore} @category{pickers} - + @appearance{colourpickerctrl} @see wxColourDialog, wxColourPickerEvent */ class wxColourPickerCtrl : public wxPickerBase { public: + wxColourPickerCtrl(); + /** Initializes the object and calls Create() with all the parameters. */ wxColourPickerCtrl(wxWindow* parent, wxWindowID id, - const wxColour& colour = wxBLACK, + const wxColour& colour = *wxBLACK, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "colourpickerctrl"); + const wxString& name = wxColourPickerCtrlNameStr); /** Creates a colour picker with the given arguments. @@ -82,12 +89,12 @@ public: creation failed. */ bool Create(wxWindow* parent, wxWindowID id, - const wxColour& colour = wxBLACK, + const wxColour& colour = *wxBLACK, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "colourpickerctrl"); + const wxString& name = wxColourPickerCtrlNameStr); /** Returns the currently selected colour. @@ -107,7 +114,6 @@ public: /** @class wxColourPickerEvent - @wxheader{clrpicker.h} This event class is used for the events generated by wxColourPickerCtrl. @@ -124,6 +130,8 @@ public: class wxColourPickerEvent : public wxCommandEvent { public: + wxColourPickerEvent(); + /** The constructor is not normally used by the user code. */