mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
tested MouseEvent
This commit is contained in:
parent
4813ec29bc
commit
6be99de63c
3 changed files with 21 additions and 4 deletions
|
@ -21,11 +21,11 @@ __NAMESPACE_BEGIN_OPENCV
|
|||
__NAMESPACE_BEGIN_GUI
|
||||
__NAMESPACE_BEGIN_MOUSEEVENT
|
||||
|
||||
typedef struct MouseEvent{
|
||||
typedef struct MouseEvent {
|
||||
CvPoint point;
|
||||
int event;
|
||||
int flag;
|
||||
}MouseEvent;
|
||||
} MouseEvent;
|
||||
|
||||
VALUE rb_class();
|
||||
|
||||
|
@ -44,7 +44,7 @@ VALUE rb_alt_key_q(VALUE self);
|
|||
|
||||
VALUE new_object(int event, int x, int y, int flag);
|
||||
|
||||
inline MouseEvent *MOUSEEVENT(VALUE object){
|
||||
inline MouseEvent *MOUSEEVENT(VALUE object) {
|
||||
MouseEvent *ptr;
|
||||
Data_Get_Struct(object, MouseEvent, ptr);
|
||||
return ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue