GUI
Classes
Name | |
---|---|
struct | GUI::InputTextCallback_UserData |
Functions
Name | |
---|---|
bool | Button(const char * id, bool disabled) |
bool | ButtonWithCorners(const char * label, ImDrawFlags corners, const ImVec2 & size_arg) |
bool | ButtonWithCornersEx(const char * label, ImDrawFlags corners, const ImVec2 & size_arg, ImGuiButtonFlags flags) |
glm::vec2 | convertCoordinates(glm::vec2 position, glm::vec2 newOrigin) |
void | dockTabStylePop() |
void | dockTabStylePush()<br>Sets style for the tab of a dockable window. |
void | drawCross(glm::vec2 pos, ImDrawList * drawList, float thickness, float size, ImColor color) |
void | drawEllipse(float cx, float cy, float rx, float ry, int num_segments, ImDrawList * drawList, ImColor color, float thickness) |
void | endVerticalAlign() |
ImVec2 | floorImVec2(const ImVec2 & v) |
ImVec2 | glmToIm(const glm::vec2 & v) |
ImVec4 | glmToIm(const glm::vec4 & v) |
glm::vec2 | imToGlm(const ImVec2 & v) |
glm::vec4 | imToGlm(const ImVec4 & v) |
bool | InputText(const char * label, std::string * str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void * user_data) |
int | InputTextCallback(ImGuiInputTextCallbackData * data) |
void | RenderFrameWithCorners(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding, ImDrawFlags corners) |
void | startVerticalAlign(float yOffset) |
void | Text(const char * text, EFont font) |
void | Text(const char * text, ImFont * font) |
void | TextCentered(const char * text, ImRect rect, ImU32 col) |
bool | ToggleButton(const char * label, bool & toggled, bool invert, ImVec2 size) |
void | Tooltip(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