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

Instance Method Details

#focusObject



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

Returns:

  • (Boolean)


11
12
13
# File 'shoes-core/lib/shoes/common/focus.rb', line 11

def focused?
  @gui.focused?
end