mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
fix some documents
This commit is contained in:
parent
8a4bdbfa9b
commit
bd9af2dbe1
26 changed files with 937 additions and 739 deletions
|
@ -25,21 +25,6 @@ rb_module_GUI()
|
|||
return rb_module;
|
||||
}
|
||||
|
||||
void
|
||||
init_ruby_module()
|
||||
{
|
||||
if (rb_module)
|
||||
return;
|
||||
/*
|
||||
* opencv = rb_define_module("OpenCV");
|
||||
*
|
||||
* note: this comment is used by rdoc.
|
||||
*/
|
||||
VALUE opencv = rb_module_opencv();
|
||||
rb_module = rb_define_module_under(opencv, "GUI");
|
||||
rb_define_singleton_method(rb_module, "wait_key", RUBY_METHOD_FUNC(rb_wait_key), -1);
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* wait_key(<i>[delay]</i>) -> int or nil
|
||||
|
@ -63,6 +48,26 @@ rb_wait_key(int argc, VALUE *argv, VALUE self)
|
|||
return (keycode < 0) ? Qnil : INT2NUM(keycode);
|
||||
}
|
||||
|
||||
void
|
||||
init_ruby_module()
|
||||
{
|
||||
#if 0
|
||||
// For documentation using YARD
|
||||
VALUE opencv = rb_define_module("OpenCV");
|
||||
#endif
|
||||
|
||||
if (rb_module)
|
||||
return;
|
||||
/*
|
||||
* opencv = rb_define_module("OpenCV");
|
||||
*
|
||||
* note: this comment is used by rdoc.
|
||||
*/
|
||||
VALUE opencv = rb_module_opencv();
|
||||
rb_module = rb_define_module_under(opencv, "GUI");
|
||||
rb_define_singleton_method(rb_module, "wait_key", RUBY_METHOD_FUNC(rb_wait_key), -1);
|
||||
}
|
||||
|
||||
__NAMESPACE_END_GUI
|
||||
__NAMESPACE_END_OPENCV
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue