mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
removed some unused codes, and uniformed code format
This commit is contained in:
parent
42c6f5cc37
commit
14659f0f90
39 changed files with 119 additions and 172 deletions
|
@ -368,7 +368,7 @@ on_mouse(int event, int x, int y, int flags, void* param) {
|
|||
/*
|
||||
* call-seq:
|
||||
* set_mouse_callback(&block)
|
||||
* set_mouse_callback{|| ... }
|
||||
* set_mouse_callback {|| ... }
|
||||
*
|
||||
* Set mouse callback.
|
||||
* When the mouse is operated on the window, block will be called.
|
||||
|
@ -379,7 +379,7 @@ on_mouse(int event, int x, int y, int flags, void* param) {
|
|||
* window = OpenCV::GUI::Window.new "sample window"
|
||||
* image = OpenCV::IplImage::load "sample.png"
|
||||
* window.show(image)
|
||||
* window.set_mouse_callback{|mouse|
|
||||
* window.set_mouse_callback {|mouse|
|
||||
* e = "#{mouse.x}, #{mouse.y} : #{mouse.event} : "
|
||||
* e << "<L>" if mouse.left_button?
|
||||
* e << "<R>" if mouse.right_button?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue