0.2.0
Loading...
Searching...
No Matches
TimeEdit.hpp File Reference

Widget to modify time point values. More...

Go to the source code of this file.

Classes

struct  NAV::gui::widgets::TimeEditFormat
 Time Edit format and system. More...
 

Typedefs

using json
 json namespace
 

Functions

void NAV::gui::widgets::from_json (const json &j, TimeEditFormat &timeEditFormat)
 Converts the provided json object.
 
bool NAV::gui::widgets::TimeEdit (const char *str_id, InsTime &insTime, TimeEditFormat &timeEditFormat, float itemWidth=170.0F)
 Inputs to edit an InsTime object.
 
void NAV::gui::widgets::to_json (json &j, const TimeEditFormat &timeEditFormat)
 Converts the provided Object into a json object.
 
const char * NAV::to_string (gui::widgets::TimeEditFormat::Format timeEditFormat)
 Converts the enum to a string.
 

Detailed Description

Widget to modify time point values.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2021-11-23

Function Documentation

◆ from_json()

void NAV::gui::widgets::from_json ( const json & j,
TimeEditFormat & timeEditFormat )

Converts the provided json object.

Parameters
[in]jJson object with the time system
[out]timeEditFormatObject to return

◆ TimeEdit()

bool NAV::gui::widgets::TimeEdit ( const char * str_id,
InsTime & insTime,
TimeEditFormat & timeEditFormat,
float itemWidth = 170.0F )

Inputs to edit an InsTime object.

Parameters
[in]str_idUnique id for the ImGui elements
[in,out]insTimeTime object to modify
[in,out]timeEditFormatFormat to modify the time in
[in]itemWidthWidth of the widget items
Returns
True if changes were made to the object

◆ to_json()

void NAV::gui::widgets::to_json ( json & j,
const TimeEditFormat & timeEditFormat )

Converts the provided Object into a json object.

Parameters
[out]jReturn Json object
[in]timeEditFormatObject to convert

◆ to_string()

const char * NAV::to_string ( gui::widgets::TimeEditFormat::Format timeEditFormat)

Converts the enum to a string.

Parameters
[in]timeEditFormatEnum value to convert into text
Returns
String representation of the enum