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 | 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) |
void | ToggleButton(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