Program Listing for File imgui_extensions.cpp

Return to documentation for file (blam\components\3rdparty\imgui_extensions.cpp)

#include "imgui_extensions.h"

bool ImGui::DragShort(const char* label, short* v, float v_speed, short v_min, short v_max, const char* format)
{
    return DragScalar(label, ImGuiDataType_S16, v, v_speed, &v_min, &v_max, format);
}

bool ImGui::DragShort2(const char* label, short v[2], float v_speed, short v_min, short v_max, const char* format)
{
    return DragScalarN(label, ImGuiDataType_S16, v, 2, v_speed, &v_min, &v_max, format);
}

bool ImGui::DragShort3(const char* label, short v[3], float v_speed, short v_min, short v_max, const char* format)
{
    return DragScalarN(label, ImGuiDataType_S16, v, 3, v_speed, &v_min, &v_max, format);
}

bool ImGui::DragShort4(const char* label, short v[4], float v_speed, short v_min, short v_max, const char* format)
{
    return DragScalarN(label, ImGuiDataType_S16, v, 4, v_speed, &v_min, &v_max, format);
}