Class: Shoes::Link

Inherits:
Text show all
Defined in:
lib/shoes/text.rb

Instance Attribute Summary collapse

Attributes inherited from Text

#color, #str, #style, #to_s

Instance Method Summary collapse

Constructor Details

#initialize(m, str, color = nil, &blk) ⇒ Link

Returns a new instance of Link.



34
35
36
37
# File 'lib/shoes/text.rb', line 34

def initialize m, str, color=nil, &blk
  @blk = blk
  super m, str, color
end

Instance Attribute Details

#blkObject (readonly)

Returns the value of attribute blk.



38
39
40
# File 'lib/shoes/text.rb', line 38

def blk
  @blk
end

#clickabledObject

Returns the value of attribute clickabled.



39
40
41
# File 'lib/shoes/text.rb', line 39

def clickabled
  @clickabled
end

#exObject

Returns the value of attribute ex.



39
40
41
# File 'lib/shoes/text.rb', line 39

def ex
  @ex
end

#eyObject

Returns the value of attribute ey.



39
40
41
# File 'lib/shoes/text.rb', line 39

def ey
  @ey
end

#lhObject

Returns the value of attribute lh.



39
40
41
# File 'lib/shoes/text.rb', line 39

def lh
  @lh
end

#lnObject

Returns the value of attribute ln.



39
40
41
# File 'lib/shoes/text.rb', line 39

def ln
  @ln
end

#parentObject

Returns the value of attribute parent.



39
40
41
# File 'lib/shoes/text.rb', line 39

def parent
  @parent
end

#phObject

Returns the value of attribute ph.



39
40
41
# File 'lib/shoes/text.rb', line 39

def ph
  @ph
end

#plObject

Returns the value of attribute pl.



39
40
41
# File 'lib/shoes/text.rb', line 39

def pl
  @pl
end

#ptObject

Returns the value of attribute pt.



39
40
41
# File 'lib/shoes/text.rb', line 39

def pt
  @pt
end

#pwObject

Returns the value of attribute pw.



39
40
41
# File 'lib/shoes/text.rb', line 39

def pw
  @pw
end

#sxObject

Returns the value of attribute sx.



39
40
41
# File 'lib/shoes/text.rb', line 39

def sx
  @sx
end

#syObject

Returns the value of attribute sy.



39
40
41
# File 'lib/shoes/text.rb', line 39

def sy
  @sy
end

Instance Method Details

#clearObject



41
42
43
44
# File 'lib/shoes/text.rb', line 41

def clear
  @parent.app.cs.removeListener Swt::SWT::MouseDown, @ln
  @parent.links.delete self
end