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

Public Functions

const QStyleSheetBorderImageDataborderImage () const
 
bool hasBorderImage () const
 
bool isOpaque () const
 
 QStyleSheetBorderData ()
 
 QStyleSheetBorderData (int *b, QBrush *c, QCss::BorderStyle *s, QSize *r)
 
- 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

QSharedDataPointer< QStyleSheetBorderImageDatabi
 
int borders [4]
 
QBrush colors [4]
 
QSize radii [4]
 
QCss::BorderStyle styles [4]
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 338 of file qstylesheetstyle.cpp.

Constructors and Destructors

◆ QStyleSheetBorderData() [1/2]

QStyleSheetBorderData::QStyleSheetBorderData ( )
inline

Definition at line 340 of file qstylesheetstyle.cpp.

340  : bi(0)
341  {
342  for (int i = 0; i < 4; i++) {
343  borders[i] = 0;
345  }
346  }
QCss::BorderStyle styles[4]
QSharedDataPointer< QStyleSheetBorderImageData > bi

◆ QStyleSheetBorderData() [2/2]

QStyleSheetBorderData::QStyleSheetBorderData ( int *  b,
QBrush c,
QCss::BorderStyle s,
QSize r 
)
inline

Definition at line 348 of file qstylesheetstyle.cpp.

348  : bi(0)
349  {
350  for (int i = 0; i < 4; i++) {
351  borders[i] = b[i];
352  styles[i] = s[i];
353  colors[i] = c[i];
354  radii[i] = r[i];
355  }
356  }
QCss::BorderStyle styles[4]
QSharedDataPointer< QStyleSheetBorderImageData > bi

Functions

◆ borderImage()

const QStyleSheetBorderImageData* QStyleSheetBorderData::borderImage ( ) const
inline

Definition at line 363 of file qstylesheetstyle.cpp.

Referenced by QRenderRule::drawBorderImage().

364  { return bi; }
QSharedDataPointer< QStyleSheetBorderImageData > bi

◆ hasBorderImage()

bool QStyleSheetBorderData::hasBorderImage ( ) const
inline

Definition at line 365 of file qstylesheetstyle.cpp.

Referenced by QRenderRule::fixupBorder(), QStyleSheetStyle::polish(), and QRenderRule::QRenderRule().

365 { return bi!=0; }
QSharedDataPointer< QStyleSheetBorderImageData > bi

◆ isOpaque()

bool QStyleSheetBorderData::isOpaque ( ) const
inline

Definition at line 369 of file qstylesheetstyle.cpp.

Referenced by QStyleSheetStyle::polish().

370  {
371  for (int i = 0; i < 4; i++) {
373  continue;
375  && styles[i] != BorderStyle_Solid)
376  return false;
377  if (!colors[i].isOpaque())
378  return false;
379  if (!radii[i].isEmpty())
380  return false;
381  }
382  if (bi != 0 && bi->pixmap.hasAlpha())
383  return false;
384  return true;
385  }
QCss::BorderStyle styles[4]
static bool isEmpty(const char *str)
QSharedDataPointer< QStyleSheetBorderImageData > bi
bool hasAlpha() const
Returns true if this pixmap has an alpha channel, or has a mask, otherwise returns false...
Definition: qpixmap.cpp:1938

Properties

◆ bi

QSharedDataPointer<QStyleSheetBorderImageData> QStyleSheetBorderData::bi

Definition at line 367 of file qstylesheetstyle.cpp.

Referenced by QRenderRule::fixupBorder(), and QRenderRule::QRenderRule().

◆ borders

int QStyleSheetBorderData::borders[4]

◆ colors

QBrush QStyleSheetBorderData::colors[4]

◆ radii

QSize QStyleSheetBorderData::radii[4]

◆ styles

QCss::BorderStyle QStyleSheetBorderData::styles[4]

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