|
Krita Source Code Documentation
|
#include <KoSnapData.h>
Public Member Functions | |
| KoSnapData () | |
| void | setSnapPoints (const QList< QPointF > &snapPoints) |
| Sets list of points to snap to. | |
| void | setSnapSegments (const QList< KoPathSegment > &snapSegments) |
| Sets list of segments to snap to. | |
| QList< QPointF > | snapPoints () const |
| Returns list of points to snap to. | |
| QList< KoPathSegment > | snapSegments () const |
| Returns list of segments to snap to. | |
| ~KoSnapData () | |
Private Attributes | |
| QList< QPointF > | m_points |
| QList< KoPathSegment > | m_segments |
This class is used to provide additional data to the snap guide.
Some shapes might have internal data it wants snapping support for, i.e. the axis of a chart shape, the row of a table shape, etc. As the data is internal and special to that shape, the snap guide does not know about it and can therefore not provide any snapping to it. So the shape can put that data in form of points or segments into that class which the snap guide can retrieve and use accordingly.
Definition at line 25 of file KoSnapData.h.
| KoSnapData::KoSnapData | ( | ) |
Definition at line 11 of file KoSnapData.cpp.
| KoSnapData::~KoSnapData | ( | ) |
Definition at line 15 of file KoSnapData.cpp.
Sets list of points to snap to.
Definition at line 24 of file KoSnapData.cpp.
References m_points, and snapPoints().
| void KoSnapData::setSnapSegments | ( | const QList< KoPathSegment > & | snapSegments | ) |
Sets list of segments to snap to.
Definition at line 34 of file KoSnapData.cpp.
References m_segments, and snapSegments().
| QList< QPointF > KoSnapData::snapPoints | ( | ) | const |
Returns list of points to snap to.
Definition at line 19 of file KoSnapData.cpp.
References m_points.
| QList< KoPathSegment > KoSnapData::snapSegments | ( | ) | const |
Returns list of segments to snap to.
Definition at line 29 of file KoSnapData.cpp.
References m_segments.
|
private |
Definition at line 44 of file KoSnapData.h.
|
private |
Definition at line 45 of file KoSnapData.h.