QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPainterCommand Class Reference

Detailed Description

Definition at line 16 of file QskPainterCommand.h.

Classes

struct  ImageData
 Attributes how to paint a QImage.
 
struct  PixmapData
 Attributes how to paint a QPixmap.
 
struct  StateData
 Attributes of a state change.
 

Public Types

enum  Type {
  Invalid = -1 , Path , Pixmap , Image ,
  State
}
 Type of the paint command. More...
 

Public Member Functions

 QskPainterCommand (const QskPainterCommand &)
 
 QskPainterCommand (const QPainterPath &)
 
 QskPainterCommand (const QRectF &rect, const QPixmap &, const QRectF &subRect)
 
 QskPainterCommand (const QRectF &rect, const QImage &, const QRectF &subRect, Qt::ImageConversionFlags)
 
 QskPainterCommand (const QskPainterCommand::StateData &data)
 
 QskPainterCommand (const QPaintEngineState &)
 
QskPainterCommandoperator= (const QskPainterCommand &)
 
bool operator== (const QskPainterCommand &other) const noexcept
 
bool operator!= (const QskPainterCommand &other) const noexcept
 
Type type () const noexcept
 
QPainterPath * path () noexcept
 
const QPainterPath * path () const noexcept
 
PixmapData * pixmapData () noexcept
 
const PixmapData * pixmapData () const noexcept
 
ImageData * imageData () noexcept
 
const ImageData * imageData () const noexcept
 
StateData * stateData () noexcept
 
const StateData * stateData () const noexcept
 

Member Enumeration Documentation

◆ Type

Type of the paint command.

Enumerator
Invalid 

Invalid command.

Path 

Draw a QPainterPath.

Pixmap 

Draw a QPixmap.

Image 

Draw a QImage.

State 

QPainter state change.

Definition at line 20 of file QskPainterCommand.h.

Constructor & Destructor Documentation

◆ QskPainterCommand() [1/7]

constexpr QskPainterCommand::QskPainterCommand ( )
inlineconstexprnoexcept

Definition at line 129 of file QskPainterCommand.h.

◆ QskPainterCommand() [2/7]

QskPainterCommand::QskPainterCommand ( const QskPainterCommand other)

Definition at line 94 of file QskPainterCommand.cpp.

◆ QskPainterCommand() [3/7]

QskPainterCommand::QskPainterCommand ( const QPainterPath &  path)
explicit

Definition at line 8 of file QskPainterCommand.cpp.

◆ QskPainterCommand() [4/7]

QskPainterCommand::QskPainterCommand ( const QRectF &  rect,
const QPixmap &  pixmap,
const QRectF &  subRect 
)

Definition at line 14 of file QskPainterCommand.cpp.

◆ QskPainterCommand() [5/7]

QskPainterCommand::QskPainterCommand ( const QRectF &  rect,
const QImage &  image,
const QRectF &  subRect,
Qt::ImageConversionFlags  flags 
)

Definition at line 24 of file QskPainterCommand.cpp.

◆ QskPainterCommand() [6/7]

QskPainterCommand::QskPainterCommand ( const QskPainterCommand::StateData &  data)
explicit

Definition at line 35 of file QskPainterCommand.cpp.

◆ QskPainterCommand() [7/7]

QskPainterCommand::QskPainterCommand ( const QPaintEngineState &  state)
explicit

Definition at line 41 of file QskPainterCommand.cpp.

◆ ~QskPainterCommand()

QskPainterCommand::~QskPainterCommand ( )

Definition at line 99 of file QskPainterCommand.cpp.

Member Function Documentation

◆ imageData() [1/2]

const QskPainterCommand::ImageData * QskPainterCommand::imageData ( ) const
inlinenoexcept
Returns
Attributes how to paint a QImage

Definition at line 161 of file QskPainterCommand.h.

◆ imageData() [2/2]

QskPainterCommand::ImageData * QskPainterCommand::imageData ( )
noexcept

Definition at line 301 of file QskPainterCommand.cpp.

◆ operator!=()

bool QskPainterCommand::operator!= ( const QskPainterCommand other) const
inlinenoexcept

Definition at line 135 of file QskPainterCommand.h.

◆ operator=()

QskPainterCommand & QskPainterCommand::operator= ( const QskPainterCommand other)

Definition at line 104 of file QskPainterCommand.cpp.

◆ operator==()

bool QskPainterCommand::operator== ( const QskPainterCommand other) const
noexcept

Definition at line 112 of file QskPainterCommand.cpp.

◆ path() [1/2]

const QPainterPath * QskPainterCommand::path ( ) const
inlinenoexcept
Returns
Painter path to be painted

Definition at line 147 of file QskPainterCommand.h.

◆ path() [2/2]

QPainterPath * QskPainterCommand::path ( )
noexcept

Definition at line 291 of file QskPainterCommand.cpp.

◆ pixmapData() [1/2]

const QskPainterCommand::PixmapData * QskPainterCommand::pixmapData ( ) const
inlinenoexcept
Returns
Attributes how to paint a QPixmap

Definition at line 154 of file QskPainterCommand.h.

◆ pixmapData() [2/2]

QskPainterCommand::PixmapData * QskPainterCommand::pixmapData ( )
noexcept

Definition at line 296 of file QskPainterCommand.cpp.

◆ stateData() [1/2]

const QskPainterCommand::StateData * QskPainterCommand::stateData ( ) const
inlinenoexcept
Returns
Attributes of a state change

Definition at line 168 of file QskPainterCommand.h.

◆ stateData() [2/2]

QskPainterCommand::StateData * QskPainterCommand::stateData ( )
noexcept

Definition at line 306 of file QskPainterCommand.cpp.

◆ type()

QskPainterCommand::Type QskPainterCommand::type ( ) const
inlinenoexcept
Returns
Type of the command

Definition at line 141 of file QskPainterCommand.h.

Member Data Documentation

◆ m_imageData

ImageData* QskPainterCommand::m_imageData

Definition at line 124 of file QskPainterCommand.h.

◆ m_path

QPainterPath* QskPainterCommand::m_path

Definition at line 122 of file QskPainterCommand.h.

◆ m_pixmapData

PixmapData* QskPainterCommand::m_pixmapData

Definition at line 123 of file QskPainterCommand.h.

◆ m_stateData

StateData* QskPainterCommand::m_stateData

Definition at line 125 of file QskPainterCommand.h.