Inkscape
Vector Graphics Editor
|
This class represents a single draggable point of a gradient. More...
#include <gradient-drag.h>
Public Member Functions | |
GrDraggable (SPItem *item, GrPointType point_type, guint point_i, Inkscape::PaintTarget fill_or_stroke) | |
virtual | ~GrDraggable () |
SPObject * | getServer () |
bool | mayMerge (GrDraggable *da2) |
int | equals (GrDraggable *other) |
Public Attributes | |
SPItem * | item |
GrPointType | point_type |
gint | point_i |
Inkscape::PaintTarget | fill_or_stroke |
This class represents a single draggable point of a gradient.
It remembers the item which has the gradient, whether it's fill or stroke, the point type (from the GrPointType enum), and the point number (needed if more than 2 stops are present).
Definition at line 60 of file gradient-drag.h.
GrDraggable::GrDraggable | ( | SPItem * | item, |
GrPointType | point_type, | ||
guint | point_i, | ||
Inkscape::PaintTarget | fill_or_stroke | ||
) |
Definition at line 740 of file gradient-drag.cpp.
References item, and sp_object_ref().
|
virtual |
Definition at line 749 of file gradient-drag.cpp.
References item, and sp_object_unref().
|
inline |
Definition at line 73 of file gradient-drag.h.
References fill_or_stroke, item, point_i, and point_type.
SPObject * GrDraggable::getServer | ( | ) |
Definition at line 754 of file gradient-drag.cpp.
References fill_or_stroke, Inkscape::FOR_FILL, Inkscape::FOR_STROKE, SPStyle::getFillPaintServer(), SPStyle::getStrokePaintServer(), item, and SPObject::style.
Referenced by gr_knot_moved_midpoint_handler(), GrDrag::selected_move(), and GrDragger::updateMidstopDependencies().
bool GrDraggable::mayMerge | ( | GrDraggable * | da2 | ) |
Definition at line 1328 of file gradient-drag.cpp.
References fill_or_stroke, item, POINT_LG_MID, POINT_RG_CENTER, POINT_RG_FOCUS, POINT_RG_MID1, POINT_RG_MID2, and point_type.
Inkscape::PaintTarget GrDraggable::fill_or_stroke |
Definition at line 67 of file gradient-drag.h.
Referenced by GrDrag::addDragger(), equals(), GrDrag::getDraggerFor(), GrDragger::getMgCorner(), getServer(), gr_knot_clicked_handler(), gr_knot_moved_handler(), gr_midpoint_limits(), GrDragger::highlightCorner(), GrDragger::highlightNode(), mayMerge(), GrDragger::moveMeshHandles(), GrDragger::moveThisToDraggable(), GrDrag::selectByStop(), GrDragger::updateMidstopDependencies(), GrDragger::updateTip(), and GrDrag::~GrDrag().
SPItem* GrDraggable::item |
Definition at line 64 of file gradient-drag.h.
Referenced by GrDrag::addDragger(), equals(), GrDrag::getDraggerFor(), GrDragger::getMgCorner(), getServer(), gr_knot_clicked_handler(), gr_knot_moved_handler(), gr_midpoint_limits(), GrDraggable(), GrDragger::highlightCorner(), GrDragger::highlightNode(), mayMerge(), GrDragger::moveMeshHandles(), GrDragger::moveThisToDraggable(), GrDrag::selectByStop(), GrDragger::updateMidstopDependencies(), GrDragger::updateTip(), GrDrag::~GrDrag(), and ~GrDraggable().
gint GrDraggable::point_i |
Definition at line 66 of file gradient-drag.h.
Referenced by GrDrag::addDragger(), equals(), GrDrag::getDraggerFor(), GrDragger::getMgCorner(), gr_knot_clicked_handler(), gr_knot_moved_handler(), gr_midpoint_limits(), GrDragger::highlightCorner(), GrDragger::moveMeshHandles(), GrDragger::moveThisToDraggable(), GrDrag::selectByStop(), GrDragger::updateTip(), and GrDrag::~GrDrag().
GrPointType GrDraggable::point_type |
Definition at line 65 of file gradient-drag.h.
Referenced by GrDrag::addDragger(), equals(), GrDrag::getDraggerFor(), GrDragger::getMgCorner(), gr_knot_clicked_handler(), gr_knot_moved_handler(), gr_midpoint_limits(), GrDragger::GrDragger(), GrDragger::highlightCorner(), mayMerge(), GrDragger::moveMeshHandles(), GrDragger::moveThisToDraggable(), GrDragger::updateKnotShape(), GrDragger::updateTip(), and GrDrag::~GrDrag().