Qt 4.8
Public Functions | Public Variables | List of all members
QMacPattern Class Reference

Public Functions

int height ()
 
 QMacPattern ()
 
int width ()
 
 ~QMacPattern ()
 

Public Variables

bool as_mask
 
struct {
   const uchar *   bytes
 
   QPixmap   pixmap
 
data
 
QColor foreground
 
CGImageRef image
 
QPaintDevicepdev
 

Detailed Description

Definition at line 428 of file qpaintengine_mac.cpp.

Constructors and Destructors

◆ QMacPattern()

QMacPattern::QMacPattern ( )
inline

Definition at line 431 of file qpaintengine_mac.cpp.

431 : as_mask(false), pdev(0), image(0) { data.bytes = 0; }
struct QMacPattern::@240 data
QPaintDevice * pdev
CGImageRef image

◆ ~QMacPattern()

QMacPattern::~QMacPattern ( )
inline

Definition at line 432 of file qpaintengine_mac.cpp.

432 { CGImageRelease(image); }
CGImageRef image

Functions

◆ height()

int QMacPattern::height ( )
inline

Definition at line 440 of file qpaintengine_mac.cpp.

Referenced by QCoreGraphicsPaintEngine::drawTiledPixmap(), and QCoreGraphicsPaintEnginePrivate::setFillBrush().

440  {
441  if(image)
442  return CGImageGetHeight(image);
443  if(data.bytes)
445  return data.pixmap.height();
446  }
#define QMACPATTERN_MASK_MULTIPLIER
struct QMacPattern::@240 data
CGImageRef image

◆ width()

int QMacPattern::width ( )
inline

Definition at line 433 of file qpaintengine_mac.cpp.

Referenced by QCoreGraphicsPaintEngine::drawTiledPixmap(), and QCoreGraphicsPaintEnginePrivate::setFillBrush().

433  {
434  if(image)
435  return CGImageGetWidth(image);
436  if(data.bytes)
438  return data.pixmap.width();
439  }
#define QMACPATTERN_MASK_MULTIPLIER
struct QMacPattern::@240 data
CGImageRef image

Properties

◆ as_mask

bool QMacPattern::as_mask

◆ bytes

const uchar* QMacPattern::bytes

◆ data

struct { ... } QMacPattern::data

◆ foreground

QColor QMacPattern::foreground

◆ image

CGImageRef QMacPattern::image

Definition at line 457 of file qpaintengine_mac.cpp.

Referenced by qt_mac_draw_pattern().

◆ pdev

QPaintDevice* QMacPattern::pdev

◆ pixmap

QPixmap QMacPattern::pixmap

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