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

#hover_proc, #hovered, #leave_proc, #margin_bottom, #margin_left, #margin_right, #margin_top

Instance Method Summary collapse

Methods inherited from Basic

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

Methods included from Mod

#click, #hided, #hover, #leave, #release, #set_margin

Constructor Details

This class inherits a constructor from Shoes::Basic

Instance Method Details

#clearObject



252
253
254
255
# File 'lib/shoes/basic.rb', line 252

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

#move(x, y) ⇒ Object



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

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

#move2(x, y) ⇒ Object



248
249
250
251
# File 'lib/shoes/basic.rb', line 248

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

#textObject



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

def text
  @real.getText
end

#text=(s) ⇒ Object



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

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

#toggleObject



256
257
258
259
260
# File 'lib/shoes/basic.rb', line 256

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