Inkscape
Vector Graphics Editor
|
Desktop-bound visual control object. More...
#include <knot.h>
Public Member Functions | |
SPKnot (SPDesktop *desktop, char const *tip, Inkscape::CanvasItemCtrlType type, Glib::ustring const &name="unknown") | |
virtual | ~SPKnot () |
SPKnot (SPKnot const &)=delete | |
SPKnot & | operator= (SPKnot const &)=delete |
void | setSize (Inkscape::HandleSize size) |
void | setAnchor (unsigned int i) |
void | setAngle (double i) |
void | setImage (unsigned char *normal, unsigned char *mouseover, unsigned char *dragging, unsigned char *selected) |
void | setCursor (SPKnotStateType type, Glib::RefPtr< Gdk::Cursor > cursor) |
void | setTip (Glib::ustring &&tip) |
void | show () |
Show knot on its canvas. | |
void | hide () |
Hide knot on its canvas. | |
void | setFlag (unsigned int flag, bool set) |
Set flag in knot, with side effects. | |
void | updateCtrl () |
Update knot's control state. | |
void | requestPosition (Geom::Point const &pos, unsigned int state) |
Request or set new position for knot. | |
void | startDragging (Geom::Point const &p, Geom::IntPoint const &xy, uint32_t etime) |
Update knot for dragging and tell canvas an item was grabbed. | |
void | setPosition (Geom::Point const &p, unsigned int state) |
Move knot to new position and emits "moved" signal. | |
void | moveto (Geom::Point const &p) |
Move knot to new position, without emitting a MOVED signal. | |
void | selectKnot (bool select) |
Select knot. | |
Geom::Point | position () const |
Returns position of knot. | |
bool | eventHandler (Inkscape::CanvasEvent const &event) |
Event handler (from CanvasItems). | |
bool | is_visible () const |
bool | is_selected () const |
bool | is_mouseover () const |
bool | is_dragging () const |
bool | is_grabbed () const |
void | handler_request_position (Inkscape::MotionEvent const &event) |
Static Public Member Functions | |
static void | ref (SPKnot *knot) |
static void | unref (SPKnot *knot) |
Public Attributes | |
SPDesktop * | desktop = nullptr |
Desktop we are on. | |
CanvasItemPtr< Inkscape::CanvasItemCtrl > | ctrl |
Our CanvasItemCtrl. | |
SPItem * | owner = nullptr |
Optional Owner Item. | |
SPItem * | sub_owner = nullptr |
Optional SubOwner Item. | |
unsigned int | flags = SP_KNOT_VISIBLE |
Inkscape::HandleSize | _size = Inkscape::HandleSize::NORMAL |
Always square. | |
bool | size_set = false |
Use default size unless explicitly set. | |
double | angle = 0.0 |
Angle of mesh handle. | |
bool | is_lpe = false |
is lpe knot. | |
Geom::Point | pos |
Our desktop coordinates. | |
Geom::Point | grabbed_rel_pos |
Grabbed relative position. | |
Geom::Point | drag_origin |
Origin of drag. | |
SPAnchorType | anchor = SP_ANCHOR_CENTER |
Anchor. | |
bool | grabbed = false |
bool | moved = false |
Geom::IntPoint | xyp |
Where drag started. | |
int | tolerance = 0 |
bool | within_tolerance = false |
bool | transform_escaped = false |
Inkscape::CanvasItemCtrlShape | shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_SQUARE |
Shape type. | |
bool | shape_set = false |
Use default shape unless explicitly set. | |
unsigned char * | image [SP_KNOT_VISIBLE_STATES] |
Glib::RefPtr< Gdk::Cursor > | _cursors [SP_KNOT_VISIBLE_STATES] |
sigc::scoped_connection | _event_connection |
double | pressure = 0.0 |
The tablet pen pressure when the knot is being dragged. | |
sigc::signal< void(SPKnot *, unsigned int)> | click_signal |
sigc::signal< void(SPKnot *, unsigned int)> | doubleclicked_signal |
sigc::signal< void(SPKnot *, unsigned int)> | mousedown_signal |
sigc::signal< void(SPKnot *, unsigned int)> | grabbed_signal |
sigc::signal< void(SPKnot *, unsigned int)> | ungrabbed_signal |
sigc::signal< void(SPKnot *, Geom::Point const &, unsigned int)> | moved_signal |
sigc::signal< bool(SPKnot *, Inkscape::CanvasEvent const &)> | event_signal |
sigc::signal< bool(SPKnot *, Geom::Point *, unsigned int)> | request_signal |
Private Member Functions | |
void | _setCtrlState () |
Set knot control state (dragging/mouseover/normal). | |
Private Attributes | |
Glib::ustring | _tip |
int | ref_count = 1 |
Desktop-bound visual control object.
A knot is a draggable object, with callbacks to change something by dragging it, visually represented by a canvas item (mostly square).
See also KnotHolderEntity. See also ControlPoint (which does the same kind of things).
SPKnot::SPKnot | ( | SPDesktop * | desktop, |
char const * | tip, | ||
Inkscape::CanvasItemCtrlType | type, | ||
Glib::ustring const & | name = "unknown" |
||
) |
Definition at line 54 of file knot.cpp.
References _event_connection, _tip, ctrl, desktop, eventHandler(), SPDesktop::getCanvasControls(), image, knot_created_callback(), name, SP_KNOT_STATE_DRAGGING, SP_KNOT_STATE_MOUSEOVER, SP_KNOT_STATE_NORMAL, and SP_KNOT_STATE_SELECTED.
|
virtual |
Definition at line 74 of file knot.cpp.
References ctrl, and knot_deleted_callback().
|
delete |
|
private |
Set knot control state (dragging/mouseover/normal).
Definition at line 402 of file knot.cpp.
References ctrl, flags, SP_KNOT_DRAGGING, SP_KNOT_MOUSEOVER, and SP_KNOT_SELECTED.
Referenced by setFlag(), and updateCtrl().
bool SPKnot::eventHandler | ( | Inkscape::CanvasEvent const & | event | ) |
Event handler (from CanvasItems).
Definition at line 108 of file knot.cpp.
References _cursors, _tip, Inkscape::MessageContext::clear(), click_signal, ctrl, Inkscape::UI::Tools::ToolBase::defaultMessageContext(), desktop, Inkscape::UI::Tools::ToolBase::discard_delayed_snap_event(), event_signal, flags, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::UI::Tools::get_latin_keyval(), SPDesktop::getDocument(), SPDesktop::getTool(), grabbed, grabbed_signal, handler_request_position(), Inkscape::UI::Tools::ToolBase::is_space_panning(), Inkscape::UI::Tools::DelayedSnapEvent::KNOT_HANDLER, Geom::LInfty(), SPDesktop::messageStack(), Inkscape::CanvasEvent::modifiers, moved, nograb, Inkscape::NORMAL_MESSAGE, pressure, Inkscape::UI::Tools::ToolBase::process_delayed_snap_event(), ref(), Inkscape::MessageContext::set(), setFlag(), Inkscape::UI::Tools::ToolBase::snap_delay_handler(), SP_KNOT_DRAGGING, SP_KNOT_GRABBED, SP_KNOT_MOUSEOVER, SP_KNOT_STATE_MOUSEOVER, SP_KNOT_STATE_NORMAL, Inkscape::UI::Tools::sp_update_helperpath(), tolerance, transform_escaped, ungrabbed_signal, unref(), Inkscape::UI::Tools::ToolBase::use_cursor(), within_tolerance, and xyp.
Referenced by SPKnot().
void SPKnot::handler_request_position | ( | Inkscape::MotionEvent const & | event | ) |
Definition at line 307 of file knot.cpp.
References desktop, Inkscape::UI::Widget::Canvas::enable_autoscroll(), SPDesktop::getCanvas(), Inkscape::UI::Tools::gobble_motion_events(), grabbed_rel_pos, Inkscape::CanvasEvent::modifiers, pos, requestPosition(), SPDesktop::set_coordinate_status(), and SPDesktop::w2d().
Referenced by eventHandler().
void SPKnot::hide | ( | ) |
Hide knot on its canvas.
Definition at line 327 of file knot.cpp.
References setFlag(), and SP_KNOT_VISIBLE.
Referenced by GrDrag::addDraggersMesh(), Inkscape::LivePathEffect::LPEBendPath::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEPatternAlongPath::addKnotHolderEntities(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), GrDrag::refreshDraggersMesh(), Inkscape::UI::Tools::MeasureTool::reset(), Inkscape::UI::Tools::MeasureTool::root_handler(), KnotHolderEntity::update_knot(), BlurKnotHolderEntity::update_knot(), and Inkscape::UI::Tools::PagesTool::updateOfsetKnot().
|
inline |
Definition at line 170 of file knot.h.
References flags, and SP_KNOT_DRAGGING.
|
inline |
Definition at line 171 of file knot.h.
References flags, and SP_KNOT_GRABBED.
Referenced by Inkscape::SelTrans::handleNewEvent(), Inkscape::SelTrans::handleRequest(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), and sp_sel_trans_handle_event().
|
inline |
Definition at line 169 of file knot.h.
References flags, and SP_KNOT_MOUSEOVER.
Referenced by KnotHolder::knot_mouseover().
|
inline |
Definition at line 168 of file knot.h.
References flags, and SP_KNOT_SELECTED.
Referenced by Inkscape::SelTrans::handleClick(), KnotHolder::knot_selected(), KnotHolder::knot_ungrabbed_handler(), and KnotHolder::transform_selected().
|
inline |
Definition at line 167 of file knot.h.
References flags, and SP_KNOT_VISIBLE.
void SPKnot::moveto | ( | Geom::Point const & | p | ) |
Move knot to new position, without emitting a MOVED signal.
Definition at line 353 of file knot.cpp.
Referenced by Inkscape::UI::Dialog::KnotPropertiesDialog::_apply(), gr_knot_moved_handler(), gr_knot_moved_midpoint_handler(), Inkscape::UI::Tools::MeasureTool::knotEndMovedHandler(), Inkscape::UI::Tools::MeasureTool::knotStartMovedHandler(), Inkscape::UI::Tools::MeasureTool::knotUngrabbedHandler(), Inkscape::UI::Tools::MeasureTool::MeasureTool(), GrDragger::moveMeshHandles(), GrDragger::moveThisToDraggable(), GrDrag::refreshDraggersMesh(), Inkscape::UI::Tools::MeasureTool::reverseKnots(), Inkscape::UI::Tools::MeasureTool::root_handler(), GrDrag::selected_move(), Inkscape::UI::Tools::PagesTool::updateOfsetKnot(), and Box3D::vp_knot_moved_handler().
|
inline |
Returns position of knot.
Definition at line 160 of file knot.h.
References pos.
Referenced by Inkscape::UI::Dialog::KnotPropertiesDialog::_apply(), Inkscape::SelTrans::handleGrab(), Inkscape::UI::Tools::MeasureTool::knotEndMovedHandler(), Inkscape::UI::Tools::MeasureTool::knotStartMovedHandler(), Inkscape::UI::Tools::PagesTool::offsetKnotFinished(), Inkscape::UI::Tools::PagesTool::offsetKnotMoved(), Inkscape::UI::Tools::PagesTool::resizeKnotMoved(), and Inkscape::UI::Dialog::KnotPropertiesDialog::showDialog().
|
inlinestatic |
Definition at line 175 of file knot.h.
References ref_count.
Referenced by Inkscape::UI::Tools::cc_generic_knot_handler(), and eventHandler().
void SPKnot::requestPosition | ( | Geom::Point const & | pos, |
unsigned int | state | ||
) |
Request or set new position for knot.
Definition at line 332 of file knot.cpp.
References request_signal, and setPosition().
Referenced by handler_request_position().
void SPKnot::selectKnot | ( | bool | select | ) |
Select knot.
Definition at line 103 of file knot.cpp.
References setFlag(), and SP_KNOT_SELECTED.
Referenced by GrDragger::deselect(), Inkscape::SelTrans::handleClick(), GrDragger::highlightNode(), KnotHolder::knot_ungrabbed_handler(), GrDragger::select(), and KnotHolder::transform_selected().
void SPKnot::setAnchor | ( | unsigned int | i | ) |
Definition at line 418 of file knot.cpp.
References anchor.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), Inkscape::UI::Tools::cc_deselect_handle(), Inkscape::UI::Tools::cc_select_handle(), Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), and Inkscape::UI::Tools::PagesTool::PagesTool().
void SPKnot::setAngle | ( | double | i | ) |
Definition at line 422 of file knot.cpp.
References angle.
Referenced by GrDragger::highlightNode(), and Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get().
void SPKnot::setCursor | ( | SPKnotStateType | type, |
Glib::RefPtr< Gdk::Cursor > | cursor | ||
) |
Definition at line 433 of file knot.cpp.
References _cursors.
Referenced by Inkscape::UI::Tools::PagesTool::PagesTool().
void SPKnot::setFlag | ( | unsigned int | flag, |
bool | set | ||
) |
Set flag in knot, with side effects.
Definition at line 362 of file knot.cpp.
References _setCtrlState(), ctrl, flags, set, SP_KNOT_DRAGGING, SP_KNOT_GRABBED, SP_KNOT_MOUSEOVER, SP_KNOT_SELECTED, and SP_KNOT_VISIBLE.
Referenced by Inkscape::UI::Tools::cc_generic_knot_handler(), eventHandler(), hide(), selectKnot(), show(), and startDragging().
void SPKnot::setImage | ( | unsigned char * | normal, |
unsigned char * | mouseover, | ||
unsigned char * | dragging, | ||
unsigned char * | selected | ||
) |
Definition at line 426 of file knot.cpp.
References image, SP_KNOT_STATE_DRAGGING, SP_KNOT_STATE_MOUSEOVER, SP_KNOT_STATE_NORMAL, and SP_KNOT_STATE_SELECTED.
void SPKnot::setPosition | ( | Geom::Point const & | p, |
unsigned int | state | ||
) |
Move knot to new position and emits "moved" signal.
Definition at line 342 of file knot.cpp.
References ctrl, moved_signal, and pos.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), GrDragger::GrDragger(), Inkscape::SelTrans::handleRequest(), Inkscape::UI::Tools::PagesTool::marginKnotMoved(), Inkscape::UI::Tools::PagesTool::offsetKnotMoved(), requestPosition(), KnotHolderEntity::update_knot(), and Box3D::VPDragger::VPDragger().
void SPKnot::setSize | ( | Inkscape::HandleSize | size | ) |
Definition at line 413 of file knot.cpp.
References _size, size, and size_set.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), Inkscape::UI::Tools::cc_deselect_handle(), Inkscape::UI::Tools::cc_select_handle(), Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), and Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get().
void SPKnot::setTip | ( | Glib::ustring && | tip | ) |
Definition at line 438 of file knot.cpp.
References _tip.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), GrDragger::updateTip(), and Box3D::VPDragger::updateTip().
void SPKnot::show | ( | ) |
Show knot on its canvas.
Definition at line 322 of file knot.cpp.
References setFlag(), and SP_KNOT_VISIBLE.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), Inkscape::UI::Tools::cc_create_connection_point(), KnotHolderEntity::create(), GrDragger::GrDragger(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::UI::Tools::MeasureTool::MeasureTool(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), GrDrag::refreshDraggersMesh(), Inkscape::UI::Tools::MeasureTool::reverseKnots(), Inkscape::UI::Tools::MeasureTool::root_handler(), BlurKnotHolderEntity::update_knot(), Inkscape::UI::Tools::PagesTool::updateOfsetKnot(), and Box3D::VPDragger::VPDragger().
void SPKnot::startDragging | ( | Geom::Point const & | p, |
Geom::IntPoint const & | xy, | ||
uint32_t | etime | ||
) |
Update knot for dragging and tell canvas an item was grabbed.
Definition at line 86 of file knot.cpp.
References _cursors, ctrl, drag_origin, grabbed, grabbed_rel_pos, KNOT_EVENT_MASK, nograb, pos, setFlag(), SP_KNOT_GRABBED, SP_KNOT_STATE_DRAGGING, within_tolerance, and xyp.
Referenced by GrDrag::grabKnot(), and GrDrag::grabKnot().
|
static |
Definition at line 47 of file knot.cpp.
References ref_count.
Referenced by Inkscape::UI::Tools::cc_generic_knot_handler(), eventHandler(), Inkscape::UI::Tools::ConnectorTool::~ConnectorTool(), GrDragger::~GrDragger(), KnotHolderEntity::~KnotHolderEntity(), Inkscape::UI::Tools::MeasureTool::~MeasureTool(), Inkscape::SelTrans::~SelTrans(), and Box3D::VPDragger::~VPDragger().
void SPKnot::updateCtrl | ( | ) |
Update knot's control state.
Definition at line 389 of file knot.cpp.
References _setCtrlState(), _size, anchor, angle, ctrl, and size_set.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), Inkscape::LivePathEffect::LPEOffset::addKnotHolderEntities(), Inkscape::UI::Tools::cc_deselect_handle(), Inkscape::UI::Tools::cc_select_handle(), Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), GrDragger::GrDragger(), GrDragger::highlightNode(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::UI::Tools::MeasureTool::MeasureTool(), Inkscape::UI::Tools::PagesTool::PagesTool(), GrDragger::updateControlSizes(), and Box3D::VPDragger::VPDragger().
Glib::RefPtr<Gdk::Cursor> SPKnot::_cursors[SP_KNOT_VISIBLE_STATES] |
Definition at line 85 of file knot.h.
Referenced by eventHandler(), setCursor(), and startDragging().
sigc::scoped_connection SPKnot::_event_connection |
Definition at line 87 of file knot.h.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), Inkscape::UI::Tools::cc_create_connection_point(), Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), and SPKnot().
Inkscape::HandleSize SPKnot::_size = Inkscape::HandleSize::NORMAL |
Always square.
Must be odd.
Definition at line 65 of file knot.h.
Referenced by setSize(), and updateCtrl().
|
private |
Definition at line 179 of file knot.h.
Referenced by eventHandler(), setTip(), and SPKnot().
SPAnchorType SPKnot::anchor = SP_ANCHOR_CENTER |
double SPKnot::angle = 0.0 |
Angle of mesh handle.
Definition at line 67 of file knot.h.
Referenced by setAngle(), and updateCtrl().
sigc::signal<void (SPKnot *, unsigned int)> SPKnot::click_signal |
Definition at line 93 of file knot.h.
Referenced by KnotHolderEntity::create(), eventHandler(), GrDragger::GrDragger(), and Inkscape::UI::Tools::MeasureTool::MeasureTool().
CanvasItemPtr<Inkscape::CanvasItemCtrl> SPKnot::ctrl |
Our CanvasItemCtrl.
Definition at line 60 of file knot.h.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), _setCtrlState(), Inkscape::UI::Tools::cc_deselect_handle(), Inkscape::UI::Tools::cc_select_handle(), Inkscape::UI::Tools::ConnectorTool::cc_set_active_conn(), eventHandler(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), moveto(), setFlag(), setPosition(), SPKnot(), startDragging(), updateCtrl(), GrDragger::updateKnotShape(), and ~SPKnot().
SPDesktop* SPKnot::desktop = nullptr |
Desktop we are on.
Definition at line 59 of file knot.h.
Referenced by Inkscape::UI::Tools::cc_generic_knot_handler(), eventHandler(), handler_request_position(), GrDragger::highlightNode(), sp_sel_trans_handle_click(), sp_sel_trans_handle_event(), sp_sel_trans_handle_grab(), sp_sel_trans_handle_new_event(), sp_sel_trans_handle_request(), sp_sel_trans_handle_ungrab(), and SPKnot().
sigc::signal<void (SPKnot*, unsigned int)> SPKnot::doubleclicked_signal |
Definition at line 94 of file knot.h.
Referenced by GrDragger::GrDragger().
Geom::Point SPKnot::drag_origin |
Origin of drag.
Definition at line 71 of file knot.h.
Referenced by Inkscape::UI::Tools::PagesTool::marginKnotMoved(), and startDragging().
sigc::signal<bool (SPKnot*, Inkscape::CanvasEvent const &)> SPKnot::event_signal |
Definition at line 99 of file knot.h.
Referenced by eventHandler().
unsigned int SPKnot::flags = SP_KNOT_VISIBLE |
Definition at line 63 of file knot.h.
Referenced by _setCtrlState(), GrDrag::addCurve(), eventHandler(), is_dragging(), is_grabbed(), is_mouseover(), is_selected(), is_visible(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), and setFlag().
bool SPKnot::grabbed = false |
Definition at line 74 of file knot.h.
Referenced by eventHandler(), and startDragging().
Geom::Point SPKnot::grabbed_rel_pos |
Grabbed relative position.
Definition at line 70 of file knot.h.
Referenced by handler_request_position(), and startDragging().
sigc::signal<void (SPKnot*, unsigned int)> SPKnot::grabbed_signal |
Definition at line 96 of file knot.h.
Referenced by eventHandler(), and Box3D::VPDragger::VPDragger().
unsigned char* SPKnot::image[SP_KNOT_VISIBLE_STATES] |
Definition at line 84 of file knot.h.
Referenced by setImage(), and SPKnot().
sigc::signal<void (SPKnot*, unsigned int)> SPKnot::mousedown_signal |
Definition at line 95 of file knot.h.
Referenced by KnotHolderEntity::create(), and GrDragger::GrDragger().
bool SPKnot::moved = false |
Definition at line 75 of file knot.h.
Referenced by eventHandler().
sigc::signal<void (SPKnot *, Geom::Point const &, unsigned int)> SPKnot::moved_signal |
Definition at line 98 of file knot.h.
Referenced by Inkscape::UI::Dialog::KnotPropertiesDialog::_apply(), KnotHolderEntity::create(), GrDragger::GrDragger(), Inkscape::UI::Tools::MeasureTool::MeasureTool(), setPosition(), and Box3D::VPDragger::VPDragger().
SPItem* SPKnot::owner = nullptr |
Optional Owner Item.
Definition at line 61 of file knot.h.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), and Inkscape::UI::Tools::ConnectorTool::_ptHandleTest().
Geom::Point SPKnot::pos |
Our desktop coordinates.
Definition at line 69 of file knot.h.
Referenced by Inkscape::UI::Tools::ConnectorTool::_ptHandleTest(), Inkscape::UI::Tools::endpt_handler(), gr_knot_ungrabbed_handler(), handler_request_position(), GrDragger::highlightNode(), moveto(), position(), setPosition(), startDragging(), KnotHolder::transform_selected(), and Box3D::vp_knot_ungrabbed_handler().
double SPKnot::pressure = 0.0 |
The tablet pen pressure when the knot is being dragged.
Definition at line 89 of file knot.h.
Referenced by eventHandler().
|
private |
sigc::signal<bool (SPKnot*, Geom::Point*, unsigned int)> SPKnot::request_signal |
Definition at line 101 of file knot.h.
Referenced by Inkscape::UI::Tools::PagesTool::PagesTool(), and requestPosition().
Inkscape::CanvasItemCtrlShape SPKnot::shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_SQUARE |
bool SPKnot::shape_set = false |
bool SPKnot::size_set = false |
Use default size unless explicitly set.
Definition at line 66 of file knot.h.
Referenced by setSize(), and updateCtrl().
SPItem* SPKnot::sub_owner = nullptr |
Optional SubOwner Item.
Definition at line 62 of file knot.h.
Referenced by Inkscape::UI::Tools::ConnectorTool::_activeShapeAddKnot(), and Inkscape::UI::Tools::ConnectorTool::_ptHandleTest().
int SPKnot::tolerance = 0 |
Definition at line 77 of file knot.h.
Referenced by eventHandler().
bool SPKnot::transform_escaped = false |
Definition at line 79 of file knot.h.
Referenced by eventHandler().
sigc::signal<void (SPKnot *, unsigned int)> SPKnot::ungrabbed_signal |
Definition at line 97 of file knot.h.
Referenced by KnotHolderEntity::create(), eventHandler(), GrDragger::GrDragger(), Inkscape::UI::Tools::MeasureTool::MeasureTool(), Inkscape::UI::Tools::PagesTool::PagesTool(), and Box3D::VPDragger::VPDragger().
bool SPKnot::within_tolerance = false |
Definition at line 78 of file knot.h.
Referenced by eventHandler(), and startDragging().
Geom::IntPoint SPKnot::xyp |
Where drag started.
Definition at line 76 of file knot.h.
Referenced by eventHandler(), and startDragging().