Commit 33b3c636 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add getter/setter for dropshadow values

parent b14c7c1e
......@@ -22,6 +22,8 @@
#include <psd.h>
#include <psd_utils.h>
#include <klocale.h>
struct KisPSDLayerStyle::Private
{
Private()
......@@ -63,6 +65,11 @@ struct KisPSDLayerStyle::Private
KisPSDLayerStyle::KisPSDLayerStyle()
: d(new Private())
{
d->name = i18n("Unnamed");
d->version = 7;
d->visible = true;
}
KisPSDLayerStyle::~KisPSDLayerStyle()
......@@ -105,3 +112,13 @@ bool KisPSDLayerStyle::read(QIODevice *io)
{
return false;
}
psd_layer_effects_drop_shadow &KisPSDLayerStyle::dropShadow() const
{
return d->drop_shadow;
}
void KisPSDLayerStyle::setDropShadow(const psd_layer_effects_drop_shadow &dropShadow)
{
d->drop_shadow = dropShadow;
}
......@@ -22,6 +22,8 @@ class QIODevice;
#include <QVector>
#include <psd.h>
#include <krita_export.h>
/**
......@@ -60,6 +62,10 @@ public:
/// Load this style object
bool read(QIODevice *io);
psd_layer_effects_drop_shadow & dropShadow() const;
void setDropShadow(const psd_layer_effects_drop_shadow &dropShadow);
private:
struct Private;
Private * const d;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment