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)
voiddockTabStylePop()
voiddockTabStylePush()<br>Sets style for the tab of a dockable window.
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)
boolToggleButton(const char * label, bool & toggled, bool invert, ImVec2 size)
voidTooltip(const char * header, const char * description)

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 dockTabStylePop

cpp
void dockTabStylePop()
void dockTabStylePop()

function dockTabStylePush

cpp
void dockTabStylePush()
void dockTabStylePush()

Sets style for the tab of a dockable window.

This method should be called after the ImGui::Begin call of a dockable window. Style needs to be popped afterwards with dockTabStylePop() Note that this style affects regular ImGui tabs, the style needs to be popped before using those in the dockable window.

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
bool ToggleButton(
    const char * label,
    bool & toggled,
    bool invert,
    ImVec2 size
)
bool ToggleButton(
    const char * label,
    bool & toggled,
    bool invert,
    ImVec2 size
)

function Tooltip

cpp
inline void Tooltip(
    const char * header,
    const char * description
)
inline void Tooltip(
    const char * header,
    const char * description
)

Updated on 2024-11-06 at 20:16:53 +0000