A component that can be populated with GUI elements by a script. More...
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 JavascriptProcessor * | getScriptProcessor () 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... | |
A component that can be populated with GUI elements by a script.
Creates a new Content which acts as container for all scripted elements.
|
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().
|
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.
|
inline |
returns the script name that was set with Content.setName().
|
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.