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

#include <kis_default_bounds.h>

+ Inheritance diagram for KisSelectionDefaultBounds:

Public Member Functions

 KisSelectionDefaultBounds (KisPaintDeviceSP parentPaintDevice)
 
 ~KisSelectionDefaultBounds () override
 
- Public Member Functions inherited from KisSelectionDefaultBoundsBase
QRect bounds () const override
 
int currentLevelOfDetail () const override
 
int currentTime () const override
 
bool externalFrameActive () const override
 
QRect imageBorderRect () const override
 
 KisSelectionDefaultBoundsBase ()
 
voidsourceCookie () const override
 
bool wrapAroundMode () const override
 
WrapAroundAxis wrapAroundModeAxis () const override
 
 ~KisSelectionDefaultBoundsBase () override
 
- Public Member Functions inherited from KisDefaultBoundsBase
virtual ~KisDefaultBoundsBase ()
 
- Public Member Functions inherited from KisShared
bool deref ()
 
bool ref ()
 
int refCount ()
 
QAtomicInt * sharedWeakReference ()
 

Protected Member Functions

virtual KisPaintDeviceSP parentPaintDevice () const override
 
- Protected Member Functions inherited from KisShared
 KisShared ()
 
 ~KisShared ()
 

Private Attributes

KisPaintDeviceWSP m_paintDevice
 

Detailed Description

KisSelectionDefaultBounds directly attaches a selection to a paint device

This object is mostly used in immediate actions, like filter application, where we don't have to store the link to the paint device for a long time.

Definition at line 90 of file kis_default_bounds.h.

Constructor & Destructor Documentation

◆ KisSelectionDefaultBounds()

KisSelectionDefaultBounds::KisSelectionDefaultBounds ( KisPaintDeviceSP parentPaintDevice)

Definition at line 158 of file kis_default_bounds.cpp.

160{
161}
virtual KisPaintDeviceSP parentPaintDevice() const override

◆ ~KisSelectionDefaultBounds()

KisSelectionDefaultBounds::~KisSelectionDefaultBounds ( )
override

Definition at line 163 of file kis_default_bounds.cpp.

164{
165}

Member Function Documentation

◆ parentPaintDevice()

KisPaintDeviceSP KisSelectionDefaultBounds::parentPaintDevice ( ) const
overrideprotectedvirtual

Return the actual paint device the selection is attached to

Implements KisSelectionDefaultBoundsBase.

Definition at line 167 of file kis_default_bounds.cpp.

168{
169 return m_paintDevice;
170}

References m_paintDevice.

Member Data Documentation

◆ m_paintDevice

KisPaintDeviceWSP KisSelectionDefaultBounds::m_paintDevice
private

Definition at line 101 of file kis_default_bounds.h.


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