Class: Shoes::EditLine

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

Instance Attribute Summary

Attributes inherited from Native

#state

Attributes inherited from Basic

#args, #cleared, #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

#focus

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

#change(&blk) ⇒ Object



365
366
367
# File 'lib/shoes/basic.rb', line 365

def change &blk
  super @real, &blk
end

#move2(x, y) ⇒ Object



360
361
362
363
# File 'lib/shoes/basic.rb', line 360

def move2 x, y
  @app.canvas.move @real, x, y
  move3 x, y
end

#textObject



352
353
354
# File 'lib/shoes/basic.rb', line 352

def text
  @real.text
end

#text=(s) ⇒ Object



356
357
358
# File 'lib/shoes/basic.rb', line 356

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