|
Krita Source Code Documentation
|
The Preset class Preset is a resource object that stores brush preset data. More...
#include <Preset.h>
Inheritance diagram for Preset:Classes | |
| struct | Private |
Public Member Functions | |
| void | fromXML (const QString &xml) |
| fromXML convert the preset settings into a preset formatted xml. | |
| Preset (Resource *resource) | |
| QString | toXML () const |
| toXML convert the preset settings into a preset formatted xml. | |
| ~Preset () override | |
Private Member Functions | |
| KisPaintOpPresetSP | paintOpPreset () |
| paintOpPreset | |
Private Attributes | |
| Private *const | d |
The Preset class Preset is a resource object that stores brush preset data.
An example for printing the current brush preset and all its settings:
| Preset::Preset | ( | Resource * | resource | ) |
Definition at line 13 of file Preset.cpp.
References d, Preset::Private::preset, and Resource::resource().
|
override |
| void Preset::fromXML | ( | const QString & | xml | ) |
fromXML convert the preset settings into a preset formatted xml.
| xml | valid xml preset string. |
Definition at line 35 of file Preset.cpp.
References d, and Preset::Private::preset.
|
private |
paintOpPreset
| QString Preset::toXML | ( | ) | const |
toXML convert the preset settings into a preset formatted xml.
Definition at line 23 of file Preset.cpp.
References d, and Preset::Private::preset.