Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
DomBrush Class Reference

#include <ui4.h>

+ Collaboration diagram for DomBrush:

Public Types

enum  Kind { Unknown = 0 , Color , Texture , Gradient }
 

Public Member Functions

 DomBrush ()=default
 
 ~DomBrush ()
 
void read (QXmlStreamReader &reader)
 
void write (QXmlStreamWriter &writer, const QString &tagName=QString()) const
 
bool hasAttributeBrushStyle () const
 
QString attributeBrushStyle () const
 
void setAttributeBrushStyle (const QString &a)
 
void clearAttributeBrushStyle ()
 
Kind kind () const
 
DomColorelementColor () const
 
DomColortakeElementColor ()
 
void setElementColor (DomColor *a)
 
DomPropertyelementTexture () const
 
DomPropertytakeElementTexture ()
 
void setElementTexture (DomProperty *a)
 
DomGradientelementGradient () const
 
DomGradienttakeElementGradient ()
 
void setElementGradient (DomGradient *a)
 

Detailed Description

Definition at line 1435 of file ui4.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Unknown 
Color 
Texture 
Gradient 

Definition at line 1451 of file ui4.h.

Constructor & Destructor Documentation

◆ DomBrush()

DomBrush::DomBrush ( )
default

◆ ~DomBrush()

DomBrush::~DomBrush ( )

Definition at line 2681 of file ui4.cpp.

Member Function Documentation

◆ attributeBrushStyle()

QString DomBrush::attributeBrushStyle ( ) const
inline

Definition at line 1446 of file ui4.h.

Referenced by write().

+ Here is the caller graph for this function:

◆ clearAttributeBrushStyle()

void DomBrush::clearAttributeBrushStyle ( )
inline

Definition at line 1448 of file ui4.h.

◆ elementColor()

DomColor * DomBrush::elementColor ( ) const
inline

Definition at line 1454 of file ui4.h.

◆ elementGradient()

DomGradient * DomBrush::elementGradient ( ) const
inline

Definition at line 1462 of file ui4.h.

◆ elementTexture()

DomProperty * DomBrush::elementTexture ( ) const
inline

Definition at line 1458 of file ui4.h.

◆ hasAttributeBrushStyle()

bool DomBrush::hasAttributeBrushStyle ( ) const
inline

Definition at line 1445 of file ui4.h.

Referenced by write().

+ Here is the caller graph for this function:

◆ kind()

Kind DomBrush::kind ( ) const
inline

Definition at line 1452 of file ui4.h.

Referenced by write().

+ Here is the caller graph for this function:

◆ read()

void DomBrush::read ( QXmlStreamReader & reader)

Definition at line 2701 of file ui4.cpp.

References Qt::CaseInsensitive, setAttributeBrushStyle(), setElementColor(), setElementGradient(), setElementTexture(), and tag.

+ Here is the call graph for this function:

◆ setAttributeBrushStyle()

void DomBrush::setAttributeBrushStyle ( const QString & a)
inline

Definition at line 1447 of file ui4.h.

Referenced by read().

+ Here is the caller graph for this function:

◆ setElementColor()

void DomBrush::setElementColor ( DomColor * a)

Definition at line 2782 of file ui4.cpp.

References Color.

Referenced by read().

+ Here is the caller graph for this function:

◆ setElementGradient()

void DomBrush::setElementGradient ( DomGradient * a)

Definition at line 2810 of file ui4.cpp.

References Gradient.

Referenced by read().

+ Here is the caller graph for this function:

◆ setElementTexture()

void DomBrush::setElementTexture ( DomProperty * a)

Definition at line 2796 of file ui4.cpp.

References Texture.

Referenced by read().

+ Here is the caller graph for this function:

◆ takeElementColor()

DomColor * DomBrush::takeElementColor ( )

Definition at line 2775 of file ui4.cpp.

◆ takeElementGradient()

DomGradient * DomBrush::takeElementGradient ( )

Definition at line 2803 of file ui4.cpp.

◆ takeElementTexture()

DomProperty * DomBrush::takeElementTexture ( )

Definition at line 2789 of file ui4.cpp.

◆ write()

void DomBrush::write ( QXmlStreamWriter & writer,
const QString & tagName = QString() ) const

Definition at line 2746 of file ui4.cpp.

References attributeBrushStyle(), Color, Gradient, hasAttributeBrushStyle(), QString::isEmpty(), kind(), QStringLiteral, Texture, QString::toLower(), DomColor::write(), DomGradient::write(), and DomProperty::write().

Referenced by DomColorRole::write(), and DomProperty::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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