Envision
A visual programming IDE for object-oriented languages
|
A stretchable item which is empty and can be used to draw a shape. More...
Public Types | |
typedef ItemStyle | StyleType |
Public Member Functions | |
EmptyItem (Item *parent, const StyleType *style=itemStyles().get()) | |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
virtual Visualization::InteractionHandler * | handler () const override |
void | setCustomSize (int width, int height) |
Sets a custom size for this empty item. More... | |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
virtual bool | sizeDependsOnParent () const override |
Returns true, unless setCustomSize() has been called. More... | |
const StyleType * | style () const |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static Visualization::StyleSet< EmptyItem > & | 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 | hasCustomSize_ {} |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
A stretchable item which is empty and can be used to draw a shape.
Visualization::EmptyItem::EmptyItem | ( | Item * | parent, |
const StyleType * | style = itemStyles().get() |
||
) |
|
static |
|
overridevirtual |
|
inlinestatic |
|
overrideprotectedvirtual |
|
overridevirtual |
|
static |
|
static |
void Visualization::EmptyItem::setCustomSize | ( | int | width, |
int | height | ||
) |
Sets a custom size for this empty item.
If a size is set, this item will use it and will no longer stretch to fill any available space.
|
inlinestatic |
|
overridevirtual |
|
overridevirtual |
Returns true, unless setCustomSize() has been called.
|
staticprivate |
|
inline |
|
overrideprotectedvirtual |
|
staticprivate |
|
private |