Class: ClickableCanvasView

Inherits:
Qt::CanvasView
  • Object
show all
Defined in:
lib/ClickableCanvasView.rb

Overview

ClickableCanvasView.rb - ClickSpotter

Copyright © 2005, 2006 by Chris Schlaeger <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation.

$Id: ClickableCanvasView.rb 8 2006-01-22 15:19:51Z cs $

Instance Method Summary collapse

Constructor Details

#initialize(canvas, parent = nil, name = nil, wFlags = 0) ⇒ ClickableCanvasView

Returns a new instance of ClickableCanvasView.



16
17
18
# File 'lib/ClickableCanvasView.rb', line 16

def initialize(canvas, parent = nil, name = nil, wFlags = 0)
  super
end

Instance Method Details

#mouseReleaseEvent(ev) ⇒ Object



20
21
22
# File 'lib/ClickableCanvasView.rb', line 20

def mouseReleaseEvent(ev)
  emit clicked
end