4#ifndef _SCENEPIC_TEXT_PANEL_H_
5#define _SCENEPIC_TEXT_PANEL_H_
21 const std::string&
title()
const;
27 const std::string&
text()
const;
53 TextPanel(
const std::string& text_panel_id);
55 std::string m_text_panel_id;
58 std::string m_input_text;
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Top level container representing an entire ScenePic.
Definition: scene.h:58
Represents a ScenePic TextPanel UI component.
Definition: text_panel.h:15
TextPanel & input_text(const std::string &text)
Sets the text inside the optional input box.
TextPanel & text(const std::string &text)
The text within the text panel.
const std::string & input_text() const
Sets the text inside the optional input box.
TextPanel & title(const std::string &title)
The title of the text panel.
JsonValue to_json() const
Convert this object into ScenePic json.
std::string to_string() const
Return a JSON string representing the object.
const std::string & title() const
The title of the text panel.
void clear_script()
Call this if you are dumping a ScenePic script in multiple parts, e.g.
const std::string & text() const
The text within the text panel.
Definition: audio_track.h:14