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

Methods inherited from Text

#replace

Constructor Details

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

Returns a new instance of Link.



43
44
45
46
# File 'lib/shoes/text.rb', line 43

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.



47
48
49
# File 'lib/shoes/text.rb', line 47

def blk
  @blk
end

#clickabledObject

Returns the value of attribute clickabled.



48
49
50
# File 'lib/shoes/text.rb', line 48

def clickabled
  @clickabled
end

#exObject

Returns the value of attribute ex.



48
49
50
# File 'lib/shoes/text.rb', line 48

def ex
  @ex
end

#eyObject

Returns the value of attribute ey.



48
49
50
# File 'lib/shoes/text.rb', line 48

def ey
  @ey
end

#lhObject

Returns the value of attribute lh.



48
49
50
# File 'lib/shoes/text.rb', line 48

def lh
  @lh
end

#lnObject

Returns the value of attribute ln.



48
49
50
# File 'lib/shoes/text.rb', line 48

def ln
  @ln
end

#parentObject

Returns the value of attribute parent.



48
49
50
# File 'lib/shoes/text.rb', line 48

def parent
  @parent
end

#phObject

Returns the value of attribute ph.



48
49
50
# File 'lib/shoes/text.rb', line 48

def ph
  @ph
end

#plObject

Returns the value of attribute pl.



48
49
50
# File 'lib/shoes/text.rb', line 48

def pl
  @pl
end

#ptObject

Returns the value of attribute pt.



48
49
50
# File 'lib/shoes/text.rb', line 48

def pt
  @pt
end

#pwObject

Returns the value of attribute pw.



48
49
50
# File 'lib/shoes/text.rb', line 48

def pw
  @pw
end

#sxObject

Returns the value of attribute sx.



48
49
50
# File 'lib/shoes/text.rb', line 48

def sx
  @sx
end

#syObject

Returns the value of attribute sy.



48
49
50
# File 'lib/shoes/text.rb', line 48

def sy
  @sy
end

Instance Method Details

#clearObject



50
51
52
53
# File 'lib/shoes/text.rb', line 50

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