Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaintThicknessOptionMixInImpl Struct Reference

#include <KisPaintThicknessOptionData.h>

+ Inheritance diagram for KisPaintThicknessOptionMixInImpl:

Public Types

enum  ThicknessMode { RESERVED , OVERWRITE , OVERLAY }
 

Public Member Functions

bool read (const KisPropertiesConfiguration *setting)
 
void write (KisPropertiesConfiguration *setting) const
 

Public Attributes

ThicknessMode mode {OVERLAY}
 

Friends

bool operator== (const KisPaintThicknessOptionMixInImpl &lhs, const KisPaintThicknessOptionMixInImpl &rhs)
 

Detailed Description

Definition at line 15 of file KisPaintThicknessOptionData.h.

Member Enumeration Documentation

◆ ThicknessMode

Member Function Documentation

◆ read()

bool KisPaintThicknessOptionMixInImpl::read ( const KisPropertiesConfiguration * setting)

Definition at line 11 of file KisPaintThicknessOptionData.cpp.

12{
13 mode = (ThicknessMode)setting->getInt("PaintThicknessThicknessMode", OVERLAY);
14
15 if (mode == RESERVED) {
16 mode = OVERLAY;
17 }
18
19 return true;
20}
int getInt(const QString &name, int def=0) const

References KisPropertiesConfiguration::getInt(), mode, OVERLAY, and RESERVED.

◆ write()

void KisPaintThicknessOptionMixInImpl::write ( KisPropertiesConfiguration * setting) const

Definition at line 22 of file KisPaintThicknessOptionData.cpp.

23{
24 setting->setProperty("PaintThicknessThicknessMode", mode);
25}
virtual void setProperty(const QString &name, const QVariant &value)

References mode, and KisPropertiesConfiguration::setProperty().

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const KisPaintThicknessOptionMixInImpl & lhs,
const KisPaintThicknessOptionMixInImpl & rhs )
friend

Definition at line 24 of file KisPaintThicknessOptionData.h.

24 {
25 return lhs.mode == rhs.mode;
26 }

Member Data Documentation

◆ mode

ThicknessMode KisPaintThicknessOptionMixInImpl::mode {OVERLAY}

Definition at line 28 of file KisPaintThicknessOptionData.h.

28{OVERLAY};

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