Class: Shoes::EditBox
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Native
Attributes inherited from Basic
#args, #hided, #initials, #parent, #shows
Attributes included from Mod
#click_proc, #hover_proc, #hovered, #leave_proc, #margin_bottom, #margin_left, #margin_right, #margin_top, #release_proc
Instance Method Summary (collapse)
Methods inherited from Native
Methods inherited from Basic
#clear, #fix_size, #hide, #initialize, #move, #move3, #positioning, #remove, #show, #style, #toggle
Methods included from Mod
#click, #hover, #leave, #release, #set_margin
Constructor Details
This class inherits a constructor from Shoes::Basic
Instance Method Details
- (Object) change(&blk)
358 359 360 |
# File 'lib/shoes/basic.rb', line 358 def change &blk super @textview.buffer, &blk end |
- (Object) move2(x, y)
353 354 355 356 |
# File 'lib/shoes/basic.rb', line 353 def move2 x, y @app.canvas.move @real, x, y move3 x, y end |
- (Object) text
345 346 347 |
# File 'lib/shoes/basic.rb', line 345 def text @textview.buffer.text end |
- (Object) text=(s)
349 350 351 |
# File 'lib/shoes/basic.rb', line 349 def text=(s) @textview.buffer.text = s.to_s end |