0.2.0
|
Position Input GUI widgets. More...
Go to the source code of this file.
Classes | |
struct | NAV::gui::widgets::PositionWithFrame |
Position with Reference frame, used for GUI input. More... | |
Typedefs | |
using | json |
json namespace | |
Enumerations | |
enum class | NAV::gui::widgets::PositionInputLayout { SINGLE_COLUMN , SINGLE_ROW , TWO_ROWS } |
Layout options for the Position input. More... | |
Functions | |
void | NAV::gui::widgets::from_json (const json &j, PositionWithFrame &position) |
Converts the provided json object. | |
void | NAV::gui::widgets::from_json (const json &j, PositionWithFrame::ReferenceFrame &refFrame) |
Converts the provided json object. | |
bool | NAV::gui::widgets::PositionInput (const char *str, PositionWithFrame &position, PositionInputLayout layout=PositionInputLayout::SINGLE_COLUMN, float itemWidth=140.0F) |
Inputs to edit an Position object. | |
void | NAV::gui::widgets::to_json (json &j, const PositionWithFrame &position) |
Converts the provided Object into a json object. | |
void | NAV::gui::widgets::to_json (json &j, const PositionWithFrame::ReferenceFrame &refFrame) |
Converts the provided Object into a json object. | |
const char * | NAV::to_string (gui::widgets::PositionWithFrame::ReferenceFrame refFrame) |
Converts the enum to a string. | |
Position Input GUI widgets.
|
strong |
void NAV::gui::widgets::from_json | ( | const json & | j, |
PositionWithFrame & | position ) |
Converts the provided json object.
[in] | j | Json object with the time system |
[out] | position | Object to return |
void NAV::gui::widgets::from_json | ( | const json & | j, |
PositionWithFrame::ReferenceFrame & | refFrame ) |
Converts the provided json object.
[in] | j | Json object with the time system |
[out] | refFrame | Object to return |
bool NAV::gui::widgets::PositionInput | ( | const char * | str, |
PositionWithFrame & | position, | ||
PositionInputLayout | layout = PositionInputLayout::SINGLE_COLUMN, | ||
float | itemWidth = 140.0F ) |
Inputs to edit an Position object.
[in] | str | Text to display near the Frame selection (Unique id for the ImGui elements) |
[in,out] | position | Position and reference frame object to modify |
[in] | layout | Layout to use |
[in] | itemWidth | Width of the widget items |
void NAV::gui::widgets::to_json | ( | json & | j, |
const PositionWithFrame & | position ) |
Converts the provided Object into a json object.
[out] | j | Return Json object |
[in] | position | Object to convert |
void NAV::gui::widgets::to_json | ( | json & | j, |
const PositionWithFrame::ReferenceFrame & | refFrame ) |
Converts the provided Object into a json object.
[out] | j | Return Json object |
[in] | refFrame | Object to convert |
const char * NAV::to_string | ( | gui::widgets::PositionWithFrame::ReferenceFrame | refFrame | ) |
Converts the enum to a string.
[in] | refFrame | Enum value to convert into text |