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
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
 
QList< qrealdashArray () const
 

Public Attributes

QExplicitlySharedDataPointer< DeclarationDatad
 

Detailed Description

Definition at line 424 of file qcssparser_p.h.

Constructor & Destructor Documentation

◆ Declaration()

QCss::Declaration::Declaration ( )
inline

Definition at line 437 of file qcssparser_p.h.

Member Function Documentation

◆ alignmentValue()

Qt::Alignment Declaration::alignmentValue ( ) const

Definition at line 1793 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 1760 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 1843 of file qcssparser.cpp.

References d.

◆ borderImageValue()

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

Definition at line 1805 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 1502 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 1526 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 1471 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 1673 of file qcssparser.cpp.

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

+ Here is the call graph for this function:

◆ dashArray()

QList< qreal > Declaration::dashArray ( ) const

Definition at line 1851 of file qcssparser.cpp.

References d, i, isValidNumber(), QCss::Value::Number, ok, QCss::QtStrokeDashArray, and QCss::Value::TermOperatorComma.

+ Here is the call graph for this function:

◆ iconValue()

QIcon Declaration::iconValue ( ) const

Definition at line 1880 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 1613 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 438 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 1736 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 1748 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 1572 of file qcssparser.cpp.

References Qt::CaseInsensitive, d, QCss::Value::Length, ok, and str.

◆ rectValue()

QRect Declaration::rectValue ( ) const

Definition at line 1651 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 1724 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 1620 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 1772 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 1706 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 1713 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 1786 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: