auto format

This commit is contained in:
Stephan Dilly
2017-12-27 14:14:46 +01:00
parent fa1b93bea9
commit e75eaa7239

View File

@@ -75,15 +75,18 @@ typedef unsigned long long ImU64;
#endif
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
struct ImVec2 {
struct ImVec2
{
float x, y;
};
struct ImVec4 {
struct ImVec4
{
float x, y, z, w;
};
enum {
enum
{
ImGuiWindowFlags_NoTitleBar = 1 << 0,
ImGuiWindowFlags_NoResize = 1 << 1,
ImGuiWindowFlags_NoMove = 1 << 2,
@@ -103,7 +106,8 @@ enum {
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16
};
enum {
enum
{
ImGuiInputTextFlags_CharsDecimal = 1 << 0,
ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
ImGuiInputTextFlags_CharsUppercase = 1 << 2,
@@ -122,7 +126,8 @@ enum {
ImGuiInputTextFlags_Password = 1 << 15
};
enum {
enum
{
ImGuiTreeNodeFlags_Selected = 1 << 0,
ImGuiTreeNodeFlags_Framed = 1 << 1,
ImGuiTreeNodeFlags_AllowOverlapMode = 1 << 2,
@@ -137,7 +142,8 @@ enum {
ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoAutoOpenOnLog
};
enum {
enum
{
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
@@ -152,7 +158,8 @@ enum ImGuiHoveredFlags_
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped
};
enum {
enum
{
ImGuiKey_Tab,
ImGuiKey_LeftArrow,
ImGuiKey_RightArrow,
@@ -175,7 +182,8 @@ enum {
ImGuiKey_COUNT
};
enum {
enum
{
ImGuiCol_Text,
ImGuiCol_TextDisabled,
ImGuiCol_WindowBg,
@@ -222,7 +230,8 @@ enum {
ImGuiCol_COUNT
};
enum {
enum
{
ImGuiStyleVar_Alpha,
ImGuiStyleVar_WindowPadding,
ImGuiStyleVar_WindowRounding,
@@ -238,7 +247,8 @@ enum {
ImGuiStyleVar_Count_
};
enum {
enum
{
ImGuiColorEditFlags_NoAlpha = 1 << 1,
ImGuiColorEditFlags_NoPicker = 1 << 2,
ImGuiColorEditFlags_NoOptions = 1 << 3,
@@ -260,7 +270,8 @@ enum {
ImGuiColorEditFlags_PickerHueWheel = 1 << 19
};
enum {
enum
{
ImGuiMouseCursor_None = -1,
ImGuiMouseCursor_Arrow = 0,
ImGuiMouseCursor_TextInput,
@@ -272,14 +283,16 @@ enum {
ImGuiMouseCursor_Count_
};
enum {
enum
{
ImGuiCond_Always = 1 << 0,
ImGuiCond_Once = 1 << 1,
ImGuiCond_FirstUseEver = 1 << 2,
ImGuiCond_Appearing = 1 << 3
};
struct ImGuiStyle {
struct ImGuiStyle
{
float Alpha;
struct ImVec2 WindowPadding;
struct ImVec2 WindowMinSize;
@@ -306,7 +319,8 @@ struct ImGuiStyle {
struct ImVec4 Colors[ImGuiCol_COUNT];
};
struct ImGuiIO {
struct ImGuiIO
{
struct ImVec2 DisplaySize;
float DeltaTime;
float IniSavingRate;
@@ -368,7 +382,8 @@ struct ImGuiIO {
float KeysDownDurationPrev[512];
};
struct ImGuiTextEditCallbackData {
struct ImGuiTextEditCallbackData
{
ImGuiInputTextFlags EventFlag;
ImGuiInputTextFlags Flags;
void *UserData;
@@ -384,14 +399,16 @@ struct ImGuiTextEditCallbackData {
int SelectionEnd;
};
struct ImGuiSizeConstraintCallbackData {
struct ImGuiSizeConstraintCallbackData
{
void *UserData;
struct ImVec2 Pos;
struct ImVec2 CurrentSize;
struct ImVec2 DesiredSize;
};
struct ImDrawCmd {
struct ImDrawCmd
{
unsigned int ElemCount;
struct ImVec4 ClipRect;
ImTextureID TextureId;
@@ -399,7 +416,8 @@ struct ImDrawCmd {
void *UserCallbackData;
};
struct ImDrawData {
struct ImDrawData
{
bool Valid;
struct ImDrawList **CmdLists;
int CmdListsCount;
@@ -414,7 +432,8 @@ struct ImDrawVert
ImU32 col;
};
struct ImFontConfig {
struct ImFontConfig
{
void *FontData;
int FontDataSize;
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 igGetColorU32U32(ImU32 col);
// Parameters stacks (current window)
CIMGUI_API void igPushItemWidth(float item_width);
CIMGUI_API void igPopItemWidth();
@@ -784,7 +802,8 @@ CIMGUI_API bool igIsMouseDoubleClicked(int button);
CIMGUI_API bool igIsMouseReleased(int button);
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 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 igGetMousePosOnOpeningCurrentPopup(struct ImVec2 *pOut);
CIMGUI_API void igGetMouseDragDelta(struct ImVec2 *pOut, int button, float lock_threshold);