Lines Matching refs:bevent
369 bool PenTool::_handleButtonPress(GdkEventButton const &bevent) {
375 Geom::Point const event_w(bevent.x, bevent.y);
381 if(bevent.button != 3 && (this->spiro || this->bspline) && this->npoints > 0 && this->p[0] == this->p[3]){
384 _finishSegment(event_dt, bevent.state);
392 if (bevent.button == 1 && !this->space_panning
406 NULL, bevent.time);
437 if ((bevent.state & GDK_CONTROL_MASK) && (this->polylines_only || this->polylines_paraxial)) {
439 if (!(bevent.state & GDK_SHIFT_MASK)) {
445 spdc_create_single_dot(this, p, "/tools/freehand/pen", bevent.state);
457 this->_bsplineSpiroStartAnchor(bevent.state & GDK_SHIFT_MASK);
469 if (!(bevent.state & GDK_SHIFT_MASK) || this->hasWaitingLPE()) {
480 this->_endpointSnap(p, bevent.state);
505 this->_endpointSnap(p, bevent.state); // Snap node only if not hitting anchor.
528 this->_finishSegment(event_dt, bevent.state);
538 } else if (bevent.button == 3 && this->npoints != 0) {
861 bool PenTool::_handle2ButtonPress(GdkEventButton const &bevent) {
864 if (this->npoints != 0 && bevent.button == 1 && this->state != PenTool::CLOSE) {