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

Public Member Functions

virtual ~SVGIconStyle () override
 
virtual void load (StyleLoader &sl) override
 
void paint (QPainter *painter, int x, int y) const
 
void paint (QPainter *painter, int x, int y, QSize size) const
 

Public Attributes

Property< QString > filename {this, "filename"}
 
Property< int > height {this, "height"}
 
Property< bool > stretchable {this, "stretchable"}
 
Property< int > width {this, "width"}
 

Private Member Functions

bool drawScaledPixmapInMipmap (qreal scaleFactor) const
 Returns true if the pixmap was created or false if it was too small and not added. More...
 

Private Attributes

Mipmap mipmap_
 
QSvgRenderer renderer_
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~SVGIconStyle()

Visualization::SVGIconStyle::~SVGIconStyle ( )
overridevirtual

Member Function Documentation

◆ drawScaledPixmapInMipmap()

bool Visualization::SVGIconStyle::drawScaledPixmapInMipmap ( qreal  scaleFactor) const
private

Returns true if the pixmap was created or false if it was too small and not added.

◆ load()

void Visualization::SVGIconStyle::load ( StyleLoader sl)
overridevirtual

◆ paint() [1/2]

void Visualization::SVGIconStyle::paint ( QPainter *  painter,
int  x,
int  y 
) const

◆ paint() [2/2]

void Visualization::SVGIconStyle::paint ( QPainter *  painter,
int  x,
int  y,
QSize  size 
) const

Member Data Documentation

◆ filename

Property<QString> Visualization::SVGIconStyle::filename {this, "filename"}

◆ height

Property<int> Visualization::SVGIconStyle::height {this, "height"}

◆ mipmap_

Mipmap Visualization::SVGIconStyle::mipmap_
mutableprivate

◆ renderer_

QSvgRenderer Visualization::SVGIconStyle::renderer_
mutableprivate

◆ stretchable

Property<bool> Visualization::SVGIconStyle::stretchable {this, "stretchable"}

◆ width

Property<int> Visualization::SVGIconStyle::width {this, "width"}