libs/flake
KoSnapData Class Reference
This class is used to provide additional data to the snap guide. More...
#include <KoSnapData.h>
Public Member Functions | |
| KoSnapData () | |
| ~KoSnapData () | |
| void | setSnapPoints (const QList< QPointF > &snapPoints) |
| void | setSnapSegments (const QList< KoPathSegment > &snapSegments) |
| QList< QPointF > | snapPoints () const |
| QList< KoPathSegment > | snapSegments () const |
Detailed Description
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 36 of file KoSnapData.h.
Constructor & Destructor Documentation
| KoSnapData::KoSnapData | ( | ) |
Definition at line 22 of file KoSnapData.cpp.
| KoSnapData::~KoSnapData | ( | ) |
Definition at line 26 of file KoSnapData.cpp.
Member Function Documentation
Sets list of points to snap to.
Definition at line 35 of file KoSnapData.cpp.
| void KoSnapData::setSnapSegments | ( | const QList< KoPathSegment > & | snapSegments | ) |
Sets list of segments to snap to.
Definition at line 45 of file KoSnapData.cpp.
Returns list of points to snap to.
Definition at line 30 of file KoSnapData.cpp.
| QList< KoPathSegment > KoSnapData::snapSegments | ( | ) | const |
Returns list of segments to snap to.
Definition at line 40 of file KoSnapData.cpp.
The documentation for this class was generated from the following files:
