Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
Comments::VCommentFreeNode Class Reference

The VCommentFreeNode class offers the visualization of the CommentFreeNode class. More...

Inheritance diagram for Comments::VCommentFreeNode:
Core::Reflect< Base >

Public Member Functions

 VCommentFreeNode (Visualization::Item *parent, NodeType *node)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void setBlendEffect (bool enable)
 

Protected Member Functions

virtual void determineChildren () override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Private Attributes

QGraphicsColorizeEffect * anEffect_ {}
 
bool blendEnabled_ {true}
 
Visualization::Itemcontent_ {}
 

Additional Inherited Members

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

Detailed Description

The VCommentFreeNode class offers the visualization of the CommentFreeNode class.

It basically just visualizes the node holded by the CommentFreeNode, but adds a fading effect.

Constructor & Destructor Documentation

◆ VCommentFreeNode()

Comments::VCommentFreeNode::VCommentFreeNode ( Visualization::Item parent,
NodeType *  node 
)

Member Function Documentation

◆ determineChildren()

void Comments::VCommentFreeNode::determineChildren ( )
overrideprotectedvirtual

◆ paint()

void Comments::VCommentFreeNode::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridevirtual

◆ setBlendEffect()

void Comments::VCommentFreeNode::setBlendEffect ( bool  enable)

◆ updateGeometry()

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

Member Data Documentation

◆ anEffect_

QGraphicsColorizeEffect* Comments::VCommentFreeNode::anEffect_ {}
private

◆ blendEnabled_

bool Comments::VCommentFreeNode::blendEnabled_ {true}
private

◆ content_

Visualization::Item* Comments::VCommentFreeNode::content_ {}
private