libs/flake

KoColorBackground Class Reference

A simple solid color shape background. More...

#include <KoColorBackground.h>

Inheritance diagram for KoColorBackground:

List of all members.

Public Member Functions

 KoColorBackground (const QColor &color, Qt::BrushStyle style=Qt::SolidPattern)
 KoColorBackground ()
virtual ~KoColorBackground ()
QColor color () const
virtual void fillStyle (KoGenStyle &style, KoShapeSavingContext &context)
virtual bool loadStyle (KoOdfLoadingContext &context, const QSizeF &shapeSize)
virtual void paint (QPainter &painter, const QPainterPath &fillPath) const
void setColor (const QColor &color)
Qt::BrushStyle style () const

Detailed Description

A simple solid color shape background.

Definition at line 30 of file KoColorBackground.h.


Constructor & Destructor Documentation

KoColorBackground::KoColorBackground (  ) 

Definition at line 40 of file KoColorBackground.cpp.

KoColorBackground::KoColorBackground ( const QColor color,
Qt::BrushStyle  style = Qt::SolidPattern 
) [explicit]

Creates background from given color and style.

Definition at line 45 of file KoColorBackground.cpp.

KoColorBackground::~KoColorBackground (  )  [virtual]

Definition at line 54 of file KoColorBackground.cpp.


Member Function Documentation

QColor KoColorBackground::color (  )  const

Returns the background color.

Definition at line 59 of file KoColorBackground.cpp.

void KoColorBackground::fillStyle ( KoGenStyle &  style,
KoShapeSavingContext context 
) [virtual]

Fills the style object.

Parameters:
style object
context used for saving

Implements KoShapeBackground.

Definition at line 80 of file KoColorBackground.cpp.

bool KoColorBackground::loadStyle ( KoOdfLoadingContext &  context,
const QSizeF shapeSize 
) [virtual]

load background from odf styles

Implements KoShapeBackground.

Definition at line 85 of file KoColorBackground.cpp.

void KoColorBackground::paint ( QPainter painter,
const QPainterPath fillPath 
) const [virtual]

Paints the background using the given fill path.

Implements KoShapeBackground.

Definition at line 74 of file KoColorBackground.cpp.

void KoColorBackground::setColor ( const QColor color  ) 

Sets the background color.

Definition at line 64 of file KoColorBackground.cpp.

Qt::BrushStyle KoColorBackground::style (  )  const

Returns the background style.

Definition at line 69 of file KoColorBackground.cpp.


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