|
scenepic 1.1.0
3D Visualization Made Easy
|
Represents a ScenePic DropDownMenu UI component. More...
#include <drop_down_menu.h>
Public Member Functions | |
| DropDownMenu & | title (const std::string &title) |
| The title of the menu. More... | |
| const std::string & | title () const |
| The title of the menu. More... | |
| DropDownMenu & | items (const std::vector< std::string > &items) |
| The option items displayed in the drop down. More... | |
| const std::vector< std::string > & | items () const |
| The option items displayed in the drop down. More... | |
| std::vector< std::string > & | items () |
| The option items displayed in the drop down. More... | |
| DropDownMenu & | selection (int index) |
| The current selection index. More... | |
| int | selection () const |
| The current selection index. More... | |
| void | set_disabled (int index, bool disabled) |
| Flip a bit determining whether an index is disabled. 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 DropDownMenu UI component.
| void scenepic::DropDownMenu::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.
| std::vector< std::string > & scenepic::DropDownMenu::items | ( | ) |
The option items displayed in the drop down.
| const std::vector< std::string > & scenepic::DropDownMenu::items | ( | ) | const |
The option items displayed in the drop down.
| DropDownMenu & scenepic::DropDownMenu::items | ( | const std::vector< std::string > & | items | ) |
The option items displayed in the drop down.
| int scenepic::DropDownMenu::selection | ( | ) | const |
The current selection index.
| DropDownMenu & scenepic::DropDownMenu::selection | ( | int | index | ) |
The current selection index.
| void scenepic::DropDownMenu::set_disabled | ( | int | index, |
| bool | disabled | ||
| ) |
Flip a bit determining whether an index is disabled.
| const std::string & scenepic::DropDownMenu::title | ( | ) | const |
The title of the menu.
| DropDownMenu & scenepic::DropDownMenu::title | ( | const std::string & | title | ) |
The title of the menu.
| JsonValue scenepic::DropDownMenu::to_json | ( | ) | const |
Convert this object into ScenePic json.
| std::string scenepic::DropDownMenu::to_string | ( | ) | const |
Return a JSON string representing the object.
|
friend |