#include <RadioButton.h>
◆ Type
VERT radio buttons will be layout vertically, each item takes a line. HORIZ radio buttons will be layout horizontally, all items will be in the same line.
◆ RadioButton()
| cloudViewer::visualization::gui::RadioButton::RadioButton |
( |
Type |
type | ) |
|
|
explicit |
◆ ~RadioButton()
| cloudViewer::visualization::gui::RadioButton::~RadioButton |
( |
| ) |
|
|
overridedefault |
◆ CalcPreferredSize()
| Size cloudViewer::visualization::gui::RadioButton::CalcPreferredSize |
( |
const LayoutContext & |
context, |
|
|
const Constraints & |
constraints |
|
) |
| const |
|
overridevirtual |
◆ Draw()
Draws the widget. If this is a Dear ImGUI widget, this is where the actual event processing happens. Return NONE if no action needs to be taken, REDRAW if the widget needs to be redrawn (e.g. its value changed), and RELAYOUT if the widget wishes to change size.
Reimplemented from cloudViewer::visualization::gui::Widget.
References cloudViewer::visualization::gui::colorToImgui(), context, cloudViewer::visualization::gui::Widget::DrawImGuiPopEnabledState(), cloudViewer::visualization::gui::Widget::DrawImGuiPushEnabledState(), float, frame, cloudViewer::visualization::gui::Widget::GetFrame(), cloudViewer::visualization::gui::Widget::NONE, cloudViewer::visualization::gui::Widget::REDRAW, result, and width.
◆ GetSelectedIndex()
| int cloudViewer::visualization::gui::RadioButton::GetSelectedIndex |
( |
| ) |
const |
◆ GetSelectedValue()
| const char * cloudViewer::visualization::gui::RadioButton::GetSelectedValue |
( |
| ) |
const |
◆ SetItems()
| void cloudViewer::visualization::gui::RadioButton::SetItems |
( |
const std::vector< std::string > & |
items | ) |
|
◆ SetOnSelectionChanged()
| void cloudViewer::visualization::gui::RadioButton::SetOnSelectionChanged |
( |
std::function< void(int)> |
callback | ) |
|
callback to be invoked while selected index is changed. A SetSelectedIndex will not trigger this callback.
References callback.
◆ SetSelectedIndex()
| void cloudViewer::visualization::gui::RadioButton::SetSelectedIndex |
( |
int |
index | ) |
|
The documentation for this class was generated from the following files: