Class: Wx::SysColourChangedEvent
- Defined in:
- lib/wx/doc/gen/events.rb
Overview
This class is used for system colour change events, which are generated when the user changes the colour settings or when the system theme changes (e.g. automatic dark mode switching on macOS).
Event handlers for this event can access the new system colour settings through Wx::SystemSettings.get_colour.
The default event handler for this event propagates the event to child windows, since the system events are only sent to top-level windows. If intercepting this event for a top-level window, remember to either call Event#skip on the event, call the base class handler, or pass the event on to the window's children explicitly.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for SysColourChangedEvent events. Event handler methods:
-
EvtHandler#evt_sys_colour_changed(meth = nil, &block): Process a EVT_SYS_COLOUR_CHANGED event.
Category: Events
Instance Method Summary collapse
-
#initialize ⇒ Wx::SysColourChangedEvent
constructor
Constructor.
Methods inherited from Event
#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::SysColourChangedEvent
Constructor.
2295 |
# File 'lib/wx/doc/gen/events.rb', line 2295 def initialize; end |