Module: Shoes::Common::Focus
- Included in:
- Button, Shoes::CheckButton, InputBox, ListBox, Swt::InputBox, Swt::ListBox, Swt::SwtButton
- Defined in:
- shoes-core/lib/shoes/common/focus.rb
Instance Method Summary collapse
- #focus ⇒ Object
- #focused? ⇒ Boolean (also: #focussed?, #focussed, #focused)
Instance Method Details
#focus ⇒ Object
6 7 8 9 |
# File 'shoes-core/lib/shoes/common/focus.rb', line 6 def focus @gui.focus self end |
#focused? ⇒ Boolean Also known as: focussed?, focussed, focused
11 12 13 |
# File 'shoes-core/lib/shoes/common/focus.rb', line 11 def focused? @gui.focused? end |