1
0
Fork 0
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:
ser1zw 2011-08-12 03:04:22 +09:00
parent 42c6f5cc37
commit 14659f0f90
39 changed files with 119 additions and 172 deletions

View file

@ -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?