20#ifndef __VSHADOWDECORATOR_H__
21#define __VSHADOWDECORATOR_H__
25#include <koffice_export.h>
29class KARBONBASE_EXPORT VShadowDecorator :
public VObject
32 VShadowDecorator( VObject*
object, VObject* parent,
int distance = 2,
int angle = 0,
float opacity = 1.0 );
33 VShadowDecorator(
const VShadowDecorator& obj );
35 virtual ~VShadowDecorator();
37 virtual void draw( VPainter* ,
const KoRect* = 0L )
const;
39 virtual const KoRect&
boundingBox()
const {
return m_object->boundingBox(); }
40 VStroke*
stroke()
const {
return m_object->stroke(); }
41 virtual void setStroke(
const VStroke& stroke );
42 VFill*
fill()
const {
return m_object->fill(); }
43 virtual void setFill(
const VFill& fill );
45 virtual void accept( VVisitor& );
47 virtual void save( TQDomElement& )
const;
48 virtual void load(
const TQDomElement& ) {}
50 virtual VObject*
clone()
const;
52 VState
state()
const {
return m_state; }
53 virtual void setState(
const VState state );
55 void setShadow(
int distance = 2,
int angle = 0,
float opacity = 1.0 );
The base class for all karbon objects.
virtual VObject * clone() const =0
Create an exact copy of this object.
virtual void setState(const VState state)
Sets the state to a specified new state.
virtual void accept(VVisitor &)
Accept a VVisitor.
virtual void setStroke(const VStroke &stroke)
Sets the stroke to a given new stroke.
virtual const KoRect & boundingBox() const
Calculates the tightest bounding box around the object.
virtual VFill * fill() const
Gets the object's actual fill.
virtual void load(const TQDomElement &element)
Load this object's state from xml and initialize this object accordingly.
virtual VStroke * stroke() const
Gets the object's actual stroke.
virtual void save(TQDomElement &element) const
Save this object's state to xml.
virtual void setFill(const VFill &fill)
Sets the fill to a given new fill.
virtual void draw(VPainter *painter, const KoRect *rect=0L) const
Draw the object to a painting device.
VState state() const
Get the state the object is in.