Class: Wx::MouseCaptureChangedEvent

Inherits:
Event show all
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:

Category: Events

Instance Method Summary collapse

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.

Parameters:

  • windowId (Integer) (defaults to: 0)
  • gainedCapture (Wx::Window) (defaults to: nil)


2324
# File 'lib/wx/doc/gen/events.rb', line 2324

def initialize(windowId=0, gainedCapture=nil) end

Instance Method Details

#get_captured_windowWx::Window Also known as: captured_window

Returns the window that gained the capture, or NULL if it was a non-wxWidgets window.

Returns:



2328
# File 'lib/wx/doc/gen/events.rb', line 2328

def get_captured_window; end