mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # backends/imgui_impl_glfw.cpp # backends/imgui_impl_sdl.cpp # backends/imgui_impl_vulkan.cpp # backends/imgui_impl_vulkan.h # backends/imgui_impl_win32.cpp # imgui.cpp # imgui.h # imgui_demo.cpp # imgui_internal.h
This commit is contained in:
		@@ -931,8 +931,8 @@ enum ImGuiInputSource
 | 
			
		||||
    ImGuiInputSource_Mouse,
 | 
			
		||||
    ImGuiInputSource_Keyboard,
 | 
			
		||||
    ImGuiInputSource_Gamepad,
 | 
			
		||||
    ImGuiInputSource_Nav,               // Stored in g.ActiveIdSource only
 | 
			
		||||
    ImGuiInputSource_Clipboard,         // Currently only used by InputText()
 | 
			
		||||
    ImGuiInputSource_Clipboard,     // Currently only used by InputText()
 | 
			
		||||
    ImGuiInputSource_Nav,           // Stored in g.ActiveIdSource only
 | 
			
		||||
    ImGuiInputSource_COUNT
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -942,7 +942,7 @@ struct ImGuiInputEventMousePos      { float PosX, PosY; };
 | 
			
		||||
struct ImGuiInputEventMouseWheel    { float WheelX, WheelY; };
 | 
			
		||||
struct ImGuiInputEventMouseButton   { int Button; bool Down; };
 | 
			
		||||
struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; };
 | 
			
		||||
struct ImGuiInputEventKey           { ImGuiKey Key; bool Down; };
 | 
			
		||||
struct ImGuiInputEventKey           { ImGuiKey Key; bool Down; float AnalogValue; };
 | 
			
		||||
struct ImGuiInputEventKeyMods       { ImGuiKeyModFlags Mods; };
 | 
			
		||||
struct ImGuiInputEventText          { unsigned int Char; };
 | 
			
		||||
struct ImGuiInputEventAppFocused    { bool Focused; };
 | 
			
		||||
@@ -951,7 +951,6 @@ struct ImGuiInputEvent
 | 
			
		||||
{
 | 
			
		||||
    ImGuiInputEventType             Type;
 | 
			
		||||
    ImGuiInputSource                Source;
 | 
			
		||||
    bool                            SubmittedByTestEngine;
 | 
			
		||||
    union
 | 
			
		||||
    {
 | 
			
		||||
        ImGuiInputEventMousePos     MousePos;       // if Type == ImGuiInputEventType_MousePos
 | 
			
		||||
@@ -963,6 +962,7 @@ struct ImGuiInputEvent
 | 
			
		||||
        ImGuiInputEventText         Text;           // if Type == ImGuiInputEventType_Text
 | 
			
		||||
        ImGuiInputEventAppFocused   AppFocused;     // if Type == ImGuiInputEventType_Focus
 | 
			
		||||
    };
 | 
			
		||||
    bool                            AddedByTestEngine;
 | 
			
		||||
 | 
			
		||||
    ImGuiInputEvent() { memset(this, 0, sizeof(*this)); }
 | 
			
		||||
};
 | 
			
		||||
@@ -2561,7 +2561,7 @@ struct IMGUI_API ImGuiTable
 | 
			
		||||
    ImRect                      InnerRect;                  // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is
 | 
			
		||||
    ImRect                      WorkRect;
 | 
			
		||||
    ImRect                      InnerClipRect;
 | 
			
		||||
    ImRect                      BgClipRect;                 // We use this to cpu-clip cell background color fill
 | 
			
		||||
    ImRect                      BgClipRect;                 // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries
 | 
			
		||||
    ImRect                      Bg0ClipRectForDrawCmd;      // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped
 | 
			
		||||
    ImRect                      Bg2ClipRectForDrawCmd;      // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect.
 | 
			
		||||
    ImRect                      HostClipRect;               // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window.
 | 
			
		||||
@@ -2877,7 +2877,8 @@ namespace ImGui
 | 
			
		||||
    // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
 | 
			
		||||
    inline bool             IsNamedKey(ImGuiKey key)                                    { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; }
 | 
			
		||||
    inline bool             IsLegacyKey(ImGuiKey key)                                   { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; }
 | 
			
		||||
    IMGUI_API const ImGuiKeyData* GetKeyData(ImGuiKey key);
 | 
			
		||||
    inline bool             IsGamepadKey(ImGuiKey key)                                  { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; }
 | 
			
		||||
    IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key);
 | 
			
		||||
    IMGUI_API void          SetItemUsingMouseWheel();
 | 
			
		||||
    IMGUI_API void          SetActiveIdUsingNavAndKeys();
 | 
			
		||||
    inline bool             IsActiveIdUsingNavDir(ImGuiDir dir)                         { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; }
 | 
			
		||||
@@ -3097,7 +3098,7 @@ namespace ImGui
 | 
			
		||||
    IMGUI_API const ImGuiDataTypeInfo*  DataTypeGetInfo(ImGuiDataType data_type);
 | 
			
		||||
    IMGUI_API int           DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format);
 | 
			
		||||
    IMGUI_API void          DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2);
 | 
			
		||||
    IMGUI_API bool          DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format);
 | 
			
		||||
    IMGUI_API bool          DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format);
 | 
			
		||||
    IMGUI_API int           DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2);
 | 
			
		||||
    IMGUI_API bool          DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user