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

#include <kis_crop_saved_extra_data.h>

+ Inheritance diagram for KisCropSavedExtraData:

Public Types

enum  Type { CROP_IMAGE , RESIZE_IMAGE , CROP_LAYER }
 

Public Member Functions

KUndo2CommandExtraDataclone () const override
 
KisNodeSP cropNode () const
 
QRect cropRect () const
 
 KisCropSavedExtraData (Type type, QRect cropRect, KisNodeSP cropNode=0)
 
Type type () const
 
 ~KisCropSavedExtraData () override
 
- Public Member Functions inherited from KUndo2CommandExtraData
virtual ~KUndo2CommandExtraData ()
 

Private Attributes

KisNodeSP m_cropNode
 
QRect m_cropRect
 
Type m_type
 

Detailed Description

Definition at line 17 of file kis_crop_saved_extra_data.h.

Member Enumeration Documentation

◆ Type

Enumerator
CROP_IMAGE 
RESIZE_IMAGE 
CROP_LAYER 

Definition at line 20 of file kis_crop_saved_extra_data.h.

Constructor & Destructor Documentation

◆ KisCropSavedExtraData()

KisCropSavedExtraData::KisCropSavedExtraData ( Type type,
QRect cropRect,
KisNodeSP cropNode = 0 )

◆ ~KisCropSavedExtraData()

KisCropSavedExtraData::~KisCropSavedExtraData ( )
override

Definition at line 21 of file kis_crop_saved_extra_data.cpp.

22{
23}

Member Function Documentation

◆ clone()

KUndo2CommandExtraData * KisCropSavedExtraData::clone ( ) const
inlineoverridevirtual

Implements KUndo2CommandExtraData.

Definition at line 43 of file kis_crop_saved_extra_data.h.

43 {
44 return new KisCropSavedExtraData(*this);
45 }
KisCropSavedExtraData(Type type, QRect cropRect, KisNodeSP cropNode=0)

◆ cropNode()

KisNodeSP KisCropSavedExtraData::cropNode ( ) const
inline

Definition at line 39 of file kis_crop_saved_extra_data.h.

39 {
40 return m_cropNode;
41 }

◆ cropRect()

QRect KisCropSavedExtraData::cropRect ( ) const
inline

Definition at line 35 of file kis_crop_saved_extra_data.h.

35 {
36 return m_cropRect;
37 }

◆ type()

Type KisCropSavedExtraData::type ( ) const
inline

Definition at line 31 of file kis_crop_saved_extra_data.h.

31 {
32 return m_type;
33 }

Member Data Documentation

◆ m_cropNode

KisNodeSP KisCropSavedExtraData::m_cropNode
private

Definition at line 50 of file kis_crop_saved_extra_data.h.

◆ m_cropRect

QRect KisCropSavedExtraData::m_cropRect
private

Definition at line 49 of file kis_crop_saved_extra_data.h.

◆ m_type

Type KisCropSavedExtraData::m_type
private

Definition at line 48 of file kis_crop_saved_extra_data.h.


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