# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # CLRP_USE_TEXTCTRL = 2 # CLRP_DEFAULT_STYLE = 0 # CLRP_SHOW_LABEL = 8 # CLRP_SHOW_ALPHA = 16 # # EVT_COLOURPICKER_CHANGED = 10184 # # EVT_COLOURPICKER_CURRENT_CHANGED = 10185 # # EVT_COLOURPICKER_DIALOG_CANCELLED = 10186 # This event class is used for the events generated by {Wx::ColourPickerCtrl}. # # ### Events using this class # # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ColourPickerEvent} events. # Event handler methods: # # - {Wx::EvtHandler#evt_colourpicker_changed}(id, meth = nil, &block): Generated whenever the selected colour changes. # # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in WXMSW. # # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in WXMSW. # # Category: {Wx::Events} # @see Wx::ColourPickerCtrl # # # @wxrb_require USE_COLOURPICKERCTRL,USE_COLOURDLG class ColourPickerEvent < CommandEvent # @overload initialize() # @return [Wx::ColourPickerEvent] # @overload initialize(generator, id, colour) # The constructor is not normally used by the user code. # @param generator [Wx::Object] # @param id [Integer] # @param colour [Wx::Colour,String,Symbol] # @return [Wx::ColourPickerEvent] def initialize(*args) end # Retrieve the colour the user has just selected. # @return [Wx::Colour] def get_colour; end alias_method :colour, :get_colour # Set the colour associated with the event. # @param pos [Wx::Colour,String,Symbol] # @return [void] def set_colour(pos) end alias_method :colour=, :set_colour end # ColourPickerEvent end