Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QCss::Declaration Struct Reference

#include <qcssparser_p.h>

+ Collaboration diagram for QCss::Declaration:

Classes

struct  DeclarationData
 

Public Member Functions

 Declaration ()
 
bool isEmpty () const
 
QColor colorValue (const QPalette &=QPalette()) const
 
void colorValues (QColor *c, const QPalette &=QPalette()) const
 
QBrush brushValue (const QPalette &=QPalette()) const
 
void brushValues (QBrush *c, const QPalette &=QPalette()) const
 
BorderStyle styleValue () const
 
void styleValues (BorderStyle *s) const
 
Origin originValue () const
 
Repeat repeatValue () const
 
Qt::Alignment alignmentValue () const
 
PositionMode positionValue () const
 
Attachment attachmentValue () const
 
int styleFeaturesValue () const
 
bool intValue (int *i, const char *unit=nullptr) const
 
bool realValue (qreal *r, const char *unit=nullptr) const
 
QSize sizeValue () const
 
QRect rectValue () const
 
QString uriValue () const
 
QIcon iconValue () const
 
void borderImageValue (QString *image, int *cuts, TileMode *h, TileMode *v) const
 
bool borderCollapseValue () const
 

Public Attributes

QExplicitlySharedDataPointer< DeclarationDatad
 

Detailed Description

Definition at line 409 of file qcssparser_p.h.

Constructor & Destructor Documentation

◆ Declaration()

QCss::Declaration::Declaration ( )
inline

Definition at line 422 of file qcssparser_p.h.

Member Function Documentation

◆ alignmentValue()

Qt::Alignment Declaration::alignmentValue ( ) const

Definition at line 1758 of file qcssparser.cpp.

References Qt::AlignLeft, Qt::AlignTop, d, and parseAlignment().

Referenced by QCss::ValueExtractor::extractBackground(), QCss::ValueExtractor::extractImage(), and QCss::ValueExtractor::extractPosition().

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

◆ attachmentValue()

Attachment Declaration::attachmentValue ( ) const

Definition at line 1725 of file qcssparser.cpp.

References QCss::Attachment_Unknown, d, findKnownValue(), and QCss::NumKnownAttachments.

Referenced by QCss::ValueExtractor::extractBackground().

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

◆ borderCollapseValue()

bool Declaration::borderCollapseValue ( ) const

Definition at line 1808 of file qcssparser.cpp.

References d.

◆ borderImageValue()

void Declaration::borderImageValue ( QString image,
int *  cuts,
TileMode h,
TileMode v 
) const

Definition at line 1770 of file qcssparser.cpp.

References d, findKnownValue(), i, QCss::Value::Identifier, QCss::Value::Number, QCss::NumKnownTileModes, qMin(), QCss::TileMode_Stretch, tileModes, and uriValue().

+ Here is the call graph for this function:

◆ brushValue()

QBrush Declaration::brushValue ( const QPalette pal = QPalette()) const

Definition at line 1467 of file qcssparser.cpp.

References QPalette::color(), d, QCss::BrushData::DependsOnThePalette, parseBrushValue(), and QCss::BrushData::Role.

Referenced by QCss::ValueExtractor::extractBackground(), QCss::ValueExtractor::extractBorder(), and QCss::ValueExtractor::extractPalette().

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

◆ brushValues()

void Declaration::brushValues ( QBrush c,
const QPalette pal = QPalette() 
) const

Definition at line 1491 of file qcssparser.cpp.

References QPalette::color(), d, QCss::BrushData::DependsOnThePalette, QMetaType::fromType(), i, parseBrushValue(), Q_ASSERT, qMin(), and QCss::BrushData::Role.

Referenced by QCss::ValueExtractor::extractBorder(), and QCss::ValueExtractor::extractOutline().

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

◆ colorValue()

QColor Declaration::colorValue ( const QPalette pal = QPalette()) const

Definition at line 1436 of file qcssparser.cpp.

References QPalette::color(), d, parseColorValue(), and QCss::ColorData::Role.

+ Here is the call graph for this function:

◆ colorValues()

void Declaration::colorValues ( QColor c,
const QPalette pal = QPalette() 
) const

Definition at line 1638 of file qcssparser.cpp.

References QPalette::color(), d, i, parseColorValue(), qMin(), and QCss::ColorData::Role.

+ Here is the call graph for this function:

◆ iconValue()

QIcon Declaration::iconValue ( ) const

Definition at line 1816 of file qcssparser.cpp.

References QIcon::Active, QIcon::addPixmap(), d, QIcon::Disabled, i, icon, QIcon::isNull(), j, QCss::Value::KnownIdentifier, QIcon::Normal, QIcon::Off, QIcon::On, QIcon::Selected, state, QCss::Value::TermOperatorComma, QCss::Value::Uri, QCss::Value_Active, QCss::Value_Disabled, QCss::Value_Normal, QCss::Value_Off, QCss::Value_On, and QCss::Value_Selected.

Referenced by QCss::ValueExtractor::extractImage().

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

◆ intValue()

bool Declaration::intValue ( int *  i,
const char *  unit = nullptr 
) const

Definition at line 1578 of file qcssparser.cpp.

References d, i, and intValueHelper().

+ Here is the call graph for this function:

◆ isEmpty()

bool QCss::Declaration::isEmpty ( ) const
inline

Definition at line 423 of file qcssparser_p.h.

References d, and QCss::UnknownProperty.

Referenced by QCss::Parser::parsePage(), and QCss::Parser::parseRuleset().

+ Here is the caller graph for this function:

◆ originValue()

Origin Declaration::originValue ( ) const

Definition at line 1701 of file qcssparser.cpp.

References d, findKnownValue(), QCss::NumKnownOrigins, QCss::Origin_Unknown, and origins.

Referenced by QCss::ValueExtractor::extractBackground(), and QCss::ValueExtractor::extractPosition().

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

◆ positionValue()

PositionMode Declaration::positionValue ( ) const

Definition at line 1713 of file qcssparser.cpp.

References d, findKnownValue(), QCss::NumKnownPositionModes, QCss::PositionMode_Unknown, and positions.

Referenced by QCss::ValueExtractor::extractPosition().

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

◆ realValue()

bool Declaration::realValue ( qreal r,
const char *  unit = nullptr 
) const

Definition at line 1537 of file qcssparser.cpp.

References Qt::CaseInsensitive, d, QCss::Value::Length, ok, QLatin1StringView::size(), and str.

+ Here is the call graph for this function:

◆ rectValue()

QRect Declaration::rectValue ( ) const

Definition at line 1616 of file qcssparser.cpp.

References args, d, QCss::Value::Function, rect, QList< T >::size(), Qt::SkipEmptyParts, QStringView::split(), and toInt().

+ Here is the call graph for this function:

◆ repeatValue()

Repeat Declaration::repeatValue ( ) const

Definition at line 1689 of file qcssparser.cpp.

References d, findKnownValue(), QCss::NumKnownRepeats, QCss::Repeat_Unknown, and repeats.

+ Here is the call graph for this function:

◆ sizeValue()

QSize Declaration::sizeValue ( ) const

Definition at line 1585 of file qcssparser.cpp.

References Qt::CaseInsensitive, d, QString::endsWith(), i, intValueHelper(), and qWarning.

+ Here is the call graph for this function:

◆ styleFeaturesValue()

int Declaration::styleFeaturesValue ( ) const

Definition at line 1737 of file qcssparser.cpp.

References d, findKnownValue(), i, QCss::NumKnownStyleFeatures, Q_ASSERT, QCss::QtStyleFeatures, QCss::StyleFeature_None, and styleFeatures.

Referenced by QCss::ValueExtractor::extractStyleFeatures().

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

◆ styleValue()

BorderStyle Declaration::styleValue ( ) const

Definition at line 1671 of file qcssparser.cpp.

References QCss::BorderStyle_None, d, and parseStyleValue().

Referenced by QCss::ValueExtractor::extractBorder().

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

◆ styleValues()

void Declaration::styleValues ( BorderStyle s) const

Definition at line 1678 of file qcssparser.cpp.

References QCss::BorderStyle_None, d, i, parseStyleValue(), and qMin().

Referenced by QCss::ValueExtractor::extractBorder(), and QCss::ValueExtractor::extractOutline().

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

◆ uriValue()

QString Declaration::uriValue ( ) const

Definition at line 1751 of file qcssparser.cpp.

References d, and QCss::Value::Uri.

Referenced by borderImageValue().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d


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