HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_AutoPaintStateBlock Class Reference

#include <RE_WindowDrawable.h>

Public Member Functions

 RE_AutoPaintStateBlock (RE_Render *r)
 
 ~RE_AutoPaintStateBlock ()
 
RE_AutoPaintStateBlockoperator= (const RE_AutoPaintStateBlock &src)=delete
 
RE_WindowDrawablePaintStatepaintState ()
 Return the underlying paint state. More...
 
RE_WindowDrawablePainterpainter () const
 Convenience method to access the paint state's painter. More...
 
const UT_DimRectpaintArea () const
 Convenience method to access the paint state's paint area. More...
 
void toPainterPosition (int &x, int &y, int w=0, int h=0) const
 
void toUIPosition (int &x, int &y, int w=0, int h=0) const
 

Detailed Description

Construct at the beginning of a painting code block to switch to QPainter painting mode. If there is no active paint state, then begin a new paint session to create an active paint state.

Definition at line 146 of file RE_WindowDrawable.h.

Constructor & Destructor Documentation

RE_AutoPaintStateBlock::RE_AutoPaintStateBlock ( RE_Render r)
RE_AutoPaintStateBlock::~RE_AutoPaintStateBlock ( )

Member Function Documentation

RE_AutoPaintStateBlock& RE_AutoPaintStateBlock::operator= ( const RE_AutoPaintStateBlock src)
delete
const UT_DimRect& RE_AutoPaintStateBlock::paintArea ( ) const
inline

Convenience method to access the paint state's paint area.

Definition at line 164 of file RE_WindowDrawable.h.

RE_WindowDrawablePainter* RE_AutoPaintStateBlock::painter ( ) const
inline

Convenience method to access the paint state's painter.

Definition at line 160 of file RE_WindowDrawable.h.

RE_WindowDrawablePaintState* RE_AutoPaintStateBlock::paintState ( )
inline

Return the underlying paint state.

Definition at line 156 of file RE_WindowDrawable.h.

void RE_AutoPaintStateBlock::toPainterPosition ( int x,
int y,
int  w = 0,
int  h = 0 
) const
inline

Convenience method to call the paint state's toPainterPosition() method.

Definition at line 169 of file RE_WindowDrawable.h.

void RE_AutoPaintStateBlock::toUIPosition ( int x,
int y,
int  w = 0,
int  h = 0 
) const
inline

Convenience method to call the paint state's toUIPosition() method.

Definition at line 174 of file RE_WindowDrawable.h.


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