Class: Wx::MouseCaptureChangedEvent
- Defined in:
- lib/wx/doc/gen/events.rb
Overview
A mouse capture changed event is sent to a window that loses its mouse capture.
This is called even if Window#release_mouse was called by the application code. Handling this event allows an application to cater for unexpected capture releases which might otherwise confuse mouse handling code. Availability: only available for the WXMSW port.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for MouseCaptureChangedEvent events. Event handler methods:
-
EvtHandler#evt_mouse_capture_changed(meth = nil, &block): Process a EVT_MOUSE_CAPTURE_CHANGED event.
Category: Events
Instance Method Summary collapse
-
#get_captured_window ⇒ Wx::Window
(also: #captured_window)
Returns the window that gained the capture, or NULL if it was a non-wxWidgets window.
-
#initialize(windowId = 0, gainedCapture = nil) ⇒ Wx::MouseCaptureChangedEvent
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(windowId = 0, gainedCapture = nil) ⇒ Wx::MouseCaptureChangedEvent
Constructor.
2324 |
# File 'lib/wx/doc/gen/events.rb', line 2324 def initialize(windowId=0, gainedCapture=nil) end |
Instance Method Details
#get_captured_window ⇒ Wx::Window Also known as: captured_window
Returns the window that gained the capture, or NULL if it was a non-wxWidgets window.
2328 |
# File 'lib/wx/doc/gen/events.rb', line 2328 def get_captured_window; end |