Class: Wx::TipWindow::Ref
- Inherits:
-
Object
- Object
- Wx::TipWindow::Ref
- 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
-
#get_tip_window ⇒ Wx::TipWindow?
(also: #tip_window)
Returns the Wx::TipWindow referenced if valid, nil otherwise.
-
#is_ok ⇒ Boolean
(also: #ok?)
Returns true if still valid, false otherwise.
Instance Method Details
#get_tip_window ⇒ Wx::TipWindow? Also known as: tip_window
Returns the Wx::TipWindow referenced if valid, nil otherwise.
27 |
# File 'lib/wx/doc/tip_window.rb', line 27 def get_tip_window; end |
#is_ok ⇒ Boolean Also known as: ok?
Returns true if still valid, false otherwise.
22 |
# File 'lib/wx/doc/tip_window.rb', line 22 def is_ok; end |