Class: Wx::TipWindow::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/tip_window.rb

Overview

The (weak) reference to Wx::TipWindow.

Wx::TipWindow may close itself at any moment, so creating it as usual, with new and using a direct reference to it is dangerous. Instead, use new_tip to create it and use the returned Ref which is guaranteed to become invalid when the tip window is closed.

To test if this object is still valid use #ok? to test, use #tip_window to access the referenced Wx::TipWindow.

Instance Method Summary collapse

Instance Method Details

#get_tip_windowWx::TipWindow? Also known as: tip_window

Returns the Wx::TipWindow referenced if valid, nil otherwise.

Returns:



27
# File 'lib/wx/doc/tip_window.rb', line 27

def get_tip_window; end

#is_okBoolean Also known as: ok?

Returns true if still valid, false otherwise.

Returns:

  • (Boolean)


22
# File 'lib/wx/doc/tip_window.rb', line 22

def is_ok; end