Class: Wx::WindowDestroyEvent

Inherits:
CommandEvent show all
Defined in:
lib/wx/doc/gen/events.rb

Overview

This event is sent as early as possible during the window destruction process.

For the top level windows, as early as possible means that this is done by Frame or Dialog destructor, i.e. after the destructor of the derived class was executed and so any methods specific to the derived class can’t be called any more from this event handler. If you need to do this, you must call Wx::Window#send_destroy_event from your derived class destructor. For the child windows, this event is generated just before deleting the window from Wx::Window#destroy (which is also called when the parent window is deleted) or from the window destructor if operator delete was used directly (which is not recommended for this very reason). It is usually pointless to handle this event in the window itself but it ca be very useful to receive notifications about the window destruction in the parent window or in any other object interested in this window.

Category: Events

See Also:

Instance Method Summary collapse

Methods inherited from CommandEvent

#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string

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(win = nil) ⇒ Wx::WindowDestroyEvent

Constructor.

Parameters:



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

def initialize(win=nil) end

Instance Method Details

#get_windowWx::Window Also known as: window

Return the window being destroyed.

Returns:



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

def get_window; end