karbon

#include <vfill.h>

Public Types

enum  VFillType {
  none = 0 , solid = 1 , grad = 2 , patt = 3 ,
  unknown = 4
}
 

Public Member Functions

 VFill (const VColor &)
 
 VFill (const VFill &)
 
const VColor & color () const
 
void setColor (const VColor &color, bool bsolid=true)
 
VGradient & gradient ()
 
const VGradient & gradient () const
 
VPattern & pattern ()
 
const VPattern & pattern () const
 
VFillType type () const
 
void setType (VFillType type)
 
void save (TQDomElement &element) const
 
void saveOasis (KoGenStyles &mainStyles, KoGenStyle &style) const
 
void load (const TQDomElement &element)
 
void loadOasis (const TQDomElement &object, KoOasisLoadingContext &context, VObject *parent=0L)
 
VFill & operator= (const VFill &fill)
 
void transform (const TQWMatrix &m)
 

Detailed Description

Manages the fill of shapes.

The fill can be solid or gradient. Also two fill rules are supported that effect how the shape is filled. For explanation see the TQPainter documentation.

Default is no fill and even-odd filling rule.

Definition at line 44 of file vfill.h.

Member Enumeration Documentation

◆ VFillType

Enumerator
solid 

no fill at all

grad 

solid fill

patt 

gradient fill

unknown 

pattern fill

Definition at line 47 of file vfill.h.

Constructor & Destructor Documentation

◆ VFill() [1/3]

VFill::VFill ( )

Definition at line 31 of file vfill.cpp.

◆ VFill() [2/3]

VFill::VFill ( const VColor &  c)

Definition at line 42 of file vfill.cpp.

◆ VFill() [3/3]

VFill::VFill ( const VFill &  fill)

Definition at line 49 of file vfill.cpp.

Member Function Documentation

◆ color()

const VColor & VFill::color ( ) const
inline

Definition at line 60 of file vfill.h.

◆ gradient() [1/2]

VGradient & VFill::gradient ( )
inline

Definition at line 63 of file vfill.h.

◆ gradient() [2/2]

const VGradient & VFill::gradient ( ) const
inline

Definition at line 64 of file vfill.h.

◆ load()

void VFill::load ( const TQDomElement &  element)

Definition at line 129 of file vfill.cpp.

◆ loadOasis()

void VFill::loadOasis ( const TQDomElement &  object,
KoOasisLoadingContext &  context,
VObject *  parent = 0L 
)

Definition at line 103 of file vfill.cpp.

◆ operator=()

VFill & VFill::operator= ( const VFill &  fill)

Definition at line 160 of file vfill.cpp.

◆ pattern() [1/2]

VPattern & VFill::pattern ( )
inline

Definition at line 66 of file vfill.h.

◆ pattern() [2/2]

const VPattern & VFill::pattern ( ) const
inline

Definition at line 67 of file vfill.h.

◆ save()

void VFill::save ( TQDomElement &  element) const

Definition at line 56 of file vfill.cpp.

◆ saveOasis()

void VFill::saveOasis ( KoGenStyles &  mainStyles,
KoGenStyle &  style 
) const

Definition at line 79 of file vfill.cpp.

◆ setColor()

void VFill::setColor ( const VColor &  color,
bool  bsolid = true 
)
inline

Definition at line 61 of file vfill.h.

◆ setType()

void VFill::setType ( VFillType  type)
inline

Definition at line 70 of file vfill.h.

◆ transform()

void VFill::transform ( const TQWMatrix &  m)

Definition at line 175 of file vfill.cpp.

◆ type()

VFillType VFill::type ( ) const
inline

Definition at line 69 of file vfill.h.


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