Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
Visualization::BoxStyle Class Reference
Inheritance diagram for Visualization::BoxStyle:
Core::Reflect< Base >

Public Types

enum class  CornerType : int { RightAngle , Round , Cut }
 

Public Member Functions

virtual ~BoxStyle () override
 
void paint (QPainter *painter, int xOffset, int yOffset, int contentBoxWidth, int contentBoxHeight, QColor customColor) const
 

Static Public Member Functions

static QBrush fixGradient (const QBrush &gradientBrush, int x, int y)
 

Public Attributes

Property< QBrush > background {this, "backgroundBrush"}
 
Property< CornerTypecorner {this, "cornerType"}
 
Property< int > cornerRadius {this, "cornerRadius"}
 

Protected Member Functions

QPainterPath getRectanglePath (qreal x, qreal y, int width, int height) const
 
void simplifiedPaint (QPainter *painter, int xOffset, int yOffset, int contentBoxWidth, int contentBoxHeight, QColor customColor) const
 
void unoptimizedPaint (QPainter *painter, int xOffset, int yOffset, int contentBoxWidth, int contentBoxHeight, QColor customColor) const
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Enumeration Documentation

◆ CornerType

Enumerator
RightAngle 
Round 
Cut 

Constructor & Destructor Documentation

◆ ~BoxStyle()

Visualization::BoxStyle::~BoxStyle ( )
overridevirtual

Member Function Documentation

◆ fixGradient()

QBrush Visualization::BoxStyle::fixGradient ( const QBrush &  gradientBrush,
int  x,
int  y 
)
inlinestatic

◆ getRectanglePath()

QPainterPath Visualization::BoxStyle::getRectanglePath ( qreal  x,
qreal  y,
int  width,
int  height 
) const
protected

◆ paint()

void Visualization::BoxStyle::paint ( QPainter *  painter,
int  xOffset,
int  yOffset,
int  contentBoxWidth,
int  contentBoxHeight,
QColor  customColor 
) const

◆ simplifiedPaint()

void Visualization::BoxStyle::simplifiedPaint ( QPainter *  painter,
int  xOffset,
int  yOffset,
int  contentBoxWidth,
int  contentBoxHeight,
QColor  customColor 
) const
protected

◆ unoptimizedPaint()

void Visualization::BoxStyle::unoptimizedPaint ( QPainter *  painter,
int  xOffset,
int  yOffset,
int  contentBoxWidth,
int  contentBoxHeight,
QColor  customColor 
) const
protected

Member Data Documentation

◆ background

Property<QBrush> Visualization::BoxStyle::background {this, "backgroundBrush"}

◆ corner

Property<CornerType> Visualization::BoxStyle::corner {this, "cornerType"}

◆ cornerRadius

Property<int> Visualization::BoxStyle::cornerRadius {this, "cornerRadius"}