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

Public Member Functions

virtual ~FrameStyle () override
 
virtual void load (StyleLoader &sl) override
 
void paint (QPainter *painter, int xOffset, int yOffset, int outerWidth, int outerHeight, QColor customColor) const
 

Public Attributes

Property< QBrush > bottomBrush {this, "bottomBrush"}
 
Property< int > bottomMargin {this, "bottomMargin"}
 
Property< int > bottomRightShadowWidth {this, "bottomRightShadowWidth"}
 
Property< int > bottomWidth {this, "bottomWidth"}
 
Property< QBrush > contentBrush {this, "contentBrush"}
 
Property< QBrush > leftBrush {this, "leftBrush"}
 
Property< int > leftMargin {this, "leftMargin"}
 
Property< int > leftWidth {this, "leftWidth"}
 
Property< QBrush > rightBrush {this, "rightBrush"}
 
Property< int > rightMargin {this, "rightMargin"}
 
Property< int > rightWidth {this, "rightWidth"}
 
Property< QColor > shadowStartColor {this, "shadowStartColor"}
 
Property< QColor > shadowStopColor {this, "shadowStopColor"}
 
Property< QBrush > topBrush {this, "topBrush"}
 
Property< int > topLeftShadowWidth {this, "topLeftShadowWidth"}
 
Property< int > topMargin {this, "topMargin"}
 
Property< int > topWidth {this, "topWidth"}
 

Private Member Functions

QColor shadowColorAt (qreal shadowWidth, qreal pixelswayFromFrame) const
 

Static Private Member Functions

static QColor colorNeededForBlending (QColor destinationColor, QColor desiredColor)
 

Private Attributes

std::vector< QColor > shadowGradient_
 Colors to use when painting the shadow. More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~FrameStyle()

Visualization::FrameStyle::~FrameStyle ( )
overridevirtual

Member Function Documentation

◆ colorNeededForBlending()

QColor Visualization::FrameStyle::colorNeededForBlending ( QColor  destinationColor,
QColor  desiredColor 
)
staticprivate

◆ load()

void Visualization::FrameStyle::load ( StyleLoader sl)
overridevirtual

◆ paint()

void Visualization::FrameStyle::paint ( QPainter *  painter,
int  xOffset,
int  yOffset,
int  outerWidth,
int  outerHeight,
QColor  customColor 
) const

◆ shadowColorAt()

QColor Visualization::FrameStyle::shadowColorAt ( qreal  shadowWidth,
qreal  pixelswayFromFrame 
) const
private

Member Data Documentation

◆ bottomBrush

Property<QBrush> Visualization::FrameStyle::bottomBrush {this, "bottomBrush"}

◆ bottomMargin

Property<int> Visualization::FrameStyle::bottomMargin {this, "bottomMargin"}

◆ bottomRightShadowWidth

Property<int> Visualization::FrameStyle::bottomRightShadowWidth {this, "bottomRightShadowWidth"}

◆ bottomWidth

Property<int> Visualization::FrameStyle::bottomWidth {this, "bottomWidth"}

◆ contentBrush

Property<QBrush> Visualization::FrameStyle::contentBrush {this, "contentBrush"}

◆ leftBrush

Property<QBrush> Visualization::FrameStyle::leftBrush {this, "leftBrush"}

◆ leftMargin

Property<int> Visualization::FrameStyle::leftMargin {this, "leftMargin"}

◆ leftWidth

Property<int> Visualization::FrameStyle::leftWidth {this, "leftWidth"}

◆ rightBrush

Property<QBrush> Visualization::FrameStyle::rightBrush {this, "rightBrush"}

◆ rightMargin

Property<int> Visualization::FrameStyle::rightMargin {this, "rightMargin"}

◆ rightWidth

Property<int> Visualization::FrameStyle::rightWidth {this, "rightWidth"}

◆ shadowGradient_

std::vector<QColor> Visualization::FrameStyle::shadowGradient_
private

Colors to use when painting the shadow.

◆ shadowStartColor

Property<QColor> Visualization::FrameStyle::shadowStartColor {this, "shadowStartColor"}

◆ shadowStopColor

Property<QColor> Visualization::FrameStyle::shadowStopColor {this, "shadowStopColor"}

◆ topBrush

Property<QBrush> Visualization::FrameStyle::topBrush {this, "topBrush"}

◆ topLeftShadowWidth

Property<int> Visualization::FrameStyle::topLeftShadowWidth {this, "topLeftShadowWidth"}

◆ topMargin

Property<int> Visualization::FrameStyle::topMargin {this, "topMargin"}

◆ topWidth

Property<int> Visualization::FrameStyle::topWidth {this, "topWidth"}