Qt 4.8
Public Functions | Public Variables | List of all members
QStyleSheetBackgroundData Struct Reference
Inheritance diagram for QStyleSheetBackgroundData:
QSharedData

Public Functions

bool isTransparent () const
 
 QStyleSheetBackgroundData (const QBrush &b, const QPixmap &p, QCss::Repeat r, Qt::Alignment a, QCss::Origin o, Attachment t, QCss::Origin c)
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Public Variables

QCss::Attachment attachment
 
QBrush brush
 
QCss::Origin clip
 
QCss::Origin origin
 
QPixmap pixmap
 
Qt::Alignment position
 
QCss::Repeat repeat
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 318 of file qstylesheetstyle.cpp.

Constructors and Destructors

◆ QStyleSheetBackgroundData()

QStyleSheetBackgroundData::QStyleSheetBackgroundData ( const QBrush b,
const QPixmap p,
QCss::Repeat  r,
Qt::Alignment  a,
QCss::Origin  o,
Attachment  t,
QCss::Origin  c 
)
inline

Definition at line 320 of file qstylesheetstyle.cpp.

322  : brush(b), pixmap(p), repeat(r), position(a), origin(o), attachment(t), clip(c) { }
unsigned char c[8]
Definition: qnumeric_p.h:62
long ASN1_INTEGER_get ASN1_INTEGER * a

Functions

◆ isTransparent()

bool QStyleSheetBackgroundData::isTransparent ( ) const
inline

Definition at line 324 of file qstylesheetstyle.cpp.

Referenced by QStyleSheetStyle::drawComplexControl(), and QStyleSheetStyle::polish().

324  {
325  if (brush.style() != Qt::NoBrush)
326  return !brush.isOpaque();
327  return pixmap.isNull() ? false : pixmap.hasAlpha();
328  }
Qt::BrushStyle style() const
Returns the brush style.
Definition: qbrush.h:182
bool isOpaque() const
Returns true if the brush is fully opaque otherwise false.
Definition: qbrush.cpp:910
bool hasAlpha() const
Returns true if this pixmap has an alpha channel, or has a mask, otherwise returns false...
Definition: qpixmap.cpp:1938
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
Definition: qpixmap.cpp:615

Properties

◆ attachment

QCss::Attachment QStyleSheetBackgroundData::attachment

Definition at line 334 of file qstylesheetstyle.cpp.

◆ brush

QBrush QStyleSheetBackgroundData::brush

◆ clip

QCss::Origin QStyleSheetBackgroundData::clip

◆ origin

QCss::Origin QStyleSheetBackgroundData::origin

Definition at line 333 of file qstylesheetstyle.cpp.

Referenced by QRenderRule::drawBackgroundImage().

◆ pixmap

QPixmap QStyleSheetBackgroundData::pixmap

◆ position

Qt::Alignment QStyleSheetBackgroundData::position

Definition at line 332 of file qstylesheetstyle.cpp.

◆ repeat

QCss::Repeat QStyleSheetBackgroundData::repeat

Definition at line 331 of file qstylesheetstyle.cpp.


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