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

Public Member Functions

KoColor defaultPixel (KisPaintDeviceSP dev) const
 
bool read (KisPaintDeviceSP dev, QIODevice *stream)
 
void setDefaultPixel (KisPaintDeviceSP dev, const KoColor &defaultPixel) const
 
bool write (KisPaintDeviceSP dev, KisPaintDeviceWriter &store)
 

Detailed Description

Definition at line 529 of file kis_kra_load_visitor.cpp.

Member Function Documentation

◆ defaultPixel()

KoColor SimpleDevicePolicy::defaultPixel ( KisPaintDeviceSP dev) const
inline

Definition at line 316 of file kis_kra_save_visitor.cpp.

316 {
317 return dev->defaultPixel();
318 }
KoColor defaultPixel() const

References KisPaintDevice::defaultPixel().

◆ read()

bool SimpleDevicePolicy::read ( KisPaintDeviceSP dev,
QIODevice * stream )
inline

Definition at line 531 of file kis_kra_load_visitor.cpp.

531 {
532 return dev->read(stream);
533 }
bool read(QIODevice *stream)

References KisPaintDevice::read().

◆ setDefaultPixel()

void SimpleDevicePolicy::setDefaultPixel ( KisPaintDeviceSP dev,
const KoColor & defaultPixel ) const
inline

Definition at line 535 of file kis_kra_load_visitor.cpp.

535 {
536 return dev->setDefaultPixel(defaultPixel);
537 }
void setDefaultPixel(const KoColor &defPixel)
KoColor defaultPixel(KisPaintDeviceSP dev) const

References defaultPixel(), and KisPaintDevice::setDefaultPixel().

◆ write()

bool SimpleDevicePolicy::write ( KisPaintDeviceSP dev,
KisPaintDeviceWriter & store )
inline

Definition at line 312 of file kis_kra_save_visitor.cpp.

312 {
313 return dev->write(store);
314 }
bool write(KisPaintDeviceWriter &store)

References KisPaintDevice::write().


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