Cutelee 6.1.0
WidthRatioNode Class Reference
Inheritance diagram for WidthRatioNode:

Public Member Functions

 WidthRatioNode (const FilterExpression &valExpr, const FilterExpression &maxExpr, const FilterExpression &maxWidth, QObject *parent={})
void render (OutputStream *stream, Context *c) const override
Public Member Functions inherited from Cutelee::Node
 Node (QObject *parent={})
 ~Node () override

Additional Inherited Members

Protected Member Functions inherited from Cutelee::Node
TemplateImpl * containerTemplate () const
void streamValueInContext (OutputStream *stream, const QVariant &input, Cutelee::Context *c) const

Detailed Description

Definition at line 37 of file widthratio.h.

Constructor & Destructor Documentation

◆ WidthRatioNode()

WidthRatioNode::WidthRatioNode ( const FilterExpression & valExpr,
const FilterExpression & maxExpr,
const FilterExpression & maxWidth,
QObject * parent = {} )

Definition at line 43 of file widthratio.cpp.

Member Function Documentation

◆ render()

void WidthRatioNode::render ( OutputStream * stream,
Context * c ) const
overridevirtual

Reimplement this to render the template in the Context c.

This will also involve calling render on and child nodes.

Implements Cutelee::Node.

Definition at line 62 of file widthratio.cpp.

References Cutelee::FilterExpression::resolve().