Class: TkCanvas
Direct Known Subclasses
Instance Method Summary collapse
- #coords(evt) ⇒ Object
-
#raise ⇒ Object
TkCanvas redefines raise() (and lower()) to operate on tags.
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 |
#raise ⇒ Object
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 |