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

Public Types

typedef SVGIconStyle StyleType
 

Public Member Functions

 SVGIcon (Item *parent, const QString &iconStyleName)
 
 SVGIcon (Item *parent, const SVGIconStyle *style=itemStyles().get())
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
virtual bool sizeDependsOnParent () const override
 
const StyleTypestyle () const
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static Visualization::StyleSet< SVGIcon > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Static Private Member Functions

static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

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

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ SVGIcon() [1/2]

Visualization::SVGIcon::SVGIcon ( Item parent,
const SVGIconStyle style = itemStyles().get() 
)

◆ SVGIcon() [2/2]

Visualization::SVGIcon::SVGIcon ( Item parent,
const QString &  iconStyleName 
)

Member Function Documentation

◆ addAddOn()

void Visualization::SVGIcon::addAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ addOns()

QList< Visualization::VisualizationAddOn * > Visualization::SVGIcon::addOns ( )
overridevirtual

◆ defaultClassHandler()

static Visualization::InteractionHandler* Visualization::SVGIcon::defaultClassHandler ( )
inlinestatic

◆ handler()

Visualization::InteractionHandler * Visualization::SVGIcon::handler ( ) const
overridevirtual

◆ itemStyles()

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

◆ paint()

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

◆ removeAddOn()

bool Visualization::SVGIcon::removeAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ setDefaultClassHandler()

static void Visualization::SVGIcon::setDefaultClassHandler ( Visualization::InteractionHandler handler)
inlinestatic

◆ setStyle()

void Visualization::SVGIcon::setStyle ( const Visualization::ItemStyle itemStyle)
overridevirtual

◆ sizeDependsOnParent()

bool Visualization::SVGIcon::sizeDependsOnParent ( ) const
overridevirtual

◆ staticAddOns()

QList< Visualization::VisualizationAddOn * > & Visualization::SVGIcon::staticAddOns ( )
staticprivate

◆ style()

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

◆ updateGeometry()

void Visualization::SVGIcon::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overridevirtual

Member Data Documentation

◆ defaultClassHandler_

Visualization::InteractionHandler * Visualization::SVGIcon::defaultClassHandler_ = nullptr
staticprivate