Lines Matching refs:anchor

32 #include "ui/draw-anchor.h"
236 this->ea = NULL; // unset end anchor if set (otherwise crashes)
377 //Test whether we hit any anchor.
378 SPDrawAnchor * const anchor = spdc_test_inside(this, event_w);
382 if( anchor && anchor == this->sa && this->green_curve->is_empty()){
453 // Set start anchor
455 this->sa = anchor;
456 if(anchor){
459 if (anchor && (!this->hasWaitingLPE()|| this->bspline || this->spiro)) {
460 // Adjust point to anchor if needed; if we have a waiting LPE, we need
462 p = anchor->dp;
467 // anchor, which is handled by the sibling branch above)
478 // Create green anchor
486 // Set end anchor
487 this->ea = anchor;
489 if (anchor) {
490 p = anchor->dp;
491 // we hit an anchor, will finish the curve (either with or without closing)
505 this->_endpointSnap(p, bevent.state); // Snap node only if not hitting anchor.
530 // finishing at the start anchor, close curve
533 // finishing at some other anchor, finish curve but not close
540 this->ea = NULL; // unset end anchor if set (otherwise crashes)
587 // Test, whether we hit any anchor
588 SPDrawAnchor *anchor = spdc_test_inside(this, event_w);
631 if (!anchor) { // Snap node only if not hitting anchor
635 this->_setSubsequentPoint(anchor->dp, false, mevent.state);
638 if (anchor && !this->anchor_statusbar) {
645 } else if (!anchor && this->anchor_statusbar) {
652 if (anchor && !this->anchor_statusbar) {
659 } else if (!anchor && this->anchor_statusbar) {
734 // Test whether we hit any anchor.
736 SPDrawAnchor *anchor = spdc_test_inside(this, event_w);
738 if((!anchor || anchor == this->sa) && (this->spiro || this->bspline) && this->npoints > 0 && this->p[0] == this->p[3]){
749 if (anchor) {
750 p = anchor->dp;
752 this->sa = anchor;
754 if (anchor) {
761 // Set end anchor here
762 this->ea = anchor;
763 if (anchor) {
764 p = anchor->dp;
777 if (!anchor) { // Snap node only if not hitting anchor
811 // finishing at the start anchor, close curve
814 // finishing at some other anchor, finish curve but not close
937 // start anchor too
1222 this->ea = NULL; // unset end anchor if set (otherwise crashes)
1771 // we are drawing horizontal/vertical lines and hit an anchor;
1773 // if the previous point and the anchor are not aligned either horizontally or vertically...