MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / DataTypeFormatString

Function DataTypeFormatString

libs/imgui/imgui.cpp:7014–7020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7012}
7013
7014static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, const char* display_format, char* buf, int buf_size)
7015{
7016 if (data_type == ImGuiDataType_Int)
7017 ImFormatString(buf, buf_size, display_format, *(int*)data_ptr);
7018 else if (data_type == ImGuiDataType_Float)
7019 ImFormatString(buf, buf_size, display_format, *(float*)data_ptr);
7020}
7021
7022static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, int decimal_precision, char* buf, int buf_size)
7023{

Callers 2

InputScalarExMethod · 0.85

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected