packages feed

dear-imgui-raw-knobs-1.0.0: cbits/dcimgui_knobs.h

// THIS FILE HAS BEEN AUTO-GENERATED BY THE 'DEAR BINDINGS' GENERATOR.
// **DO NOT EDIT DIRECTLY**
// https://github.com/dearimgui/dear_bindings

#pragma once

#ifdef __cplusplus
extern "C"
{
#endif
// ImDrawIdx: vertex index. [Compile-time configurable type]
// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended).
// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file.
#ifndef ImDrawIdx
typedef unsigned short ImDrawIdx;  // Default: 16-bit (for maximum compatibility with renderer backends)
#endif // #ifndef ImDrawIdx

#include "dcimgui.h"
typedef int ImGuiKnobFlags;

typedef enum
{
    ImGuiKnobFlags_NoTitle        = 1<<0,
    ImGuiKnobFlags_NoInput        = 1<<1,
    ImGuiKnobFlags_ValueTooltip   = 1<<2,
    ImGuiKnobFlags_DragHorizontal = 1<<3,
    ImGuiKnobFlags_DragVertical   = 1<<4,
    ImGuiKnobFlags_Logarithmic    = 1<<5,
    ImGuiKnobFlags_AlwaysClamp    = 1<<6,
} ImGuiKnobFlags_;

typedef int ImGuiKnobVariant;

typedef enum
{
    ImGuiKnobVariant_Tick      = 1<<0,
    ImGuiKnobVariant_Dot       = 1<<1,
    ImGuiKnobVariant_Wiper     = 1<<2,
    ImGuiKnobVariant_WiperOnly = 1<<3,
    ImGuiKnobVariant_WiperDot  = 1<<4,
    ImGuiKnobVariant_Stepped   = 1<<5,
    ImGuiKnobVariant_Space     = 1<<6,
} ImGuiKnobVariant_;

CIMGUI_API bool ImGuiKnobsKnob(const char* label, float* p_value, float v_min, float v_max, float speed /* = 0 */, const char* format /* = "%.3f" */, ImGuiKnobVariant variant /* = ImGuiKnobVariant_Tick */, float size /* = 0 */, ImGuiKnobFlags flags /* = 0 */, int steps /* = 10 */, float angle_min /* = -1 */, float angle_max /* = -1 */);
CIMGUI_API bool ImGuiKnobsKnobInt(const char* label, int* p_value, int v_min, int v_max, float speed /* = 0 */, const char* format /* = "%i" */, ImGuiKnobVariant variant /* = ImGuiKnobVariant_Tick */, float size /* = 0 */, ImGuiKnobFlags flags /* = 0 */, int steps /* = 10 */, float angle_min /* = -1 */, float angle_max /* = -1 */);
#ifdef __cplusplus
} // End of extern "C" block
#endif