scenepic 1.1.0
3D Visualization Made Easy
|
Represents a ScenePic TextPanel UI component. More...
#include <text_panel.h>
Public Member Functions | |
TextPanel & | title (const std::string &title) |
The title of the text panel. More... | |
const std::string & | title () const |
The title of the text panel. More... | |
TextPanel & | text (const std::string &text) |
The text within the text panel. More... | |
const std::string & | text () const |
The text within the text panel. More... | |
TextPanel & | input_text (const std::string &text) |
Sets the text inside the optional input box. More... | |
const std::string & | input_text () const |
Sets the text inside the optional input box. More... | |
std::string | to_string () const |
Return a JSON string representing the object. More... | |
JsonValue | to_json () const |
Convert this object into ScenePic json. More... | |
void | clear_script () |
Call this if you are dumping a ScenePic script in multiple parts, e.g. More... | |
Friends | |
class | Scene |
Represents a ScenePic TextPanel UI component.
void scenepic::TextPanel::clear_script | ( | ) |
Call this if you are dumping a ScenePic script in multiple parts, e.g.
for client-server interactions, or when chunking a large visualization into multiple files.
const std::string & scenepic::TextPanel::input_text | ( | ) | const |
Sets the text inside the optional input box.
TextPanel & scenepic::TextPanel::input_text | ( | const std::string & | text | ) |
Sets the text inside the optional input box.
const std::string & scenepic::TextPanel::text | ( | ) | const |
The text within the text panel.
TextPanel & scenepic::TextPanel::text | ( | const std::string & | text | ) |
The text within the text panel.
const std::string & scenepic::TextPanel::title | ( | ) | const |
The title of the text panel.
TextPanel & scenepic::TextPanel::title | ( | const std::string & | title | ) |
The title of the text panel.
JsonValue scenepic::TextPanel::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::TextPanel::to_string | ( | ) | const |
Return a JSON string representing the object.
|
friend |