Class: TkCanvas

Inherits:
Object show all
Defined in:
lib/drx/tk/imagemap.rb

Direct Known Subclasses

TkImageMap::ImageMap

Instance Method Summary collapse

Instance Method Details

#coords(evt) ⇒ Object



2
3
4
# File 'lib/drx/tk/imagemap.rb', line 2

def coords(evt)
  return [canvasx(evt.x), canvasy(evt.y)]
end

#raiseObject

TkCanvas redefines raise() (and lower()) to operate on tags. But our layout classes (VBox and Scrolled) require a proper raise(), so we restore its behavior. @todo: find out the “correct” way to do it.



10
11
12
# File 'lib/drx/tk/imagemap.rb', line 10

def raise
  super
end