MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / GetDateTimeWidth

Function GetDateTimeWidth

Source/3rdParty/implot/implot.cpp:1194–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1192}
1193
1194inline float GetDateTimeWidth(ImPlotDateTimeSpec fmt) {
1195 static const ImPlotTime t_max_width = MakeTime(2888, 12, 22, 12, 58, 58, 888888); // best guess at time that maximizes pixel width
1196 char buffer[32];
1197 FormatDateTime(t_max_width, buffer, 32, fmt);
1198 return ImGui::CalcTextSize(buffer).x;
1199}
1200
1201inline bool TimeLabelSame(const char* l1, const char* l2) {
1202 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