|
Robowflex
v0.1
Making MoveIt Easy
|
IMGUI widget to add interactive GUI elements programmatically. More...
#include <gui.h>
Inheritance diagram for robowflex::darts::WindowWidget:Public Member Functions | |
| WindowWidget () | |
| Constructor. More... | |
| void | render () override |
| Render GUI. More... | |
Element Addition | |
| void | addText (const std::string &text) |
| Add a new text element to the GUI. More... | |
| void | addCheckbox (const std::string &text, bool &boolean) |
| Add a new checkbox element to the GUI. More... | |
| void | addButton (const std::string &text, const ButtonCallback &callback) |
| Add a new button element to the GUI. More... | |
| void | addCallback (const RenderCallback &callback) |
| Add a generic render callback for the GUI. More... | |
| void | addElement (const ImGuiElementPtr &element) |
| Add a generic element to the GUI. More... | |
Public Member Functions inherited from robowflex::darts::Widget | |
| virtual void | initialize (Window *window) |
| Initialization with window context. More... | |
| virtual void | prerefresh () |
| Called before window refresh. More... | |
Private Attributes | |
| std::vector< ImGuiElementPtr > | elements_ |
| GUI elements. More... | |
IMGUI widget to add interactive GUI elements programmatically.
| void WindowWidget::addButton | ( | const std::string & | text, |
| const ButtonCallback & | callback | ||
| ) |
Add a new button element to the GUI.
| [in] | text | Text to display on the button. |
| [in] | callback | Callback upon button press. |
Definition at line 388 of file gui.cpp.
| void WindowWidget::addCallback | ( | const RenderCallback & | callback | ) |
Add a generic render callback for the GUI.
| [in] | callback | Callback to render. |
| void WindowWidget::addCheckbox | ( | const std::string & | text, |
| bool & | boolean | ||
| ) |
Add a new checkbox element to the GUI.
| [in] | text | Text to display on checkbox. |
| [in] | boolean | Boolean to modify upon checkbox change. |
| void WindowWidget::addElement | ( | const ImGuiElementPtr & | element | ) |
| void WindowWidget::addText | ( | const std::string & | text | ) |
Add a new text element to the GUI.
| [in] | text | Text to display. |
|
private |