Envision
A visual programming IDE for object-oriented languages
|
This class can be used to display nodes with their default style, but wrapped in an item, which can be given an ItemStyle. More...
Public Types | |
typedef ItemStyle | StyleType |
Public Member Functions | |
NodeWrapper (Item *parent, NodeType *node, const StyleType *style=itemStyles().get()) | |
virtual | ~NodeWrapper () |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
virtual Visualization::InteractionHandler * | handler () const override |
virtual bool | hasNode () const override |
virtual bool | isEmpty () const override |
void | refreshWrappedItem () |
void | setStretchable (bool stretchable) |
Sets if the item is a special stretchable item. More... | |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
virtual bool | sizeDependsOnParent () const override |
const StyleType * | style () const |
Item * | wrappedItem () const |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static Visualization::StyleSet< NodeWrapper > & | itemStyles () |
static bool | removeAddOn (Visualization::VisualizationAddOn *addOn) |
static void | setDefaultClassHandler (Visualization::InteractionHandler *handler) |
Protected Member Functions | |
virtual void | determineChildren () override |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Static Private Member Functions | |
static QList< Visualization::VisualizationAddOn * > & | staticAddOns () |
Private Attributes | |
bool | stretchable_ {false} |
Item * | wrappedItem_ {} |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
This class can be used to display nodes with their default style, but wrapped in an item, which can be given an ItemStyle.
This is useful, e.g. to give the node a background shape.
Visualization::NodeWrapper::NodeWrapper | ( | Item * | parent, |
NodeType * | node, | ||
const StyleType * | style = itemStyles().get() |
||
) |
|
virtual |
|
static |
|
overridevirtual |
|
inlinestatic |
|
overrideprotectedvirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
static |
void Visualization::NodeWrapper::refreshWrappedItem | ( | ) |
|
static |
|
inlinestatic |
|
inline |
Sets if the item is a special stretchable item.
This means if its node is nullptr, it is not empty and stretches as far as it has space to.
|
overridevirtual |
|
overridevirtual |
|
staticprivate |
|
inline |
|
overrideprotectedvirtual |
|
inline |
|
staticprivate |
|
private |
|
private |