Skip to content

GUI

Classes

Name
structGUI::InputTextCallback_UserData

Functions

Name
boolButton(const char * id, bool disabled)
boolButtonWithCorners(const char * label, ImDrawFlags corners, const ImVec2 & size_arg)
boolButtonWithCornersEx(const char * label, ImDrawFlags corners, const ImVec2 & size_arg, ImGuiButtonFlags flags)
glm::vec2convertCoordinates(glm::vec2 position, glm::vec2 newOrigin)
voiddrawCross(glm::vec2 pos, ImDrawList * drawList, float thickness, float size, ImColor color)
voiddrawEllipse(float cx, float cy, float rx, float ry, int num_segments, ImDrawList * drawList, ImColor color, float thickness)
voidendVerticalAlign()
ImVec2floorImVec2(const ImVec2 & v)
ImVec2glmToIm(const glm::vec2 & v)
ImVec4glmToIm(const glm::vec4 & v)
glm::vec2imToGlm(const ImVec2 & v)
glm::vec4imToGlm(const ImVec4 & v)
boolInputText(const char * label, std::string * str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void * user_data)
intInputTextCallback(ImGuiInputTextCallbackData * data)
voidRenderFrameWithCorners(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding, ImDrawFlags corners)
voidstartVerticalAlign(float yOffset)
voidText(const char * text, EFont font)
voidText(const char * text, ImFont * font)
voidTextCentered(const char * text, ImRect rect, ImU32 col)
voidToggleButton(const char * label, bool & toggled, ImVec2 size)

Functions Documentation

function Button

cpp
bool Button(
    const char * id,
    bool disabled
)
bool Button(
    const char * id,
    bool disabled
)

function ButtonWithCorners

cpp
bool ButtonWithCorners(
    const char * label,
    ImDrawFlags corners,
    const ImVec2 & size_arg
)
bool ButtonWithCorners(
    const char * label,
    ImDrawFlags corners,
    const ImVec2 & size_arg
)

function ButtonWithCornersEx

cpp
bool ButtonWithCornersEx(
    const char * label,
    ImDrawFlags corners,
    const ImVec2 & size_arg,
    ImGuiButtonFlags flags
)
bool ButtonWithCornersEx(
    const char * label,
    ImDrawFlags corners,
    const ImVec2 & size_arg,
    ImGuiButtonFlags flags
)

function convertCoordinates

cpp
inline glm::vec2 convertCoordinates(
    glm::vec2 position,
    glm::vec2 newOrigin
)
inline glm::vec2 convertCoordinates(
    glm::vec2 position,
    glm::vec2 newOrigin
)

function drawCross

cpp
void drawCross(
    glm::vec2 pos,
    ImDrawList * drawList,
    float thickness,
    float size,
    ImColor color
)
void drawCross(
    glm::vec2 pos,
    ImDrawList * drawList,
    float thickness,
    float size,
    ImColor color
)

function drawEllipse

cpp
void drawEllipse(
    float cx,
    float cy,
    float rx,
    float ry,
    int num_segments,
    ImDrawList * drawList,
    ImColor color,
    float thickness
)
void drawEllipse(
    float cx,
    float cy,
    float rx,
    float ry,
    int num_segments,
    ImDrawList * drawList,
    ImColor color,
    float thickness
)

function endVerticalAlign

cpp
void endVerticalAlign()
void endVerticalAlign()

function floorImVec2

cpp
inline ImVec2 floorImVec2(
    const ImVec2 & v
)
inline ImVec2 floorImVec2(
    const ImVec2 & v
)

function glmToIm

cpp
inline ImVec2 glmToIm(
    const glm::vec2 & v
)
inline ImVec2 glmToIm(
    const glm::vec2 & v
)

function glmToIm

cpp
inline ImVec4 glmToIm(
    const glm::vec4 & v
)
inline ImVec4 glmToIm(
    const glm::vec4 & v
)

function imToGlm

cpp
inline glm::vec2 imToGlm(
    const ImVec2 & v
)
inline glm::vec2 imToGlm(
    const ImVec2 & v
)

function imToGlm

cpp
inline glm::vec4 imToGlm(
    const ImVec4 & v
)
inline glm::vec4 imToGlm(
    const ImVec4 & v
)

function InputText

cpp
bool InputText(
    const char * label,
    std::string * str,
    ImGuiInputTextFlags flags,
    ImGuiInputTextCallback callback,
    void * user_data
)
bool InputText(
    const char * label,
    std::string * str,
    ImGuiInputTextFlags flags,
    ImGuiInputTextCallback callback,
    void * user_data
)

function InputTextCallback

cpp
static int InputTextCallback(
    ImGuiInputTextCallbackData * data
)
static int InputTextCallback(
    ImGuiInputTextCallbackData * data
)

function RenderFrameWithCorners

cpp
void RenderFrameWithCorners(
    ImVec2 p_min,
    ImVec2 p_max,
    ImU32 fill_col,
    bool border,
    float rounding,
    ImDrawFlags corners
)
void RenderFrameWithCorners(
    ImVec2 p_min,
    ImVec2 p_max,
    ImU32 fill_col,
    bool border,
    float rounding,
    ImDrawFlags corners
)

function startVerticalAlign

cpp
void startVerticalAlign(
    float yOffset
)
void startVerticalAlign(
    float yOffset
)

function Text

cpp
inline void Text(
    const char * text,
    EFont font
)
inline void Text(
    const char * text,
    EFont font
)

function Text

cpp
inline void Text(
    const char * text,
    ImFont * font
)
inline void Text(
    const char * text,
    ImFont * font
)

function TextCentered

cpp
inline void TextCentered(
    const char * text,
    ImRect rect,
    ImU32 col
)
inline void TextCentered(
    const char * text,
    ImRect rect,
    ImU32 col
)

function ToggleButton

cpp
void ToggleButton(
    const char * label,
    bool & toggled,
    ImVec2 size
)
void ToggleButton(
    const char * label,
    bool & toggled,
    ImVec2 size
)

Updated on 2024-03-16 at 19:15:01 +0000