Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeRubberSelectStrategyPrivate Class Reference

#include <KoShapeRubberSelectStrategy_p.h>

+ Inheritance diagram for KoShapeRubberSelectStrategyPrivate:

Public Member Functions

 KoShapeRubberSelectStrategyPrivate (KoToolBase *owner)
 
QRectF selectedRect () const
 
 ~KoShapeRubberSelectStrategyPrivate ()
 
- Public Member Functions inherited from KoInteractionStrategyPrivate
 KoInteractionStrategyPrivate (KoToolBase *t)
 
virtual ~KoInteractionStrategyPrivate ()
 

Public Attributes

QPointF lastPos
 
QRectF selectRect
 
KoSnapGuidesnapGuide
 
- Public Attributes inherited from KoInteractionStrategyPrivate
KoToolBasetool
 the KoToolBase instance that controls this strategy.
 

Detailed Description

Definition at line 13 of file KoShapeRubberSelectStrategy_p.h.

Constructor & Destructor Documentation

◆ KoShapeRubberSelectStrategyPrivate()

KoShapeRubberSelectStrategyPrivate::KoShapeRubberSelectStrategyPrivate ( KoToolBase * owner)
inlineexplicit

Definition at line 16 of file KoShapeRubberSelectStrategy_p.h.

18 snapGuide(new KoSnapGuide(owner->canvas()))
19 {
20 }
KoCanvasBase * canvas() const
Returns the canvas the tool is working on.

◆ ~KoShapeRubberSelectStrategyPrivate()

KoShapeRubberSelectStrategyPrivate::~KoShapeRubberSelectStrategyPrivate ( )
inline

Definition at line 22 of file KoShapeRubberSelectStrategy_p.h.

23 {
24 delete snapGuide;
25 }

References snapGuide.

Member Function Documentation

◆ selectedRect()

QRectF KoShapeRubberSelectStrategyPrivate::selectedRect ( ) const
inline

Return the rectangle that the user dragged. The rectangle is normalized and immutable.

Returns
a rectangle in pt.

Definition at line 32 of file KoShapeRubberSelectStrategy_p.h.

32 {
33 return selectRect.normalized();
34 }

References selectRect.

Member Data Documentation

◆ lastPos

QPointF KoShapeRubberSelectStrategyPrivate::lastPos

Definition at line 37 of file KoShapeRubberSelectStrategy_p.h.

◆ selectRect

QRectF KoShapeRubberSelectStrategyPrivate::selectRect

Definition at line 36 of file KoShapeRubberSelectStrategy_p.h.

◆ snapGuide

KoSnapGuide* KoShapeRubberSelectStrategyPrivate::snapGuide

Definition at line 38 of file KoShapeRubberSelectStrategy_p.h.


The documentation for this class was generated from the following file: