Home | History | Annotate | Download | only in src

Lines Matching full:event_button

1867         GdkEventButton* event_button = (GdkEventButton*)event;
1868 pt32f.x = cvRound(event_button->x);
1869 pt32f.y = cvRound(event_button->y);
1872 if( event_button->type == GDK_BUTTON_PRESS )
1874 cv_event = event_button->button == 1 ? CV_EVENT_LBUTTONDOWN :
1875 event_button->button == 2 ? CV_EVENT_MBUTTONDOWN :
1876 event_button->button == 3 ? CV_EVENT_RBUTTONDOWN : 0;
1878 else if( event_button->type == GDK_BUTTON_RELEASE )
1880 cv_event = event_button->button == 1 ? CV_EVENT_LBUTTONUP :
1881 event_button->button == 2 ? CV_EVENT_MBUTTONUP :
1882 event_button->button == 3 ? CV_EVENT_RBUTTONUP : 0;
1884 else if( event_button->type == GDK_2BUTTON_PRESS )
1886 cv_event = event_button->button == 1 ? CV_EVENT_LBUTTONDBLCLK :
1887 event_button->button == 2 ? CV_EVENT_MBUTTONDBLCLK :
1888 event_button->button == 3 ? CV_EVENT_RBUTTONDBLCLK : 0;
1890 state = event_button->state;