Class: Shoes::Native
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
230
231
232
233
|
# File 'lib/shoes/basic.rb', line 230
def clear
@real.dispose
@parent.contents -= [self]
end
|
#move(x, y) ⇒ Object
222
223
224
225
|
# File 'lib/shoes/basic.rb', line 222
def move x, y
@real.setLocation x, y
super
end
|
#move2(x, y) ⇒ Object
226
227
228
229
|
# File 'lib/shoes/basic.rb', line 226
def move2 x, y
@real.setLocation x, y
super
end
|
216
217
218
|
# File 'lib/shoes/basic.rb', line 216
def text
@real.getText
end
|
219
220
221
|
# File 'lib/shoes/basic.rb', line 219
def text=(s)
@real.setText s.to_s
end
|
234
235
236
237
238
|
# File 'lib/shoes/basic.rb', line 234
def toggle
@hided = !@hided
@real.setVisible !@hided unless @real.isDisposed
self
end
|