MCPcopy Create free account
hub / github.com/SatDump/SatDump / GetDateTimeWidth

Function GetDateTimeWidth

src-core/imgui/implot/implot.cpp:1156–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156inline float GetDateTimeWidth(ImPlotDateTimeSpec fmt) {
1157 static const ImPlotTime t_max_width = MakeTime(2888, 12, 22, 12, 58, 58, 888888); // best guess at time that maximizes pixel width
1158 char buffer[32];
1159 FormatDateTime(t_max_width, buffer, 32, fmt);
1160 return ImGui::CalcTextSize(buffer).x;
1161}
1162
1163inline bool TimeLabelSame(const char* l1, const char* l2) {
1164 size_t len1 = strlen(l1);

Callers 1

Locator_TimeFunction · 0.85

Calls 2

MakeTimeFunction · 0.85
FormatDateTimeFunction · 0.85

Tested by

no test coverage detected