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

Public Member Functions

 VCommentDiagramShape (Visualization::Item *parent, NodeType *node, const StyleType *style=itemStyles().get())
 
VCommentDiagramdiagram ()
 
VCommentDiagramResizeRect hitsResizeRects (QPoint pos) const
 

Protected Member Functions

virtual void determineChildren () override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Private Member Functions

const std::array< const QRect, 4 > resizeRects () const
 

Private Attributes

QColor fillColor_
 
QColor outlineColor_
 
int outlineSize_ {}
 
Qt::PenStyle outlineType_ {}
 
VCommentTexttext_ {}
 
QColor textColor_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ VCommentDiagramShape()

Comments::VCommentDiagramShape::VCommentDiagramShape ( Visualization::Item parent,
NodeType *  node,
const StyleType *  style = itemStyles().get() 
)

Member Function Documentation

◆ determineChildren()

void Comments::VCommentDiagramShape::determineChildren ( )
overrideprotectedvirtual

◆ diagram()

VCommentDiagram * Comments::VCommentDiagramShape::diagram ( )

◆ hitsResizeRects()

VCommentDiagramResizeRect Comments::VCommentDiagramShape::hitsResizeRects ( QPoint  pos) const

◆ paint()

void Comments::VCommentDiagramShape::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overrideprotected

◆ resizeRects()

const std::array< const QRect, 4 > Comments::VCommentDiagramShape::resizeRects ( ) const
inlineprivate

◆ updateGeometry()

void Comments::VCommentDiagramShape::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

Member Data Documentation

◆ fillColor_

QColor Comments::VCommentDiagramShape::fillColor_
private

◆ outlineColor_

QColor Comments::VCommentDiagramShape::outlineColor_
private

◆ outlineSize_

int Comments::VCommentDiagramShape::outlineSize_ {}
private

◆ outlineType_

Qt::PenStyle Comments::VCommentDiagramShape::outlineType_ {}
private

◆ text_

VCommentText* Comments::VCommentDiagramShape::text_ {}
private

◆ textColor_

QColor Comments::VCommentDiagramShape::textColor_
private