Class: Shoes::Native

Inherits:
Basic show all
Defined in:
lib/shoes/basic.rb

Direct Known Subclasses

Button, EditBox, EditLine, ListBox, Progress

Instance Attribute Summary

Attributes inherited from Basic

#args, #dps, #initials, #ln, #parent, #pl

Attributes included from Mod

#margin_bottom, #margin_left, #margin_right, #margin_top

Instance Method Summary collapse

Methods inherited from Basic

#fix_size, #hide, #hided, #initialize, #move3, #positioning, #set_args, #show, #style

Methods included from Mod

#click, #release, #set_margin

Constructor Details

This class inherits a constructor from Shoes::Basic

Instance Method Details

#clearObject



239
240
241
242
# File 'lib/shoes/basic.rb', line 239

def clear
  @real.dispose
  @parent.contents -= [self]
end

#move(x, y) ⇒ Object



231
232
233
234
# File 'lib/shoes/basic.rb', line 231

def move x, y
  @real.setLocation x, y
  super
end

#move2(x, y) ⇒ Object



235
236
237
238
# File 'lib/shoes/basic.rb', line 235

def move2 x, y
  @real.setLocation x, y
  super
end

#textObject



225
226
227
# File 'lib/shoes/basic.rb', line 225

def text
  @real.getText
end

#text=(s) ⇒ Object



228
229
230
# File 'lib/shoes/basic.rb', line 228

def text=(s)
  @real.setText s.to_s
end

#toggleObject



243
244
245
246
247
# File 'lib/shoes/basic.rb', line 243

def toggle
  @hided = !@hided
  @real.setVisible !@hided unless @real.isDisposed
  self
end