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

Public Types

typedef BoxStyle StyleType
 

Public Member Functions

 Box (Item *parent, StyleType *style=itemStyles().get())
 
virtual int contentLeft () override
 
virtual QRect contentRect () override
 
virtual int contentTop () override
 
virtual QSize innerSize (QSize outerSize) const override
 
virtual QSize outerSize (QSize innerSize) const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void setStyle (const Visualization::ShapeStyle *shapeStyle) override
 
const StyleTypestyle () const
 
virtual void update () override
 

Static Public Member Functions

static StyleSet< Box > & itemStyles ()
 

Protected Attributes

int outerHeight_ {}
 
int outerWidth_ {}
 

Private Member Functions

int contentToEdgeDistance () const
 

Additional Inherited Members

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

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ Box()

Visualization::Box::Box ( Item parent,
StyleType style = itemStyles().get() 
)

Member Function Documentation

◆ contentLeft()

int Visualization::Box::contentLeft ( )
overridevirtual

◆ contentRect()

QRect Visualization::Box::contentRect ( )
overridevirtual

◆ contentToEdgeDistance()

int Visualization::Box::contentToEdgeDistance ( ) const
private

◆ contentTop()

int Visualization::Box::contentTop ( )
overridevirtual

◆ innerSize()

QSize Visualization::Box::innerSize ( QSize  outerSize) const
overridevirtual

◆ itemStyles()

StyleSet< Box > & Visualization::Box::itemStyles ( )
static

◆ outerSize()

QSize Visualization::Box::outerSize ( QSize  innerSize) const
overridevirtual

◆ paint()

void Visualization::Box::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridevirtual

◆ setStyle()

void Visualization::Box::setStyle ( const Visualization::ShapeStyle shapeStyle)
overridevirtual

◆ style()

const StyleType* Visualization::Box::style ( ) const
inline

◆ update()

void Visualization::Box::update ( )
overridevirtual

Member Data Documentation

◆ outerHeight_

int Visualization::Box::outerHeight_ {}
protected

◆ outerWidth_

int Visualization::Box::outerWidth_ {}
protected