Cutelee  6.1.0
Public Slots | Public Member Functions | List of all members
ScriptableNode Class Reference
Inheritance diagram for ScriptableNode:
Inheritance graph
[legend]

Public Slots

void setNodeList (const QString &name, const QList< QObject * > &)
 

Public Member Functions

 ScriptableNode (QObject *parent={})
 
QJSEngine * engine ()
 
void init (const QJSValue &concreteNode, const QJSValue &renderMethod)
 
void render (OutputStream *stream, Context *c) const override
 
void setScriptEngine (QJSEngine *engine)
 
- 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 38 of file scriptablenode.h.

Member Function Documentation

◆ render()

void ScriptableNode::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 49 of file scriptablenode.cpp.