Module: Shoes::Swt::Common::Focus

Defined in:
shoes-swt/lib/shoes/swt/common/focus.rb

Instance Method Summary collapse

Instance Method Details

#focusObject



7
8
9
# File 'shoes-swt/lib/shoes/swt/common/focus.rb', line 7

def focus
  @real.set_focus
end

#focused?Boolean

Returns:

  • (Boolean)


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

def focused?
  @real.has_focus
end