Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeBackground Class Referenceabstract

#include <KoShapeBackground.h>

+ Inheritance diagram for KoShapeBackground:

Public Member Functions

virtual bool compareTo (const KoShapeBackground *other) const =0
 
virtual bool hasTransparency () const
 Returns if the background has some transparency.
 
 KoShapeBackground ()
 
virtual operator bool () const
 
virtual void paint (QPainter &painter, const QPainterPath &fillPath) const =0
 Paints the background using the given fill path.
 
virtual ~KoShapeBackground ()
 

Detailed Description

This is the base class for shape backgrounds. Derived classes are used to paint the background of a shape within a given painter path.

Definition at line 24 of file KoShapeBackground.h.

Constructor & Destructor Documentation

◆ KoShapeBackground()

KoShapeBackground::KoShapeBackground ( )

Definition at line 9 of file KoShapeBackground.cpp.

10{
11}

◆ ~KoShapeBackground()

KoShapeBackground::~KoShapeBackground ( )
virtual

Definition at line 13 of file KoShapeBackground.cpp.

14{
15}

Member Function Documentation

◆ compareTo()

virtual bool KoShapeBackground::compareTo ( const KoShapeBackground * other) const
pure virtual

◆ hasTransparency()

bool KoShapeBackground::hasTransparency ( ) const
virtual

Returns if the background has some transparency.

Reimplemented in KoVectorPatternBackground.

Definition at line 17 of file KoShapeBackground.cpp.

18{
19 return false;
20}

◆ operator bool()

virtual KoShapeBackground::operator bool ( ) const
inlineexplicitvirtual

Definition at line 38 of file KoShapeBackground.h.

38{ return true; }

◆ paint()

virtual void KoShapeBackground::paint ( QPainter & painter,
const QPainterPath & fillPath ) const
pure virtual

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