mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-17 06:38:30 +01:00
auto format
This commit is contained in:
@@ -75,15 +75,18 @@ typedef unsigned long long ImU64;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||||
struct ImVec2 {
|
struct ImVec2
|
||||||
|
{
|
||||||
float x, y;
|
float x, y;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImVec4 {
|
struct ImVec4
|
||||||
|
{
|
||||||
float x, y, z, w;
|
float x, y, z, w;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiWindowFlags_NoTitleBar = 1 << 0,
|
ImGuiWindowFlags_NoTitleBar = 1 << 0,
|
||||||
ImGuiWindowFlags_NoResize = 1 << 1,
|
ImGuiWindowFlags_NoResize = 1 << 1,
|
||||||
ImGuiWindowFlags_NoMove = 1 << 2,
|
ImGuiWindowFlags_NoMove = 1 << 2,
|
||||||
@@ -103,7 +106,8 @@ enum {
|
|||||||
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16
|
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiInputTextFlags_CharsDecimal = 1 << 0,
|
ImGuiInputTextFlags_CharsDecimal = 1 << 0,
|
||||||
ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
|
ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
|
||||||
ImGuiInputTextFlags_CharsUppercase = 1 << 2,
|
ImGuiInputTextFlags_CharsUppercase = 1 << 2,
|
||||||
@@ -122,7 +126,8 @@ enum {
|
|||||||
ImGuiInputTextFlags_Password = 1 << 15
|
ImGuiInputTextFlags_Password = 1 << 15
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiTreeNodeFlags_Selected = 1 << 0,
|
ImGuiTreeNodeFlags_Selected = 1 << 0,
|
||||||
ImGuiTreeNodeFlags_Framed = 1 << 1,
|
ImGuiTreeNodeFlags_Framed = 1 << 1,
|
||||||
ImGuiTreeNodeFlags_AllowOverlapMode = 1 << 2,
|
ImGuiTreeNodeFlags_AllowOverlapMode = 1 << 2,
|
||||||
@@ -137,7 +142,8 @@ enum {
|
|||||||
ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoAutoOpenOnLog
|
ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoAutoOpenOnLog
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
|
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
|
||||||
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
|
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
|
||||||
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
|
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
|
||||||
@@ -152,7 +158,8 @@ enum ImGuiHoveredFlags_
|
|||||||
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped
|
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiKey_Tab,
|
ImGuiKey_Tab,
|
||||||
ImGuiKey_LeftArrow,
|
ImGuiKey_LeftArrow,
|
||||||
ImGuiKey_RightArrow,
|
ImGuiKey_RightArrow,
|
||||||
@@ -175,7 +182,8 @@ enum {
|
|||||||
ImGuiKey_COUNT
|
ImGuiKey_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiCol_Text,
|
ImGuiCol_Text,
|
||||||
ImGuiCol_TextDisabled,
|
ImGuiCol_TextDisabled,
|
||||||
ImGuiCol_WindowBg,
|
ImGuiCol_WindowBg,
|
||||||
@@ -222,7 +230,8 @@ enum {
|
|||||||
ImGuiCol_COUNT
|
ImGuiCol_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiStyleVar_Alpha,
|
ImGuiStyleVar_Alpha,
|
||||||
ImGuiStyleVar_WindowPadding,
|
ImGuiStyleVar_WindowPadding,
|
||||||
ImGuiStyleVar_WindowRounding,
|
ImGuiStyleVar_WindowRounding,
|
||||||
@@ -238,7 +247,8 @@ enum {
|
|||||||
ImGuiStyleVar_Count_
|
ImGuiStyleVar_Count_
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiColorEditFlags_NoAlpha = 1 << 1,
|
ImGuiColorEditFlags_NoAlpha = 1 << 1,
|
||||||
ImGuiColorEditFlags_NoPicker = 1 << 2,
|
ImGuiColorEditFlags_NoPicker = 1 << 2,
|
||||||
ImGuiColorEditFlags_NoOptions = 1 << 3,
|
ImGuiColorEditFlags_NoOptions = 1 << 3,
|
||||||
@@ -260,7 +270,8 @@ enum {
|
|||||||
ImGuiColorEditFlags_PickerHueWheel = 1 << 19
|
ImGuiColorEditFlags_PickerHueWheel = 1 << 19
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiMouseCursor_None = -1,
|
ImGuiMouseCursor_None = -1,
|
||||||
ImGuiMouseCursor_Arrow = 0,
|
ImGuiMouseCursor_Arrow = 0,
|
||||||
ImGuiMouseCursor_TextInput,
|
ImGuiMouseCursor_TextInput,
|
||||||
@@ -272,14 +283,16 @@ enum {
|
|||||||
ImGuiMouseCursor_Count_
|
ImGuiMouseCursor_Count_
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
ImGuiCond_Always = 1 << 0,
|
ImGuiCond_Always = 1 << 0,
|
||||||
ImGuiCond_Once = 1 << 1,
|
ImGuiCond_Once = 1 << 1,
|
||||||
ImGuiCond_FirstUseEver = 1 << 2,
|
ImGuiCond_FirstUseEver = 1 << 2,
|
||||||
ImGuiCond_Appearing = 1 << 3
|
ImGuiCond_Appearing = 1 << 3
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImGuiStyle {
|
struct ImGuiStyle
|
||||||
|
{
|
||||||
float Alpha;
|
float Alpha;
|
||||||
struct ImVec2 WindowPadding;
|
struct ImVec2 WindowPadding;
|
||||||
struct ImVec2 WindowMinSize;
|
struct ImVec2 WindowMinSize;
|
||||||
@@ -306,7 +319,8 @@ struct ImGuiStyle {
|
|||||||
struct ImVec4 Colors[ImGuiCol_COUNT];
|
struct ImVec4 Colors[ImGuiCol_COUNT];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImGuiIO {
|
struct ImGuiIO
|
||||||
|
{
|
||||||
struct ImVec2 DisplaySize;
|
struct ImVec2 DisplaySize;
|
||||||
float DeltaTime;
|
float DeltaTime;
|
||||||
float IniSavingRate;
|
float IniSavingRate;
|
||||||
@@ -368,7 +382,8 @@ struct ImGuiIO {
|
|||||||
float KeysDownDurationPrev[512];
|
float KeysDownDurationPrev[512];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImGuiTextEditCallbackData {
|
struct ImGuiTextEditCallbackData
|
||||||
|
{
|
||||||
ImGuiInputTextFlags EventFlag;
|
ImGuiInputTextFlags EventFlag;
|
||||||
ImGuiInputTextFlags Flags;
|
ImGuiInputTextFlags Flags;
|
||||||
void *UserData;
|
void *UserData;
|
||||||
@@ -384,14 +399,16 @@ struct ImGuiTextEditCallbackData {
|
|||||||
int SelectionEnd;
|
int SelectionEnd;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImGuiSizeConstraintCallbackData {
|
struct ImGuiSizeConstraintCallbackData
|
||||||
|
{
|
||||||
void *UserData;
|
void *UserData;
|
||||||
struct ImVec2 Pos;
|
struct ImVec2 Pos;
|
||||||
struct ImVec2 CurrentSize;
|
struct ImVec2 CurrentSize;
|
||||||
struct ImVec2 DesiredSize;
|
struct ImVec2 DesiredSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImDrawCmd {
|
struct ImDrawCmd
|
||||||
|
{
|
||||||
unsigned int ElemCount;
|
unsigned int ElemCount;
|
||||||
struct ImVec4 ClipRect;
|
struct ImVec4 ClipRect;
|
||||||
ImTextureID TextureId;
|
ImTextureID TextureId;
|
||||||
@@ -399,7 +416,8 @@ struct ImDrawCmd {
|
|||||||
void *UserCallbackData;
|
void *UserCallbackData;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImDrawData {
|
struct ImDrawData
|
||||||
|
{
|
||||||
bool Valid;
|
bool Valid;
|
||||||
struct ImDrawList **CmdLists;
|
struct ImDrawList **CmdLists;
|
||||||
int CmdListsCount;
|
int CmdListsCount;
|
||||||
@@ -414,7 +432,8 @@ struct ImDrawVert
|
|||||||
ImU32 col;
|
ImU32 col;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ImFontConfig {
|
struct ImFontConfig
|
||||||
|
{
|
||||||
void *FontData;
|
void *FontData;
|
||||||
int FontDataSize;
|
int FontDataSize;
|
||||||
bool FontDataOwnedByAtlas;
|
bool FontDataOwnedByAtlas;
|
||||||
@@ -520,7 +539,6 @@ CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx, float alpha_mul);
|
|||||||
CIMGUI_API ImU32 igGetColorU32Vec(CONST struct ImVec4 *col);
|
CIMGUI_API ImU32 igGetColorU32Vec(CONST struct ImVec4 *col);
|
||||||
CIMGUI_API ImU32 igGetColorU32U32(ImU32 col);
|
CIMGUI_API ImU32 igGetColorU32U32(ImU32 col);
|
||||||
|
|
||||||
|
|
||||||
// Parameters stacks (current window)
|
// Parameters stacks (current window)
|
||||||
CIMGUI_API void igPushItemWidth(float item_width);
|
CIMGUI_API void igPushItemWidth(float item_width);
|
||||||
CIMGUI_API void igPopItemWidth();
|
CIMGUI_API void igPopItemWidth();
|
||||||
@@ -784,7 +802,8 @@ CIMGUI_API bool igIsMouseDoubleClicked(int button);
|
|||||||
CIMGUI_API bool igIsMouseReleased(int button);
|
CIMGUI_API bool igIsMouseReleased(int button);
|
||||||
CIMGUI_API bool igIsMouseDragging(int button, float lock_threshold);
|
CIMGUI_API bool igIsMouseDragging(int button, float lock_threshold);
|
||||||
CIMGUI_API bool igIsMouseHoveringRect(CONST struct ImVec2 r_min, CONST struct ImVec2 r_max, bool clip);
|
CIMGUI_API bool igIsMouseHoveringRect(CONST struct ImVec2 r_min, CONST struct ImVec2 r_max, bool clip);
|
||||||
CIMGUI_API bool igIsMousePosValid(CONST struct ImVec2* mouse_pos);;
|
CIMGUI_API bool igIsMousePosValid(CONST struct ImVec2 *mouse_pos);
|
||||||
|
;
|
||||||
CIMGUI_API void igGetMousePos(struct ImVec2 *pOut);
|
CIMGUI_API void igGetMousePos(struct ImVec2 *pOut);
|
||||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(struct ImVec2 *pOut);
|
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(struct ImVec2 *pOut);
|
||||||
CIMGUI_API void igGetMouseDragDelta(struct ImVec2 *pOut, int button, float lock_threshold);
|
CIMGUI_API void igGetMouseDragDelta(struct ImVec2 *pOut, int button, float lock_threshold);
|
||||||
|
Reference in New Issue
Block a user