Public Member Functions | List of all members
ScriptContentComponent Class Reference

A component that can be populated with GUI elements by a script. More...

Inheritance diagram for ScriptContentComponent:
SafeChangeListener GlobalScriptCompileListener AsyncValueTreePropertyListener

Public Member Functions

bool contentValid () const
 Checks if the content is valid (recompiling the script invalidates it. More...
 
Colour getContentColour ()
 returns the colour which can be set with ScriptingApi::Content::setColour(). More...
 
int getContentHeight () const
 Returns the height of the component. More...
 
String getScriptName () const
 returns the script name that was set with Content.setName(). More...
 
const JavascriptProcessorgetScriptProcessor () const
 Returns the ScriptBaseProcessor associated with this Component. More...
 
 ScriptContentComponent (ProcessorWithScriptingContent *p)
 Creates a new Content which acts as container for all scripted elements. More...
 
void setNewContent (ScriptingApi::Content *c)
 Recreates all components based on the supplied Content object and restores its values. More...
 

Detailed Description

A component that can be populated with GUI elements by a script.

Constructor & Destructor Documentation

Creates a new Content which acts as container for all scripted elements.

Member Function Documentation

bool contentValid ( ) const
inline

Checks if the content is valid (recompiling the script invalidates it.

Colour getContentColour ( )

returns the colour which can be set with ScriptingApi::Content::setColour().

int getContentHeight ( ) const
inline

Returns the height of the component.

It does not simply call Component::getHeight(), but checks the underlying ScriptingApi::Content object for its height property.

String getScriptName ( ) const
inline

returns the script name that was set with Content.setName().

const JavascriptProcessor* getScriptProcessor ( ) const
inline

Returns the ScriptBaseProcessor associated with this Component.

If it is not a ScriptProcessor or was deleted, it returns nullptr.

void setNewContent ( ScriptingApi::Content c)

Recreates all components based on the supplied Content object and restores its values.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.