mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
11009 lines
566 KiB
C#
11009 lines
566 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public partial class ImGui
|
|
{
|
|
public partial class Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3324">imgui_internal.h:3324</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5090">imgui.cpp:5090</see>
|
|
/// <br/><c>ImGuiIO& GetIO(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// <para>
|
|
/// This variant exists to facilitate backends experimenting with multi-threaded parallel context.
|
|
/// (#8069, #6293, #5856)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiIOPtr GetIO(ImGuiContextPtr ctx) => PInvoke.GetIO_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3325">imgui_internal.h:3325</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5103">imgui.cpp:5103</see>
|
|
/// <br/><c>ImGuiPlatformIO& GetPlatformIO(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// <para>
|
|
/// This variant exists to facilitate backends experimenting with multi-threaded parallel context.
|
|
/// (#8069, #6293, #5856)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiPlatformIOPtr GetPlatformIO(ImGuiContextPtr ctx) =>
|
|
PInvoke.GetPlatformIO_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3326">imgui_internal.h:3326</see>
|
|
/// <br/><c>inline ImGuiWindow* GetCurrentWindowRead()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr GetCurrentWindowRead() => PInvoke.GetCurrentWindowRead_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3327">imgui_internal.h:3327</see>
|
|
/// <br/><c>inline ImGuiWindow* GetCurrentWindow()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr GetCurrentWindow() => PInvoke.GetCurrentWindow_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3328">imgui_internal.h:3328</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6670">imgui.cpp:6670</see>
|
|
/// <br/><c>ImGuiWindow* FindWindowByID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr FindWindowByID(ImGuiID id) => PInvoke.FindWindowByID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3329">imgui_internal.h:3329</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6676">imgui.cpp:6676</see>
|
|
/// <br/><c>ImGuiWindow* FindWindowByName(const char* name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr FindWindowByName(ImString name)
|
|
{
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
return PInvoke.FindWindowByName_internal(name_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3330">imgui_internal.h:3330</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L7506">imgui.cpp:7506</see>
|
|
/// <br/>
|
|
/// <c>void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void UpdateWindowParentAndRootLinks(
|
|
ImGuiWindowPtr window,
|
|
ImGuiWindowFlags flags,
|
|
ImGuiWindowPtr parentWindow
|
|
) => PInvoke.UpdateWindowParentAndRootLinks_internal(window, flags, parentWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3331">imgui_internal.h:3331</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L7529">imgui.cpp:7529</see>
|
|
/// <br/><c>void UpdateWindowSkipRefresh(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Called by Begin(). NextWindowData is valid at this point.
|
|
/// This is designed as a toy/test-bed for
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void UpdateWindowSkipRefresh(ImGuiWindowPtr window) =>
|
|
PInvoke.UpdateWindowSkipRefresh_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3332">imgui_internal.h:3332</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6890">imgui.cpp:6890</see>
|
|
/// <br/><c>ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe float2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) =>
|
|
PInvoke.CalcWindowNextAutoFitSize_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3333">imgui_internal.h:3333</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8711">imgui.cpp:8711</see>
|
|
/// <br/>
|
|
/// <c>bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsWindowChildOf(
|
|
ImGuiWindowPtr window,
|
|
ImGuiWindowPtr potentialParent,
|
|
bool popupHierarchy,
|
|
bool dockHierarchy
|
|
) => PInvoke.IsWindowChildOf_internal(window, potentialParent, popupHierarchy, dockHierarchy);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3334">imgui_internal.h:3334</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8727">imgui.cpp:8727</see>
|
|
/// <br/><c>bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsWindowWithinBeginStackOf(
|
|
ImGuiWindowPtr window,
|
|
ImGuiWindowPtr potentialParent
|
|
) => PInvoke.IsWindowWithinBeginStackOf_internal(window, potentialParent);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3335">imgui_internal.h:3335</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8740">imgui.cpp:8740</see>
|
|
/// <br/><c>bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) =>
|
|
PInvoke.IsWindowAbove_internal(potentialAbove, potentialBelow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3336">imgui_internal.h:3336</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L14820">imgui.cpp:14820</see>
|
|
/// <br/><c>bool IsWindowNavFocusable(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// <code>
|
|
/// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext)
|
|
/// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically.
|
|
/// If you want a window to never be focused, you may use the e.g. NoInputs flag.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsWindowNavFocusable(ImGuiWindowPtr window) =>
|
|
PInvoke.IsWindowNavFocusable_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3337">imgui_internal.h:3337</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8841">imgui.cpp:8841</see>
|
|
/// <br/><c>void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowPos(ImGuiWindowPtr window, in float2 pos, ImGuiCond cond = default)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
PInvoke.SetWindowPos_internal(window, pos_fixed, cond);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3338">imgui_internal.h:3338</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8883">imgui.cpp:8883</see>
|
|
/// <br/><c>void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowSize(ImGuiWindowPtr window, in float2 size, ImGuiCond cond = default)
|
|
{
|
|
fixed (float2* size_fixed = &size)
|
|
{
|
|
PInvoke.SetWindowSize_internal(window, size_fixed, cond);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3339">imgui_internal.h:3339</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8923">imgui.cpp:8923</see>
|
|
/// <br/><c>void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowCollapsed(
|
|
ImGuiWindowPtr window,
|
|
bool collapsed,
|
|
ImGuiCond cond = default
|
|
) => PInvoke.SetWindowCollapsed_internal(window, collapsed, cond);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3340">imgui_internal.h:3340</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8936">imgui.cpp:8936</see>
|
|
/// <br/>
|
|
/// <c>void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowHitTestHole(ImGuiWindowPtr window, in float2 pos, in float2 size)
|
|
{
|
|
fixed (float2* size_fixed = &size)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
PInvoke.SetWindowHitTestHole_internal(window, pos_fixed, size_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3341">imgui_internal.h:3341</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8943">imgui.cpp:8943</see>
|
|
/// <br/><c>void SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindowPtr window) =>
|
|
PInvoke.SetWindowHiddenAndSkipItemsForCurrentFrame_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// You may also use SetNextWindowClass()'s FocusRouteParentWindowId field.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3342">imgui_internal.h:3342</see>
|
|
/// <br/>
|
|
/// <c>inline void SetWindowParentWindowForFocusRoute(ImGuiWindow* window, ImGuiWindow* parent_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowParentWindowForFocusRoute(
|
|
ImGuiWindowPtr window,
|
|
ImGuiWindowPtr parentWindow
|
|
) => PInvoke.SetWindowParentWindowForFocusRoute_internal(window, parentWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3343">imgui_internal.h:3343</see>
|
|
/// <br/><c>inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe floatRect WindowRectAbsToRel(ImGuiWindowPtr window, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
return PInvoke.WindowRectAbsToRel_internal(window, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3344">imgui_internal.h:3344</see>
|
|
/// <br/><c>inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe floatRect WindowRectRelToAbs(ImGuiWindowPtr window, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
return PInvoke.WindowRectRelToAbs_internal(window, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3345">imgui_internal.h:3345</see>
|
|
/// <br/><c>inline ImVec2 WindowPosAbsToRel(ImGuiWindow* window, const ImVec2& p)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe float2 WindowPosAbsToRel(ImGuiWindowPtr window, in float2 p)
|
|
{
|
|
fixed (float2* p_fixed = &p)
|
|
{
|
|
return PInvoke.WindowPosAbsToRel_internal(window, p_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3346">imgui_internal.h:3346</see>
|
|
/// <br/><c>inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Windows
|
|
/// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
|
|
/// If this ever crashes because g.CurrentWindow is NULL, it means that either:
|
|
/// - ImGui::NewFrame() has never been called, which is illegal.
|
|
/// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe float2 WindowPosRelToAbs(ImGuiWindowPtr window, in float2 p)
|
|
{
|
|
fixed (float2* p_fixed = &p)
|
|
{
|
|
return PInvoke.WindowPosRelToAbs_internal(window, p_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3349">imgui_internal.h:3349</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13350">imgui.cpp:13350</see>
|
|
/// <br/><c>void FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// <para>
|
|
/// Moving window to front of display and set focus (which happens to be back of our sorted list)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void FocusWindow(ImGuiWindowPtr window, ImGuiFocusRequestFlags flags = default) =>
|
|
PInvoke.FocusWindow_internal(window, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3350">imgui_internal.h:3350</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13419">imgui.cpp:13419</see>
|
|
/// <br/>
|
|
/// <c>void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void FocusTopMostWindowUnderOne(
|
|
ImGuiWindowPtr underThisWindow,
|
|
ImGuiWindowPtr ignoreWindow,
|
|
ImGuiViewportPtr filterViewport,
|
|
ImGuiFocusRequestFlags flags
|
|
) => PInvoke.FocusTopMostWindowUnderOne_internal(underThisWindow, ignoreWindow, filterViewport, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3351">imgui_internal.h:3351</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13270">imgui.cpp:13270</see>
|
|
/// <br/><c>void BringWindowToFocusFront(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void BringWindowToFocusFront(ImGuiWindowPtr window) =>
|
|
PInvoke.BringWindowToFocusFront_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3352">imgui_internal.h:3352</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13292">imgui.cpp:13292</see>
|
|
/// <br/><c>void BringWindowToDisplayFront(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// <para>
|
|
/// Note technically focus related but rather adjacent and close to BringWindowToFocusFront()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void BringWindowToDisplayFront(ImGuiWindowPtr window) =>
|
|
PInvoke.BringWindowToDisplayFront_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3353">imgui_internal.h:3353</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13307">imgui.cpp:13307</see>
|
|
/// <br/><c>void BringWindowToDisplayBack(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void BringWindowToDisplayBack(ImGuiWindowPtr window) =>
|
|
PInvoke.BringWindowToDisplayBack_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3354">imgui_internal.h:3354</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13321">imgui.cpp:13321</see>
|
|
/// <br/><c>void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) =>
|
|
PInvoke.BringWindowToDisplayBehind_internal(window, aboveWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3355">imgui_internal.h:3355</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13343">imgui.cpp:13343</see>
|
|
/// <br/><c>int FindWindowDisplayIndex(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int FindWindowDisplayIndex(ImGuiWindowPtr window) =>
|
|
PInvoke.FindWindowDisplayIndex_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3356">imgui_internal.h:3356</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5940">imgui.cpp:5940</see>
|
|
/// <br/><c>ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Display Order and Focus Order
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) =>
|
|
PInvoke.FindBottomMostVisibleWindowWithinBeginStack_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3359">imgui_internal.h:3359</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9061">imgui.cpp:9061</see>
|
|
/// <br/><c>void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Windows: Idle, Refresh Policies [EXPERIMENTAL]
|
|
/// </para>
|
|
/// <para>
|
|
/// This is experimental and meant to be a toy for exploring a future/wider range of features.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags) =>
|
|
PInvoke.SetNextWindowRefreshPolicy_internal(flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Register external texture. EXPERIMENTAL: DO NOT USE YET.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3362">imgui_internal.h:3362</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9378">imgui.cpp:9378</see>
|
|
/// <br/><c>void RegisterUserTexture(ImTextureData* tex)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// <para>
|
|
/// EXPERIMENTAL: DO NOT USE YET.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RegisterUserTexture(ImTextureDataPtr tex) =>
|
|
PInvoke.RegisterUserTexture_internal(tex);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3363">imgui_internal.h:3363</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9385">imgui.cpp:9385</see>
|
|
/// <br/><c>void UnregisterUserTexture(ImTextureData* tex)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void UnregisterUserTexture(ImTextureDataPtr tex) =>
|
|
PInvoke.UnregisterUserTexture_internal(tex);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3364">imgui_internal.h:3364</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9393">imgui.cpp:9393</see>
|
|
/// <br/><c>void RegisterFontAtlas(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RegisterFontAtlas(ImFontAtlasPtr atlas) =>
|
|
PInvoke.RegisterFontAtlas_internal(atlas);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3365">imgui_internal.h:3365</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9403">imgui.cpp:9403</see>
|
|
/// <br/><c>void UnregisterFontAtlas(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void UnregisterFontAtlas(ImFontAtlasPtr atlas) =>
|
|
PInvoke.UnregisterFontAtlas_internal(atlas);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3366">imgui_internal.h:3366</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9420">imgui.cpp:9420</see>
|
|
/// <br/>
|
|
/// <c>void SetCurrentFont(ImFont* font, float font_size_before_scaling, float font_size_after_scaling)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// <code>
|
|
/// Use ImDrawList::_SetTexture(), making our shared g.FontStack[] authoritative against window-local ImDrawList.
|
|
/// - Whereas ImDrawList::PushTexture()/PopTexture() is not to be used across Begin() calls.
|
|
/// - Note that we don't propagate current texture id when e.g. Begin()-ing into a new window, we never really did...
|
|
/// - Some code paths never really fully worked with multiple atlas textures.
|
|
/// - The right-ish solution may be to remove _SetTexture() and make AddText/RenderText lazily call PushTexture()/PopTexture()
|
|
/// the same way AddImage() does, but then all other primitives would also need to? I don't think we should tackle this problem
|
|
/// because we have a concrete need and a test bed for multiple atlas textures.
|
|
/// FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ?
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetCurrentFont(
|
|
ImFontPtr font,
|
|
float fontSizeBeforeScaling,
|
|
float fontSizeAfterScaling
|
|
) => PInvoke.SetCurrentFont_internal(font, fontSizeBeforeScaling, fontSizeAfterScaling);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3367">imgui_internal.h:3367</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9442">imgui.cpp:9442</see>
|
|
/// <br/><c>void UpdateCurrentFontSize(float restore_font_size_after_scaling)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void UpdateCurrentFontSize(float restoreFontSizeAfterScaling) =>
|
|
PInvoke.UpdateCurrentFontSize_internal(restoreFontSizeAfterScaling);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3368">imgui_internal.h:3368</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9497">imgui.cpp:9497</see>
|
|
/// <br/><c>void SetFontRasterizerDensity(float rasterizer_density)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// <code>
|
|
/// Exposed in case user may want to override setting density.
|
|
/// IMPORTANT: Begin()/End() is overriding density. Be considerate of this you change it.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetFontRasterizerDensity(float rasterizerDensity) =>
|
|
PInvoke.SetFontRasterizerDensity_internal(rasterizerDensity);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3369">imgui_internal.h:3369</see>
|
|
/// <br/><c>inline float GetFontRasterizerDensity()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float GetFontRasterizerDensity() => PInvoke.GetFontRasterizerDensity_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3370">imgui_internal.h:3370</see>
|
|
/// <br/><c>inline float GetRoundedFontSize(float size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float GetRoundedFontSize(float size) => PInvoke.GetRoundedFontSize_internal(size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3371">imgui_internal.h:3371</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9368">imgui.cpp:9368</see>
|
|
/// <br/><c>ImFont* GetDefaultFont()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImFontPtr GetDefaultFont() => PInvoke.GetDefaultFont_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3372">imgui_internal.h:3372</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4328">imgui_widgets.cpp:4328</see>
|
|
/// <br/><c>void PushPasswordFont()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PushPasswordFont() => PInvoke.PushPasswordFont_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3373">imgui_internal.h:3373</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4344">imgui_widgets.cpp:4344</see>
|
|
/// <br/><c>void PopPasswordFont()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PopPasswordFont() => PInvoke.PopPasswordFont_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3374">imgui_internal.h:3374</see>
|
|
/// <br/><c>inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) =>
|
|
PInvoke.GetForegroundDrawList_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3375">imgui_internal.h:3375</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2264">imgui_draw.cpp:2264</see>
|
|
/// <br/>
|
|
/// <c>void AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector<ImDrawList*>* out_list, ImDrawList* draw_list)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fonts, drawing
|
|
/// </para>
|
|
/// <code>
|
|
/// Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list
|
|
/// as long at it is expected that the result will be later merged into draw_data->CmdLists[].
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void AddDrawListToDrawDataEx(
|
|
ImDrawDataPtr drawData,
|
|
out ImVector<ImDrawListPtr> outList,
|
|
ImDrawListPtr drawList
|
|
)
|
|
{
|
|
fixed (ImVector<ImDrawListPtr>* outList_fixed = &outList)
|
|
{
|
|
PInvoke.AddDrawListToDrawDataEx_internal(drawData, outList_fixed, drawList);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3378">imgui_internal.h:3378</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4316">imgui.cpp:4316</see>
|
|
/// <br/><c>void Initialize()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Init
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void Initialize() => PInvoke.Initialize_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context
|
|
/// created by CreateContext().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3379">imgui_internal.h:3379</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4384">imgui.cpp:4384</see>
|
|
/// <br/><c>void Shutdown()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Init
|
|
/// </para>
|
|
/// <para>
|
|
/// This function is merely here to free heap allocations.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void Shutdown() => PInvoke.Shutdown_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3382">imgui_internal.h:3382</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10821">imgui.cpp:10821</see>
|
|
/// <br/><c>void UpdateInputEvents(bool trickle_fast_inputs)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <code>
|
|
/// Process input queue
|
|
/// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'.
|
|
/// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost)
|
|
/// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void UpdateInputEvents(bool trickleFastInputs) =>
|
|
PInvoke.UpdateInputEvents_internal(trickleFastInputs);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3383">imgui_internal.h:3383</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5385">imgui.cpp:5385</see>
|
|
/// <br/><c>void UpdateHoveredWindowAndCaptureFlags(const ImVec2& mouse_pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <para>
|
|
/// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering,
|
|
/// we want to dispatch inputs to the right target (imgui vs imgui+app)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void UpdateHoveredWindowAndCaptureFlags(in float2? mousePos)
|
|
{
|
|
var mousePos_ptr = mousePos is { } mousePos_value ? &mousePos_value : null;
|
|
PInvoke.UpdateHoveredWindowAndCaptureFlags_internal((float2*)mousePos_ptr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3384">imgui_internal.h:3384</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6237">imgui.cpp:6237</see>
|
|
/// <br/>
|
|
/// <c>void FindHoveredWindowEx(const ImVec2& pos, bool find_first_and_in_any_viewport, ImGuiWindow** out_hovered_window, ImGuiWindow** out_hovered_window_under_moving_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <code>
|
|
/// Find window given position, search front-to-back
|
|
/// - Typically write output back to g.HoveredWindow and g.HoveredWindowUnderMovingWindow.
|
|
/// - FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically
|
|
/// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is
|
|
/// called, aka before the next Begin(). Moving window isn't affected.
|
|
/// - The 'find_first_and_in_any_viewport = true' mode is only used by TestEngine. It is simpler to maintain here.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void FindHoveredWindowEx(
|
|
in float2 pos,
|
|
bool findFirstAndInAnyViewport,
|
|
out ImGuiWindowPtr outHoveredWindow,
|
|
out ImGuiWindowPtr outHoveredWindowUnderMovingWindow
|
|
)
|
|
{
|
|
fixed (ImGuiWindowPtr* outHoveredWindowUnderMovingWindow_fixed = &outHoveredWindowUnderMovingWindow)
|
|
{
|
|
fixed (ImGuiWindowPtr* outHoveredWindow_fixed = &outHoveredWindow)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
PInvoke.FindHoveredWindowEx_internal(
|
|
pos_fixed,
|
|
findFirstAndInAnyViewport,
|
|
(ImGuiWindow**)outHoveredWindow_fixed,
|
|
(ImGuiWindow**)outHoveredWindowUnderMovingWindow_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3385">imgui_internal.h:3385</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5170">imgui.cpp:5170</see>
|
|
/// <br/><c>void StartMouseMovingWindow(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void StartMouseMovingWindow(ImGuiWindowPtr window) =>
|
|
PInvoke.StartMouseMovingWindow_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3386">imgui_internal.h:3386</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5195">imgui.cpp:5195</see>
|
|
/// <br/><c>void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <para>
|
|
/// We use 'undock == false' when dragging from title bar to allow moving groups of floating nodes
|
|
/// without undocking them.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void StartMouseMovingWindowOrNode(
|
|
ImGuiWindowPtr window,
|
|
ImGuiDockNodePtr node,
|
|
bool undock
|
|
) => PInvoke.StartMouseMovingWindowOrNode_internal(window, node, undock);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3387">imgui_internal.h:3387</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5221">imgui.cpp:5221</see>
|
|
/// <br/><c>void StopMouseMovingWindow()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <code>
|
|
/// This is not 100% symetric with StartMouseMovingWindow().
|
|
/// We do NOT clear ActiveID, because:
|
|
/// - It would lead to rather confusing recursive code paths. Caller can call ClearActiveID() if desired.
|
|
/// - Some code intentionally cancel moving but keep the ActiveID to lock inputs (e.g. code path taken when clicking a disabled item).
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void StopMouseMovingWindow() => PInvoke.StopMouseMovingWindow_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3388">imgui_internal.h:3388</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5251">imgui.cpp:5251</see>
|
|
/// <br/><c>void UpdateMouseMovingWindowNewFrame()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <code>
|
|
/// Handle mouse moving window
|
|
/// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing()
|
|
/// FIXME: We don't have strong guarantee that g.MovingWindow stay synced with g.ActiveId == g.MovingWindow->MoveId.
|
|
/// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs,
|
|
/// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void UpdateMouseMovingWindowNewFrame() =>
|
|
PInvoke.UpdateMouseMovingWindowNewFrame_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3389">imgui_internal.h:3389</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5299">imgui.cpp:5299</see>
|
|
/// <br/><c>void UpdateMouseMovingWindowEndFrame()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// NewFrame
|
|
/// </para>
|
|
/// <code>
|
|
/// Initiate focusing and moving window when clicking on empty space or title bar.
|
|
/// Initiate focusing window when clicking on a disabled item.
|
|
/// Handle left-click and right-click focus.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void UpdateMouseMovingWindowEndFrame() =>
|
|
PInvoke.UpdateMouseMovingWindowEndFrame_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3392">imgui_internal.h:3392</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4479">imgui.cpp:4479</see>
|
|
/// <br/><c>ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Generic context hooks
|
|
/// </para>
|
|
/// <para>
|
|
/// No specific ordering/dependency support, will see as needed
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) =>
|
|
PInvoke.AddContextHook_internal(context, hook);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3393">imgui_internal.h:3393</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4489">imgui.cpp:4489</see>
|
|
/// <br/><c>void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Generic context hooks
|
|
/// </para>
|
|
/// <para>
|
|
/// Deferred removal, avoiding issue with changing vector while iterating it
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RemoveContextHook(ImGuiContextPtr context, ImGuiID hookToRemove) =>
|
|
PInvoke.RemoveContextHook_internal(context, hookToRemove);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3394">imgui_internal.h:3394</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4500">imgui.cpp:4500</see>
|
|
/// <br/><c>void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Generic context hooks
|
|
/// </para>
|
|
/// <code>
|
|
/// Call context hooks (used by e.g. test engine)
|
|
/// We assume a small number of hooks so all stored in same array
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) =>
|
|
PInvoke.CallContextHooks_internal(context, type);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3397">imgui_internal.h:3397</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16284">imgui.cpp:16284</see>
|
|
/// <br/>
|
|
/// <c>void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos, const ImVec2& old_size, const ImVec2& new_size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// <code>
|
|
/// Translate Dear ImGui windows when a Host Viewport has been moved
|
|
/// (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TranslateWindowsInViewport(
|
|
ImGuiViewportPPtr viewport,
|
|
in float2 oldPos,
|
|
in float2 newPos,
|
|
in float2 oldSize,
|
|
in float2 newSize
|
|
)
|
|
{
|
|
fixed (float2* newSize_fixed = &newSize)
|
|
{
|
|
fixed (float2* oldSize_fixed = &oldSize)
|
|
{
|
|
fixed (float2* newPos_fixed = &newPos)
|
|
{
|
|
fixed (float2* oldPos_fixed = &oldPos)
|
|
{
|
|
PInvoke.TranslateWindowsInViewport_internal(
|
|
viewport,
|
|
oldPos_fixed,
|
|
newPos_fixed,
|
|
oldSize_fixed,
|
|
newSize_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3398">imgui_internal.h:3398</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16304">imgui.cpp:16304</see>
|
|
/// <br/><c>void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// <para>
|
|
/// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) =>
|
|
PInvoke.ScaleWindowsInViewport_internal(viewport, scale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3399">imgui_internal.h:3399</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17123">imgui.cpp:17123</see>
|
|
/// <br/><c>void DestroyPlatformWindow(ImGuiViewportP* viewport)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DestroyPlatformWindow(ImGuiViewportPPtr viewport) =>
|
|
PInvoke.DestroyPlatformWindow_internal(viewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3400">imgui_internal.h:3400</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16215">imgui.cpp:16215</see>
|
|
/// <br/><c>void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) =>
|
|
PInvoke.SetWindowViewport_internal(window, viewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3401">imgui_internal.h:3401</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16195">imgui.cpp:16195</see>
|
|
/// <br/><c>void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) =>
|
|
PInvoke.SetCurrentViewport_internal(window, viewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3402">imgui_internal.h:3402</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17113">imgui.cpp:17113</see>
|
|
/// <br/><c>const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// <para>
|
|
/// Return value is always != NULL, but don't hold on it across frames.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) =>
|
|
PInvoke.GetViewportPlatformMonitor_internal(viewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3403">imgui_internal.h:3403</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16323">imgui.cpp:16323</see>
|
|
/// <br/>
|
|
/// <c>ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Viewports
|
|
/// </para>
|
|
/// <code>
|
|
/// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves.
|
|
/// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window.
|
|
/// B) It requires Platform_GetWindowFocus to be implemented by backend.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(
|
|
in float2 mousePlatformPos
|
|
)
|
|
{
|
|
fixed (float2* mousePlatformPos_fixed = &mousePlatformPos)
|
|
{
|
|
return PInvoke.FindHoveredViewportFromPlatformWindowStack_internal(mousePlatformPos_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3406">imgui_internal.h:3406</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15788">imgui.cpp:15788</see>
|
|
/// <br/><c>void MarkIniSettingsDirty()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void MarkIniSettingsDirty() => PInvoke.MarkIniSettingsDirty_internal_0();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3407">imgui_internal.h:3407</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15795">imgui.cpp:15795</see>
|
|
/// <br/><c>void MarkIniSettingsDirty(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void MarkIniSettingsDirty(ImGuiWindowPtr window) =>
|
|
PInvoke.MarkIniSettingsDirty_internal_1(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3408">imgui_internal.h:3408</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15828">imgui.cpp:15828</see>
|
|
/// <br/><c>void ClearIniSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// Clear all settings (windows, tables, docking etc.)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClearIniSettings() => PInvoke.ClearIniSettings_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3409">imgui_internal.h:3409</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15803">imgui.cpp:15803</see>
|
|
/// <br/><c>void AddSettingsHandler(const ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) =>
|
|
PInvoke.AddSettingsHandler_internal(handler);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3410">imgui_internal.h:3410</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15810">imgui.cpp:15810</see>
|
|
/// <br/><c>void RemoveSettingsHandler(const char* type_name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RemoveSettingsHandler(ImString typeName)
|
|
{
|
|
fixed (byte* typeName_fixed = typeName)
|
|
{
|
|
PInvoke.RemoveSettingsHandler_internal(typeName_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3411">imgui_internal.h:3411</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15817">imgui.cpp:15817</see>
|
|
/// <br/><c>ImGuiSettingsHandler* FindSettingsHandler(const char* type_name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiSettingsHandlerPtr FindSettingsHandler(ImString typeName)
|
|
{
|
|
fixed (byte* typeName_fixed = typeName)
|
|
{
|
|
return PInvoke.FindSettingsHandler_internal(typeName_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3414">imgui_internal.h:3414</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15950">imgui.cpp:15950</see>
|
|
/// <br/><c>ImGuiWindowSettings* CreateNewWindowSettings(const char* name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings - Windows
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowSettingsPtr CreateNewWindowSettings(ImString name)
|
|
{
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
return PInvoke.CreateNewWindowSettings_internal(name_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3415">imgui_internal.h:3415</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15975">imgui.cpp:15975</see>
|
|
/// <br/><c>ImGuiWindowSettings* FindWindowSettingsByID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings - Windows
|
|
/// </para>
|
|
/// <code>
|
|
/// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names.
|
|
/// This is called once per window .ini entry + once per newly instantiated window.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowSettingsPtr FindWindowSettingsByID(ImGuiID id) =>
|
|
PInvoke.FindWindowSettingsByID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3416">imgui_internal.h:3416</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15985">imgui.cpp:15985</see>
|
|
/// <br/><c>ImGuiWindowSettings* FindWindowSettingsByWindow(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings - Windows
|
|
/// </para>
|
|
/// <para>
|
|
/// This is faster if you are holding on a Window already as we don't need to perform a search.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowSettingsPtr FindWindowSettingsByWindow(ImGuiWindowPtr window) =>
|
|
PInvoke.FindWindowSettingsByWindow_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3417">imgui_internal.h:3417</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15994">imgui.cpp:15994</see>
|
|
/// <br/><c>void ClearWindowSettings(const char* name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings - Windows
|
|
/// </para>
|
|
/// <para>
|
|
/// This will revert window to its initial state, including enabling the
|
|
/// ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClearWindowSettings(ImString name)
|
|
{
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
PInvoke.ClearWindowSettings_internal(name_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3420">imgui_internal.h:3420</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L16135">imgui.cpp:16135</see>
|
|
/// <br/><c>void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Localization
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void LocalizeRegisterEntries(ImGuiLocEntryPtr entries, int count) =>
|
|
PInvoke.LocalizeRegisterEntries_internal(entries, count);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3421">imgui_internal.h:3421</see>
|
|
/// <br/><c>inline const char* LocalizeGetMsg(ImGuiLocKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Localization
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe Ptr<byte> LocalizeGetMsg(ImGuiLocKey key) => PInvoke.LocalizeGetMsg_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3424">imgui_internal.h:3424</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12344">imgui.cpp:12344</see>
|
|
/// <br/><c>void SetScrollX(ImGuiWindow* window, float scroll_x)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Scrolling
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetScrollX(ImGuiWindowPtr window, float scrollX) =>
|
|
PInvoke.SetScrollX_internal(window, scrollX);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3425">imgui_internal.h:3425</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12351">imgui.cpp:12351</see>
|
|
/// <br/><c>void SetScrollY(ImGuiWindow* window, float scroll_y)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Scrolling
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetScrollY(ImGuiWindowPtr window, float scrollY) =>
|
|
PInvoke.SetScrollY_internal(window, scrollY);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3426">imgui_internal.h:3426</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12380">imgui.cpp:12380</see>
|
|
/// <br/><c>void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Scrolling
|
|
/// </para>
|
|
/// <code>
|
|
/// Note that a local position will vary depending on initial scroll value,
|
|
/// This is a little bit confusing so bear with us:
|
|
/// - local_pos = (absolution_pos - window->Pos)
|
|
/// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window,
|
|
/// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area.
|
|
/// - They mostly exist because of legacy API.
|
|
/// Following the rules above, when trying to work with scrolling code, consider that:
|
|
/// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect!
|
|
/// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense
|
|
/// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) =>
|
|
PInvoke.SetScrollFromPosX_internal(window, localX, centerXRatio);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3427">imgui_internal.h:3427</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12388">imgui.cpp:12388</see>
|
|
/// <br/><c>void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Scrolling
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) =>
|
|
PInvoke.SetScrollFromPosY_internal(window, localY, centerYRatio);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3430">imgui_internal.h:3430</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12235">imgui.cpp:12235</see>
|
|
/// <br/><c>void ScrollToItem(ImGuiScrollFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Early work-in-progress API (ScrollToItem() will become public)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ScrollToItem(ImGuiScrollFlags flags = default) =>
|
|
PInvoke.ScrollToItem_internal(flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3431">imgui_internal.h:3431</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12242">imgui.cpp:12242</see>
|
|
/// <br/>
|
|
/// <c>void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Early work-in-progress API (ScrollToItem() will become public)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ScrollToRect(
|
|
ImGuiWindowPtr window,
|
|
in floatRect rect,
|
|
ImGuiScrollFlags flags = default
|
|
)
|
|
{
|
|
fixed (floatRect* rect_fixed = &rect)
|
|
{
|
|
PInvoke.ScrollToRect_internal(window, rect_fixed, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3432">imgui_internal.h:3432</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12248">imgui.cpp:12248</see>
|
|
/// <br/>
|
|
/// <c>ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Early work-in-progress API (ScrollToItem() will become public)
|
|
/// </para>
|
|
/// <para>
|
|
/// Scroll to keep newly navigated item fully into view
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 ScrollToRectEx(
|
|
ImGuiWindowPtr window,
|
|
in floatRect rect,
|
|
ImGuiScrollFlags flags = default
|
|
)
|
|
{
|
|
fixed (floatRect* rect_fixed = &rect)
|
|
{
|
|
return PInvoke.ScrollToRectEx_internal(window, rect_fixed, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3434">imgui_internal.h:3434</see>
|
|
/// <br/><c>inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Early work-in-progress API (ScrollToItem() will become public)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ScrollToBringRectIntoView(ImGuiWindowPtr window, in floatRect rect)
|
|
{
|
|
fixed (floatRect* rect_fixed = &rect)
|
|
{
|
|
PInvoke.ScrollToBringRectIntoView_internal(window, rect_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3438">imgui_internal.h:3438</see>
|
|
/// <br/><c>inline ImGuiItemStatusFlags GetItemStatusFlags()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiItemStatusFlags GetItemStatusFlags() => PInvoke.GetItemStatusFlags_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3439">imgui_internal.h:3439</see>
|
|
/// <br/><c>inline ImGuiItemFlags GetItemFlags()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiItemFlags GetItemFlags() => PInvoke.GetItemFlags_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3440">imgui_internal.h:3440</see>
|
|
/// <br/><c>inline ImGuiID GetActiveID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetActiveID() => PInvoke.GetActiveID_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3441">imgui_internal.h:3441</see>
|
|
/// <br/><c>inline ImGuiID GetFocusID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetFocusID() => PInvoke.GetFocusID_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3442">imgui_internal.h:3442</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4611">imgui.cpp:4611</see>
|
|
/// <br/><c>void SetActiveID(ImGuiID id, ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetActiveID(ImGuiID id, ImGuiWindowPtr window) =>
|
|
PInvoke.SetActiveID_internal(id, window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3443">imgui_internal.h:3443</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13523">imgui.cpp:13523</see>
|
|
/// <br/><c>void SetFocusID(ImGuiID id, ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetFocusID(ImGuiID id, ImGuiWindowPtr window) =>
|
|
PInvoke.SetFocusID_internal(id, window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3444">imgui_internal.h:3444</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4675">imgui.cpp:4675</see>
|
|
/// <br/><c>void ClearActiveID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClearActiveID() => PInvoke.ClearActiveID_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3445">imgui_internal.h:3445</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4689">imgui.cpp:4689</see>
|
|
/// <br/><c>ImGuiID GetHoveredID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetHoveredID() => PInvoke.GetHoveredID_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3446">imgui_internal.h:3446</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4680">imgui.cpp:4680</see>
|
|
/// <br/><c>void SetHoveredID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetHoveredID(ImGuiID id) => PInvoke.SetHoveredID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3447">imgui_internal.h:3447</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11647">imgui.cpp:11647</see>
|
|
/// <br/><c>void KeepAliveID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// <para>
|
|
/// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In
|
|
/// IMGUI_VERSION_NUM < 18717 this was called by GetID().
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void KeepAliveID(ImGuiID id) => PInvoke.KeepAliveID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3448">imgui_internal.h:3448</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4695">imgui.cpp:4695</see>
|
|
/// <br/><c>void MarkItemEdited(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void MarkItemEdited(ImGuiID id) => PInvoke.MarkItemEdited_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3449">imgui_internal.h:3449</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9630">imgui.cpp:9630</see>
|
|
/// <br/><c>void PushOverrideID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// <para>
|
|
/// Push a given id value ignoring the ID stack as a seed.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PushOverrideID(ImGuiID id) => PInvoke.PushOverrideID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3450">imgui_internal.h:3450</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9644">imgui.cpp:9644</see>
|
|
/// <br/><c>ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// <code>
|
|
/// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call
|
|
/// (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level.
|
|
/// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetIDWithSeed(ImString strId, ImGuiID seed)
|
|
{
|
|
fixed (byte* strId_fixed = strId)
|
|
{
|
|
return PInvoke.GetIDWithSeed_internal_0(strId_fixed, strId_fixed + strId.Length, seed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3451">imgui_internal.h:3451</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9655">imgui.cpp:9655</see>
|
|
/// <br/><c>ImGuiID GetIDWithSeed(int n, ImGuiID seed)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Accessors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetIDWithSeed(int n, ImGuiID seed) =>
|
|
PInvoke.GetIDWithSeed_internal_1(n, seed);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3454">imgui_internal.h:3454</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11799">imgui.cpp:11799</see>
|
|
/// <br/><c>void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ItemSize(in float2 size, float textBaselineY = -1f)
|
|
{
|
|
fixed (float2* size_fixed = &size)
|
|
{
|
|
PInvoke.ItemSize_internal_0(size_fixed, textBaselineY);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// FIXME: This is a misleading API since we expect CursorPos to be bb.Min.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3455">imgui_internal.h:3455</see>
|
|
/// <br/><c>inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ItemSize(in floatRect bb, float textBaselineY = -1f)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.ItemSize_internal_1(bb_fixed, textBaselineY);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3456">imgui_internal.h:3456</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11661">imgui.cpp:11661</see>
|
|
/// <br/>
|
|
/// <c>bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool ItemAdd(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
Ptr<floatRect> navBb = default,
|
|
ImGuiItemFlags extraFlags = default
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.ItemAdd_internal(bb_fixed, id, (floatRect*)navBb, extraFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3457">imgui_internal.h:3457</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4864">imgui.cpp:4864</see>
|
|
/// <br/><c>bool ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// <code>
|
|
/// Internal facing ItemHoverable() used when submitting widgets. THIS IS A SUBMISSION NOT A HOVER CHECK.
|
|
/// Returns whether the item was hovered, logic differs slightly from IsItemHovered().
|
|
/// (this does not rely on LastItemData it can be called from a ButtonBehavior() call not following an ItemAdd() call)
|
|
/// FIXME-LEGACY: the 'ImGuiItemFlags item_flags' parameter was added on 2023-06-28.
|
|
/// If you used this in your legacy/custom widgets code:
|
|
/// - Commonly: if your ItemHoverable() call comes after an ItemAdd() call: pass 'item_flags = g.LastItemData.ItemFlags'.
|
|
/// - Rare: otherwise you may pass 'item_flags = 0' (ImGuiItemFlags_None) unless you want to benefit from special behavior handled by ItemHoverable.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool ItemHoverable(in floatRect bb, ImGuiID id, ImGuiItemFlags itemFlags)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.ItemHoverable_internal(bb_fixed, id, itemFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3458">imgui_internal.h:3458</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4719">imgui.cpp:4719</see>
|
|
/// <br/><c>bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsWindowContentHoverable(
|
|
ImGuiWindowPtr window,
|
|
ImGuiHoveredFlags flags = default
|
|
) => PInvoke.IsWindowContentHoverable_internal(window, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3459">imgui_internal.h:3459</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4956">imgui.cpp:4956</see>
|
|
/// <br/><c>bool IsClippedEx(const ImRect& bb, ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// <code>
|
|
/// FIXME: This is inlined/duplicated in ItemAdd()
|
|
/// FIXME: The id != 0 path is not used by our codebase, may get rid of it?
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsClippedEx(in floatRect bb, ImGuiID id)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.IsClippedEx_internal(bb_fixed, id);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3460">imgui_internal.h:3460</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4969">imgui.cpp:4969</see>
|
|
/// <br/>
|
|
/// <c>void SetLastItemData(ImGuiID item_id, ImGuiItemFlags item_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// <code>
|
|
/// This is also inlined in ItemAdd()
|
|
/// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set g.LastItemData.DisplayRect.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetLastItemData(
|
|
ImGuiID itemId,
|
|
ImGuiItemFlags itemFlags,
|
|
ImGuiItemStatusFlags statusFlags,
|
|
in floatRect itemRect
|
|
)
|
|
{
|
|
fixed (floatRect* itemRect_fixed = &itemRect)
|
|
{
|
|
PInvoke.SetLastItemData_internal(itemId, itemFlags, statusFlags, itemRect_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3461">imgui_internal.h:3461</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12021">imgui.cpp:12021</see>
|
|
/// <br/><c>ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// <code>
|
|
/// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth().
|
|
/// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical.
|
|
/// Note that only CalcItemWidth() is publicly exposed.
|
|
/// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe float2 CalcItemSize(float2 size, float defaultW, float defaultH) =>
|
|
PInvoke.CalcItemSize_internal(size, defaultW, defaultH);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3462">imgui_internal.h:3462</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4993">imgui.cpp:4993</see>
|
|
/// <br/><c>float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float CalcWrapWidthForPos(in float2 pos, float wrapPosX)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
return PInvoke.CalcWrapWidthForPos_internal(pos_fixed, wrapPosX);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3463">imgui_internal.h:3463</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11965">imgui.cpp:11965</see>
|
|
/// <br/><c>void PushMultiItemsWidths(int components, float width_full)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PushMultiItemsWidths(int components, float widthFull) =>
|
|
PInvoke.PushMultiItemsWidths_internal(components, widthFull);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3464">imgui_internal.h:3464</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1839">imgui_widgets.cpp:1839</see>
|
|
/// <br/>
|
|
/// <c>void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess, float width_min)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Basic Helpers for widget code
|
|
/// </para>
|
|
/// <code>
|
|
/// Shrink excess width from a set of item, by removing width from the larger items first.
|
|
/// Set items Width to -1.0f to disable shrinking this item.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ShrinkWidths(
|
|
ImGuiShrinkWidthItemPtr items,
|
|
int count,
|
|
float widthExcess,
|
|
float widthMin
|
|
) => PInvoke.ShrinkWidths_internal(items, count, widthExcess, widthMin);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3467">imgui_internal.h:3467</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3595">imgui.cpp:3595</see>
|
|
/// <br/><c>const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Parameter stacks (shared)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiStyleVarInfoPtr GetStyleVarInfo(ImGuiStyleVar idx) =>
|
|
PInvoke.GetStyleVarInfo_internal(idx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3468">imgui_internal.h:3468</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8654">imgui.cpp:8654</see>
|
|
/// <br/><c>void BeginDisabledOverrideReenable()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Parameter stacks (shared)
|
|
/// </para>
|
|
/// <code>
|
|
/// Could have been called BeginDisabledDisable() but it didn't want to be award nominated for most awkward function name.
|
|
/// Ideally we would use a shared e.g. BeginDisabled()->BeginDisabledEx() but earlier needs to be optimal.
|
|
/// The whole code for this is awkward, will reevaluate if we find a way to implement SetNextItemDisabled().
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void BeginDisabledOverrideReenable() =>
|
|
PInvoke.BeginDisabledOverrideReenable_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3469">imgui_internal.h:3469</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8665">imgui.cpp:8665</see>
|
|
/// <br/><c>void EndDisabledOverrideReenable()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Parameter stacks (shared)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void EndDisabledOverrideReenable() => PInvoke.EndDisabledOverrideReenable_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3472">imgui_internal.h:3472</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15598">imgui.cpp:15598</see>
|
|
/// <br/><c>void LogBegin(ImGuiLogFlags flags, int auto_open_depth)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Logging/Capture
|
|
/// </para>
|
|
/// <para>
|
|
/// Start logging/capturing text output
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void LogBegin(ImGuiLogFlags flags, int autoOpenDepth) =>
|
|
PInvoke.LogBegin_internal(flags, autoOpenDepth);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Start logging/capturing to internal buffer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3473">imgui_internal.h:3473</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15670">imgui.cpp:15670</see>
|
|
/// <br/><c>void LogToBuffer(int auto_open_depth = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Logging/Capture
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void LogToBuffer(int autoOpenDepth = -1) =>
|
|
PInvoke.LogToBuffer_internal(autoOpenDepth);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3474">imgui_internal.h:3474</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15539">imgui.cpp:15539</see>
|
|
/// <br/>
|
|
/// <c>void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Logging/Capture
|
|
/// </para>
|
|
/// <code>
|
|
/// Internal version that takes a position to decide on newline placement and pad items according to their depth.
|
|
/// We split text into individual lines to add current tree level padding
|
|
/// FIXME: This code is a little complicated perhaps, considering simplifying the whole system.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void LogRenderedText(Ptr<float2> refPos, ImString text)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.LogRenderedText_internal((float2*)refPos, text_fixed, text_fixed + text.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3475">imgui_internal.h:3475</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15617">imgui.cpp:15617</see>
|
|
/// <br/><c>void LogSetNextTextDecoration(const char* prefix, const char* suffix)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Logging/Capture
|
|
/// </para>
|
|
/// <para>
|
|
/// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time
|
|
/// of the next LogRenderedText)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void LogSetNextTextDecoration(ImString prefix, ImString suffix)
|
|
{
|
|
fixed (byte* suffix_fixed = suffix)
|
|
{
|
|
fixed (byte* prefix_fixed = prefix)
|
|
{
|
|
PInvoke.LogSetNextTextDecoration_internal(prefix_fixed, suffix_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3478">imgui_internal.h:3478</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6482">imgui.cpp:6482</see>
|
|
/// <br/>
|
|
/// <c>bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Childs
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginChildEx(
|
|
ImString name,
|
|
ImGuiID id,
|
|
in float2 sizeArg,
|
|
ImGuiChildFlags childFlags,
|
|
ImGuiWindowFlags windowFlags
|
|
)
|
|
{
|
|
fixed (float2* sizeArg_fixed = &sizeArg)
|
|
{
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
return PInvoke.BeginChildEx_internal(name_fixed, id, sizeArg_fixed, childFlags, windowFlags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3481">imgui_internal.h:3481</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12832">imgui.cpp:12832</see>
|
|
/// <br/><c>bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_window_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <para>
|
|
/// Attention! BeginPopup() adds default flags when calling BeginPopupEx()!
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extraWindowFlags) =>
|
|
PInvoke.BeginPopupEx_internal(id, extraWindowFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3482">imgui_internal.h:3482</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12852">imgui.cpp:12852</see>
|
|
/// <br/>
|
|
/// <c>bool BeginPopupMenuEx(ImGuiID id, const char* label, ImGuiWindowFlags extra_window_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginPopupMenuEx(ImGuiID id, ImString label, ImGuiWindowFlags extraWindowFlags)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.BeginPopupMenuEx_internal(id, label_fixed, extraWindowFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3483">imgui_internal.h:3483</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12658">imgui.cpp:12658</see>
|
|
/// <br/><c>void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <code>
|
|
/// Mark popup as open (toggle toward open state).
|
|
/// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block.
|
|
/// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level).
|
|
/// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popupFlags = default) =>
|
|
PInvoke.OpenPopupEx_internal(id, popupFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3484">imgui_internal.h:3484</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12775">imgui.cpp:12775</see>
|
|
/// <br/><c>void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) =>
|
|
PInvoke.ClosePopupToLevel_internal(remaining, restoreFocusToWindowUnderPopup);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3485">imgui_internal.h:3485</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12713">imgui.cpp:12713</see>
|
|
/// <br/>
|
|
/// <c>void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <code>
|
|
/// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it.
|
|
/// This function closes any popups that are over 'ref_window'.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ClosePopupsOverWindow(
|
|
ImGuiWindowPtr refWindow,
|
|
bool restoreFocusToWindowUnderPopup
|
|
) => PInvoke.ClosePopupsOverWindow_internal(refWindow, restoreFocusToWindowUnderPopup);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3486">imgui_internal.h:3486</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12760">imgui.cpp:12760</see>
|
|
/// <br/><c>void ClosePopupsExceptModals()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClosePopupsExceptModals() => PInvoke.ClosePopupsExceptModals_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3487">imgui_internal.h:3487</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12542">imgui.cpp:12542</see>
|
|
/// <br/><c>bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <para>
|
|
/// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popupFlags) =>
|
|
PInvoke.IsPopupOpen_internal(id, popupFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3488">imgui_internal.h:3488</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13097">imgui.cpp:13097</see>
|
|
/// <br/><c>ImRect GetPopupAllowedExtentRect(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <para>
|
|
/// Note that this is used for popups, which can overlap the non work-area of individual viewports.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe floatRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) =>
|
|
PInvoke.GetPopupAllowedExtentRect_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3489">imgui_internal.h:3489</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12583">imgui.cpp:12583</see>
|
|
/// <br/><c>ImGuiWindow* GetTopMostPopupModal()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <para>
|
|
/// Also see FindBlockingModal(NULL)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr GetTopMostPopupModal() => PInvoke.GetTopMostPopupModal_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3490">imgui_internal.h:3490</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12594">imgui.cpp:12594</see>
|
|
/// <br/><c>ImGuiWindow* GetTopMostAndVisiblePopupModal()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <para>
|
|
/// See Demo->Stacked Modal to confirm what this is for.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr GetTopMostAndVisiblePopupModal() =>
|
|
PInvoke.GetTopMostAndVisiblePopupModal_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3491">imgui_internal.h:3491</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12618">imgui.cpp:12618</see>
|
|
/// <br/><c>ImGuiWindow* FindBlockingModal(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <code>
|
|
/// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing)
|
|
/// should be positioned behind that modal window, unless the window was created inside the modal begin-stack.
|
|
/// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent.
|
|
/// - WindowA // FindBlockingModal() returns Modal1
|
|
/// - WindowB // .. returns Modal1
|
|
/// - Modal1 // .. returns Modal2
|
|
/// - WindowC // .. returns Modal2
|
|
/// - WindowD // .. returns Modal2
|
|
/// - Modal2 // .. returns Modal2
|
|
/// - WindowE // .. returns NULL
|
|
/// Notes:
|
|
/// - FindBlockingModal(NULL) == NULL is generally equivalent to GetTopMostPopupModal() == NULL.
|
|
/// Only difference is here we check for ->Active/WasActive but it may be unnecessary.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiWindowPtr FindBlockingModal(ImGuiWindowPtr window) =>
|
|
PInvoke.FindBlockingModal_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3492">imgui_internal.h:3492</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13118">imgui.cpp:13118</see>
|
|
/// <br/><c>ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 FindBestWindowPosForPopup(ImGuiWindowPtr window) =>
|
|
PInvoke.FindBestWindowPosForPopup_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3493">imgui_internal.h:3493</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13022">imgui.cpp:13022</see>
|
|
/// <br/>
|
|
/// <c>ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Popups, Modals
|
|
/// </para>
|
|
/// <code>
|
|
/// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.)
|
|
/// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it.
|
|
/// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor
|
|
/// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport.
|
|
/// this allows us to have tooltips/popups displayed out of the parent viewport.)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe float2 FindBestWindowPosForPopupEx(
|
|
in float2 refPos,
|
|
in float2 size,
|
|
Ptr<ImGuiDir> lastDir,
|
|
in floatRect rOuter,
|
|
in floatRect rAvoid,
|
|
ImGuiPopupPositionPolicy policy
|
|
)
|
|
{
|
|
fixed (floatRect* rAvoid_fixed = &rAvoid)
|
|
{
|
|
fixed (floatRect* rOuter_fixed = &rOuter)
|
|
{
|
|
fixed (float2* size_fixed = &size)
|
|
{
|
|
fixed (float2* refPos_fixed = &refPos)
|
|
{
|
|
return PInvoke.FindBestWindowPosForPopupEx_internal(
|
|
refPos_fixed,
|
|
size_fixed,
|
|
(ImGuiDir*)lastDir,
|
|
rOuter_fixed,
|
|
rAvoid_fixed,
|
|
policy
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3496">imgui_internal.h:3496</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12450">imgui.cpp:12450</see>
|
|
/// <br/>
|
|
/// <c>bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tooltips
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginTooltipEx(
|
|
ImGuiTooltipFlags tooltipFlags,
|
|
ImGuiWindowFlags extraWindowFlags
|
|
) => PInvoke.BeginTooltipEx_internal(tooltipFlags, extraWindowFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3497">imgui_internal.h:3497</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15159">imgui.cpp:15159</see>
|
|
/// <br/><c>bool BeginTooltipHidden()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tooltips
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginTooltipHidden() => PInvoke.BeginTooltipHidden_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3500">imgui_internal.h:3500</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8912">imgui_widgets.cpp:8912</see>
|
|
/// <br/>
|
|
/// <c>bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Menus
|
|
/// </para>
|
|
/// <code>
|
|
/// Important: calling order matters!
|
|
/// FIXME: Somehow overlapping with docking tech.
|
|
/// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool BeginViewportSideBar(
|
|
ImString name,
|
|
ImGuiViewportPtr viewport,
|
|
ImGuiDir dir,
|
|
float size,
|
|
ImGuiWindowFlags windowFlags
|
|
)
|
|
{
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
return PInvoke.BeginViewportSideBar_internal(name_fixed, viewport, dir, size, windowFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3501">imgui_internal.h:3501</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9020">imgui_widgets.cpp:9020</see>
|
|
/// <br/><c>bool BeginMenuEx(const char* label, const char* icon, bool enabled = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Menus
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginMenuEx(ImString label, ImString icon, bool enabled = true)
|
|
{
|
|
fixed (byte* icon_fixed = icon)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.BeginMenuEx_internal(label_fixed, icon_fixed, enabled);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3502">imgui_internal.h:3502</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9255">imgui_widgets.cpp:9255</see>
|
|
/// <br/>
|
|
/// <c>bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Menus
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool MenuItemEx(
|
|
ImString label,
|
|
ImString icon,
|
|
ImString shortcut = default,
|
|
bool selected = false,
|
|
bool enabled = true
|
|
)
|
|
{
|
|
fixed (byte* shortcut_fixed = shortcut)
|
|
{
|
|
fixed (byte* icon_fixed = icon)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.MenuItemEx_internal(
|
|
label_fixed,
|
|
icon_fixed,
|
|
shortcut_fixed,
|
|
selected,
|
|
enabled
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3505">imgui_internal.h:3505</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1982">imgui_widgets.cpp:1982</see>
|
|
/// <br/><c>bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Combos
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginComboPopup(ImGuiID popupId, in floatRect bb, ImGuiComboFlags flags)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.BeginComboPopup_internal(popupId, bb_fixed, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3506">imgui_internal.h:3506</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2056">imgui_widgets.cpp:2056</see>
|
|
/// <br/><c>bool BeginComboPreview()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Combos
|
|
/// </para>
|
|
/// <code>
|
|
/// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements
|
|
/// (Experimental, see GitHub issues: #1658, #4168)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool BeginComboPreview() => PInvoke.BeginComboPreview_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3507">imgui_internal.h:3507</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2083">imgui_widgets.cpp:2083</see>
|
|
/// <br/><c>void EndComboPreview()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Combos
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void EndComboPreview() => PInvoke.EndComboPreview_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3510">imgui_internal.h:3510</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L14019">imgui.cpp:14019</see>
|
|
/// <br/><c>void NavInitWindow(ImGuiWindow* window, bool force_reinit)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// This needs to be called before we submit any widget (aka in or before Begin)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) =>
|
|
PInvoke.NavInitWindow_internal(window, forceReinit);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3511">imgui_internal.h:3511</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L14298">imgui.cpp:14298</see>
|
|
/// <br/><c>void NavInitRequestApplyResult()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavInitRequestApplyResult() => PInvoke.NavInitRequestApplyResult_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3512">imgui_internal.h:3512</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13878">imgui.cpp:13878</see>
|
|
/// <br/><c>bool NavMoveRequestButNoResultYet()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool NavMoveRequestButNoResultYet() => PInvoke.NavMoveRequestButNoResultYet_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3513">imgui_internal.h:3513</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13885">imgui.cpp:13885</see>
|
|
/// <br/>
|
|
/// <c>void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME: ScoringRect is not set
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestSubmit(
|
|
ImGuiDir moveDir,
|
|
ImGuiDir clipDir,
|
|
ImGuiNavMoveFlags moveFlags,
|
|
ImGuiScrollFlags scrollFlags
|
|
) => PInvoke.NavMoveRequestSubmit_internal(moveDir, clipDir, moveFlags, scrollFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3514">imgui_internal.h:3514</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13939">imgui.cpp:13939</see>
|
|
/// <br/>
|
|
/// <c>void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// Forward will reuse the move request again on the next frame (generally with modifications done to
|
|
/// it)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestForward(
|
|
ImGuiDir moveDir,
|
|
ImGuiDir clipDir,
|
|
ImGuiNavMoveFlags moveFlags,
|
|
ImGuiScrollFlags scrollFlags
|
|
) => PInvoke.NavMoveRequestForward_internal(moveDir, clipDir, moveFlags, scrollFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3515">imgui_internal.h:3515</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13910">imgui.cpp:13910</see>
|
|
/// <br/><c>void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) =>
|
|
PInvoke.NavMoveRequestResolveWithLastItem_internal(result);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3516">imgui_internal.h:3516</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13919">imgui.cpp:13919</see>
|
|
/// <br/>
|
|
/// <c>void NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, const ImGuiTreeNodeStackData* tree_node_data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// Called by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsToParent
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestResolveWithPastTreeNode(
|
|
ImGuiNavItemDataPtr result,
|
|
ImGuiTreeNodeStackDataPtr treeNodeData
|
|
) => PInvoke.NavMoveRequestResolveWithPastTreeNode_internal(result, treeNodeData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3517">imgui_internal.h:3517</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13931">imgui.cpp:13931</see>
|
|
/// <br/><c>void NavMoveRequestCancel()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestCancel() => PInvoke.NavMoveRequestCancel_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3518">imgui_internal.h:3518</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L14498">imgui.cpp:14498</see>
|
|
/// <br/><c>void NavMoveRequestApplyResult()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// Apply result from previous frame navigation directional move request. Always called from NavUpdate()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestApplyResult() => PInvoke.NavMoveRequestApplyResult_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3519">imgui_internal.h:3519</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13953">imgui.cpp:13953</see>
|
|
/// <br/><c>void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <code>
|
|
/// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire
|
|
/// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) =>
|
|
PInvoke.NavMoveRequestTryWrapping_internal(window, moveFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3520">imgui_internal.h:3520</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13494">imgui.cpp:13494</see>
|
|
/// <br/><c>void NavHighlightActivated(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavHighlightActivated(ImGuiID id) => PInvoke.NavHighlightActivated_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3521">imgui_internal.h:3521</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13501">imgui.cpp:13501</see>
|
|
/// <br/><c>void NavClearPreferredPosForAxis(ImGuiAxis axis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void NavClearPreferredPosForAxis(ImGuiAxis axis) =>
|
|
PInvoke.NavClearPreferredPosForAxis_internal(axis);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3522">imgui_internal.h:3522</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13473">imgui.cpp:13473</see>
|
|
/// <br/><c>void SetNavCursorVisibleAfterMove()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <para>
|
|
/// (was called NavRestoreHighlightAfterMove() before 1.91.4)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNavCursorVisibleAfterMove() => PInvoke.SetNavCursorVisibleAfterMove_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3523">imgui_internal.h:3523</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13727">imgui.cpp:13727</see>
|
|
/// <br/><c>void NavUpdateCurrentWindowIsScrollPushableX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// <code>
|
|
/// True when current work location may be scrolled horizontally when moving left / right.
|
|
/// This is generally always true UNLESS within a column. We don't have a vertical equivalent.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void NavUpdateCurrentWindowIsScrollPushableX() =>
|
|
PInvoke.NavUpdateCurrentWindowIsScrollPushableX_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3524">imgui_internal.h:3524</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13481">imgui.cpp:13481</see>
|
|
/// <br/><c>void SetNavWindow(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNavWindow(ImGuiWindowPtr window) => PInvoke.SetNavWindow_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3525">imgui_internal.h:3525</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13507">imgui.cpp:13507</see>
|
|
/// <br/>
|
|
/// <c>void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNavID(
|
|
ImGuiID id,
|
|
ImGuiNavLayer navLayer,
|
|
ImGuiID focusScopeId,
|
|
in floatRect rectRel
|
|
)
|
|
{
|
|
fixed (floatRect* rectRel_fixed = &rectRel)
|
|
{
|
|
PInvoke.SetNavID_internal(id, navLayer, focusScopeId, rectRel_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3526">imgui_internal.h:3526</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9143">imgui.cpp:9143</see>
|
|
/// <br/><c>void SetNavFocusScope(ImGuiID focus_scope_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Keyboard/Gamepad Navigation
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNavFocusScope(ImGuiID focusScopeId) =>
|
|
PInvoke.SetNavFocusScope_internal(focusScopeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Focus last item (no selection/activation).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3531">imgui_internal.h:3531</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9171">imgui.cpp:9171</see>
|
|
/// <br/><c>void FocusItem()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Focus/Activation
|
|
/// This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are
|
|
/// much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones.
|
|
/// </code>
|
|
/// <para>
|
|
/// Focus = move navigation cursor, set scrolling, set focus window.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void FocusItem() => PInvoke.FocusItem_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the
|
|
/// next frame when the item is encountered again. Was called 'ActivateItem()' before 1.89.7.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3532">imgui_internal.h:3532</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9189">imgui.cpp:9189</see>
|
|
/// <br/><c>void ActivateItemByID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Focus/Activation
|
|
/// This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are
|
|
/// much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ActivateItemByID(ImGuiID id) => PInvoke.ActivateItemByID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3536">imgui_internal.h:3536</see>
|
|
/// <br/><c>inline bool IsNamedKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsNamedKey(ImGuiKey key) => PInvoke.IsNamedKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3537">imgui_internal.h:3537</see>
|
|
/// <br/><c>inline bool IsNamedKeyOrMod(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsNamedKeyOrMod(ImGuiKey key) => PInvoke.IsNamedKeyOrMod_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3538">imgui_internal.h:3538</see>
|
|
/// <br/><c>inline bool IsLegacyKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsLegacyKey(ImGuiKey key) => PInvoke.IsLegacyKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3539">imgui_internal.h:3539</see>
|
|
/// <br/><c>inline bool IsKeyboardKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsKeyboardKey(ImGuiKey key) => PInvoke.IsKeyboardKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3540">imgui_internal.h:3540</see>
|
|
/// <br/><c>inline bool IsGamepadKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsGamepadKey(ImGuiKey key) => PInvoke.IsGamepadKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3541">imgui_internal.h:3541</see>
|
|
/// <br/><c>inline bool IsMouseKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseKey(ImGuiKey key) => PInvoke.IsMouseKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3542">imgui_internal.h:3542</see>
|
|
/// <br/><c>inline bool IsAliasKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsAliasKey(ImGuiKey key) => PInvoke.IsAliasKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3543">imgui_internal.h:3543</see>
|
|
/// <br/><c>inline bool IsLRModKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsLRModKey(ImGuiKey key) => PInvoke.IsLRModKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3544">imgui_internal.h:3544</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9781">imgui.cpp:9781</see>
|
|
/// <br/><c>ImGuiKeyChord FixupKeyChord(ImGuiKeyChord key_chord)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiKeyChord FixupKeyChord(ImGuiKeyChord keyChord) =>
|
|
PInvoke.FixupKeyChord_internal(keyChord);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3545">imgui_internal.h:3545</see>
|
|
/// <br/><c>inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Inputs
|
|
/// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) =>
|
|
PInvoke.ConvertSingleModFlagToKey_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3554">imgui_internal.h:3554</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9790">imgui.cpp:9790</see>
|
|
/// <br/><c>ImGuiKeyData* GetKeyData(ImGuiContext* ctx, ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImGuiKeyDataPtr GetKeyData(ImGuiContextPtr ctx, ImGuiKey key) =>
|
|
PInvoke.GetKeyData_internal_0(ctx, key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3555">imgui_internal.h:3555</see>
|
|
/// <br/><c>inline ImGuiKeyData* GetKeyData(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImGuiKeyDataPtr GetKeyData(ImGuiKey key) => PInvoke.GetKeyData_internal_1(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3556">imgui_internal.h:3556</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9844">imgui.cpp:9844</see>
|
|
/// <br/><c>const char* GetKeyChordName(ImGuiKeyChord key_chord)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Return untranslated names: on macOS, Cmd key will show as Ctrl, Ctrl key will show as super.
|
|
/// Lifetime of return value: valid until next call to same function.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe Ptr<byte> GetKeyChordName(ImGuiKeyChord keyChord) =>
|
|
PInvoke.GetKeyChordName_internal(keyChord);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3557">imgui_internal.h:3557</see>
|
|
/// <br/><c>inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe ImGuiKey MouseButtonToKey(ImGuiMouseButton button) =>
|
|
PInvoke.MouseButtonToKey_internal(button);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3558">imgui_internal.h:3558</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10355">imgui.cpp:10355</see>
|
|
/// <br/><c>bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame.
|
|
/// [Internal] This doesn't test if the button is pressed
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold = -1f) =>
|
|
PInvoke.IsMouseDragPastThreshold_internal(button, lockThreshold);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3559">imgui_internal.h:3559</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9906">imgui.cpp:9906</see>
|
|
/// <br/>
|
|
/// <c>ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Return 2D vector representing the combination of four cardinal direction, with analog value support
|
|
/// (for e.g. ImGuiKey_GamepadLStick* values).
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 GetKeyMagnitude2d(
|
|
ImGuiKey keyLeft,
|
|
ImGuiKey keyRight,
|
|
ImGuiKey keyUp,
|
|
ImGuiKey keyDown
|
|
) => PInvoke.GetKeyMagnitude2d_internal(keyLeft, keyRight, keyUp, keyDown);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3560">imgui_internal.h:3560</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L14102">imgui.cpp:14102</see>
|
|
/// <br/><c>float GetNavTweakPressedAmount(ImGuiAxis axis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float GetNavTweakPressedAmount(ImGuiAxis axis) =>
|
|
PInvoke.GetNavTweakPressedAmount_internal(axis);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3561">imgui_internal.h:3561</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9868">imgui.cpp:9868</see>
|
|
/// <br/><c>int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime)
|
|
/// t1 = current time (e.g.: g.Time)
|
|
/// An event is triggered at:
|
|
/// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe int CalcTypematicRepeatAmount(
|
|
float t0,
|
|
float t1,
|
|
float repeatDelay,
|
|
float repeatRate
|
|
) => PInvoke.CalcTypematicRepeatAmount_internal(t0, t1, repeatDelay, repeatRate);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3562">imgui_internal.h:3562</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9882">imgui.cpp:9882</see>
|
|
/// <br/>
|
|
/// <c>void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void GetTypematicRepeatRate(
|
|
ImGuiInputFlags flags,
|
|
Ptr<float> repeatDelay,
|
|
Ptr<float> repeatRate
|
|
) => PInvoke.GetTypematicRepeatRate_internal(flags, (float*)repeatDelay, (float*)repeatRate);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3563">imgui_internal.h:3563</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10381">imgui.cpp:10381</see>
|
|
/// <br/><c>void TeleportMousePos(const ImVec2& pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This is called TeleportMousePos() and not SetMousePos() to emphasis that setting MousePosPrev will effectively clear mouse delta as well.
|
|
/// It is expected you only call this if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) is set and supported by backend.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TeleportMousePos(in float2 pos)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
PInvoke.TeleportMousePos_internal(pos_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3564">imgui_internal.h:3564</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6436">imgui.cpp:6436</see>
|
|
/// <br/><c>void SetActiveIdUsingAllKeyboardKeys()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This is a shortcut for not taking ownership of 100+ keys, frequently used by drag operations.
|
|
/// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version if needed?
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetActiveIdUsingAllKeyboardKeys() =>
|
|
PInvoke.SetActiveIdUsingAllKeyboardKeys_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3565">imgui_internal.h:3565</see>
|
|
/// <br/><c>inline bool IsActiveIdUsingNavDir(ImGuiDir dir)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool IsActiveIdUsingNavDir(ImGuiDir dir) =>
|
|
PInvoke.IsActiveIdUsingNavDir_internal(dir);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3578">imgui_internal.h:3578</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10961">imgui.cpp:10961</see>
|
|
/// <br/><c>ImGuiID GetKeyOwner(ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetKeyOwner(ImGuiKey key) => PInvoke.GetKeyOwner_internal(key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3579">imgui_internal.h:3579</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11014">imgui.cpp:11014</see>
|
|
/// <br/><c>void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// <code>
|
|
/// _LockXXX flags are useful to lock keys away from code which is not input-owner aware.
|
|
/// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone.
|
|
/// - SetKeyOwner(..., None) : clears owner
|
|
/// - SetKeyOwner(..., Any, !Lock) : illegal (assert)
|
|
/// - SetKeyOwner(..., Any or None, Lock) : set lock
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetKeyOwner(ImGuiKey key, ImGuiID ownerId, ImGuiInputFlags flags = default) =>
|
|
PInvoke.SetKeyOwner_internal(key, ownerId, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3580">imgui_internal.h:3580</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11031">imgui.cpp:11031</see>
|
|
/// <br/>
|
|
/// <c>void SetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// <para>
|
|
/// Rarely used helper
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetKeyOwnersForKeyChord(
|
|
ImGuiKeyChord key,
|
|
ImGuiID ownerId,
|
|
ImGuiInputFlags flags = default
|
|
) => PInvoke.SetKeyOwnersForKeyChord_internal(key, ownerId, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() ||
|
|
/// IsItemActive()) { SetKeyOwner(key, GetItemID());'.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3581">imgui_internal.h:3581</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11046">imgui.cpp:11046</see>
|
|
/// <br/><c>void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// <code>
|
|
/// This is more or less equivalent to:
|
|
/// if (IsItemHovered() || IsItemActive())
|
|
/// SetKeyOwner(key, GetItemID());
|
|
/// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times.
|
|
/// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition.
|
|
/// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) =>
|
|
PInvoke.SetItemKeyOwner_internal(key, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Test that key is either not owned, either owned by 'owner_id'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3582">imgui_internal.h:3582</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10981">imgui.cpp:10981</see>
|
|
/// <br/><c>bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// <code>
|
|
/// TestKeyOwner(..., ID) : (owner == None || owner == ID)
|
|
/// TestKeyOwner(..., None) : (owner == None)
|
|
/// TestKeyOwner(..., Any) : no owner test
|
|
/// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool TestKeyOwner(ImGuiKey key, ImGuiID ownerId) =>
|
|
PInvoke.TestKeyOwner_internal(key, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3583">imgui_internal.h:3583</see>
|
|
/// <br/><c>inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Low-Level: Key/Input Ownership
|
|
/// - The idea is that instead of "eating" a given input, we can link to an owner id.
|
|
/// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
|
|
/// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
|
|
/// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
|
|
/// - Input ownership is automatically released on the frame after a key is released. Therefore:
|
|
/// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
|
|
/// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
|
|
/// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
|
|
/// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
|
|
/// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiKeyOwnerDataPtr GetKeyOwnerData(ImGuiContextPtr ctx, ImGuiKey key) =>
|
|
PInvoke.GetKeyOwnerData_internal(ctx, key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3591">imgui_internal.h:3591</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10176">imgui.cpp:10176</see>
|
|
/// <br/><c>bool IsKeyDown(ImGuiKey key, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsKeyDown(ImGuiKey key, ImGuiID ownerId) =>
|
|
PInvoke.IsKeyDown_internal(key, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so
|
|
/// would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3592">imgui_internal.h:3592</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10192">imgui.cpp:10192</see>
|
|
/// <br/><c>bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// <para>
|
|
/// Important: unlike legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this
|
|
/// requires EXPLICIT repeat.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID ownerId = default) =>
|
|
PInvoke.IsKeyPressed_internal(key, flags, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3593">imgui_internal.h:3593</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10236">imgui.cpp:10236</see>
|
|
/// <br/><c>bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsKeyReleased(ImGuiKey key, ImGuiID ownerId) =>
|
|
PInvoke.IsKeyReleased_internal(key, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3594">imgui_internal.h:3594</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11073">imgui.cpp:11073</see>
|
|
/// <br/>
|
|
/// <c>bool IsKeyChordPressed(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// <para>
|
|
/// This is equivalent to comparing KeyMods + doing a IsKeyPressed()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsKeyChordPressed(
|
|
ImGuiKeyChord keyChord,
|
|
ImGuiInputFlags flags,
|
|
ImGuiID ownerId = default
|
|
) => PInvoke.IsKeyChordPressed_internal(keyChord, flags, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3595">imgui_internal.h:3595</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10253">imgui.cpp:10253</see>
|
|
/// <br/><c>bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseDown(ImGuiMouseButton button, ImGuiID ownerId) =>
|
|
PInvoke.IsMouseDown_internal(button, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3596">imgui_internal.h:3596</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10265">imgui.cpp:10265</see>
|
|
/// <br/>
|
|
/// <c>bool IsMouseClicked(ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID owner_id = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseClicked(
|
|
ImGuiMouseButton button,
|
|
ImGuiInputFlags flags,
|
|
ImGuiID ownerId = default
|
|
) => PInvoke.IsMouseClicked_internal(button, flags, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3597">imgui_internal.h:3597</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10294">imgui.cpp:10294</see>
|
|
/// <br/><c>bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseReleased(ImGuiMouseButton button, ImGuiID ownerId) =>
|
|
PInvoke.IsMouseReleased_internal(button, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3598">imgui_internal.h:3598</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10319">imgui.cpp:10319</see>
|
|
/// <br/><c>bool IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
|
|
/// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
|
|
/// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
|
|
/// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
|
|
/// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
|
|
/// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID ownerId) =>
|
|
PInvoke.IsMouseDoubleClicked_internal(button, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3614">imgui_internal.h:3614</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11128">imgui.cpp:11128</see>
|
|
/// <br/><c>bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Shortcut Testing & Routing
|
|
/// - Set Shortcut() and SetNextItemShortcut() in imgui.h
|
|
/// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
|
|
/// allowing the system to decide where to route the input among other route-aware calls.
|
|
/// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
|
|
/// - When using one of the routing option:
|
|
/// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
|
|
/// - Routes are requested given a chord (key + modifiers) and a routing policy.
|
|
/// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
|
|
/// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
|
|
/// - Multiple read sites may use the same owner id can all access the granted route.
|
|
/// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
|
|
/// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
|
|
/// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool Shortcut(ImGuiKeyChord keyChord, ImGuiInputFlags flags, ImGuiID ownerId) =>
|
|
PInvoke.Shortcut_internal(keyChord, flags, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// owner_id needs to be explicit and cannot be 0
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3615">imgui_internal.h:3615</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10076">imgui.cpp:10076</see>
|
|
/// <br/>
|
|
/// <c>bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Shortcut Testing & Routing
|
|
/// - Set Shortcut() and SetNextItemShortcut() in imgui.h
|
|
/// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
|
|
/// allowing the system to decide where to route the input among other route-aware calls.
|
|
/// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
|
|
/// - When using one of the routing option:
|
|
/// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
|
|
/// - Routes are requested given a chord (key + modifiers) and a routing policy.
|
|
/// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
|
|
/// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
|
|
/// - Multiple read sites may use the same owner id can all access the granted route.
|
|
/// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
|
|
/// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
|
|
/// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
|
|
/// </code>
|
|
/// <code>
|
|
/// Request a desired route for an input chord (key + mods).
|
|
/// Return true if the route is available this frame.
|
|
/// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state.
|
|
/// (Conceptually this does a "Submit for next frame" + "Test for current frame".
|
|
/// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool SetShortcutRouting(
|
|
ImGuiKeyChord keyChord,
|
|
ImGuiInputFlags flags,
|
|
ImGuiID ownerId
|
|
) => PInvoke.SetShortcutRouting_internal(keyChord, flags, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3616">imgui_internal.h:3616</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L10161">imgui.cpp:10161</see>
|
|
/// <br/><c>bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Shortcut Testing & Routing
|
|
/// - Set Shortcut() and SetNextItemShortcut() in imgui.h
|
|
/// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
|
|
/// allowing the system to decide where to route the input among other route-aware calls.
|
|
/// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
|
|
/// - When using one of the routing option:
|
|
/// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
|
|
/// - Routes are requested given a chord (key + modifiers) and a routing policy.
|
|
/// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
|
|
/// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
|
|
/// - Multiple read sites may use the same owner id can all access the granted route.
|
|
/// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
|
|
/// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
|
|
/// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
|
|
/// </code>
|
|
/// <code>
|
|
/// Currently unused by core (but used by tests)
|
|
/// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool TestShortcutRouting(ImGuiKeyChord keyChord, ImGuiID ownerId) =>
|
|
PInvoke.TestShortcutRouting_internal(keyChord, ownerId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3617">imgui_internal.h:3617</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9964">imgui.cpp:9964</see>
|
|
/// <br/><c>ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Shortcut Testing & Routing
|
|
/// - Set Shortcut() and SetNextItemShortcut() in imgui.h
|
|
/// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
|
|
/// allowing the system to decide where to route the input among other route-aware calls.
|
|
/// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
|
|
/// - When using one of the routing option:
|
|
/// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
|
|
/// - Routes are requested given a chord (key + modifiers) and a routing policy.
|
|
/// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
|
|
/// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
|
|
/// - Multiple read sites may use the same owner id can all access the granted route.
|
|
/// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
|
|
/// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
|
|
/// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiKeyRoutingDataPtr GetShortcutRoutingData(ImGuiKeyChord keyChord) =>
|
|
PInvoke.GetShortcutRoutingData_internal(keyChord);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3621">imgui_internal.h:3621</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17386">imgui.cpp:17386</see>
|
|
/// <br/><c>void DockContextInitialize(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextInitialize(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextInitialize_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3622">imgui_internal.h:3622</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17405">imgui.cpp:17405</see>
|
|
/// <br/><c>void DockContextShutdown(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextShutdown(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextShutdown_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Use root_id==0 to clear all
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3623">imgui_internal.h:3623</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17413">imgui.cpp:17413</see>
|
|
/// <br/><c>void DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextClearNodes(
|
|
ImGuiContextPtr ctx,
|
|
ImGuiID rootId,
|
|
bool clearSettingsRefs
|
|
) => PInvoke.DockContextClearNodes_internal(ctx, rootId, clearSettingsRefs);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3624">imgui_internal.h:3624</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17423">imgui.cpp:17423</see>
|
|
/// <br/><c>void DockContextRebuildNodes(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <code>
|
|
/// [DEBUG] This function also acts as a defacto test to make sure we can rebuild from scratch without a glitch
|
|
/// (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextRebuildNodes(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextRebuildNodes_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3625">imgui_internal.h:3625</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17436">imgui.cpp:17436</see>
|
|
/// <br/><c>void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <para>
|
|
/// Docking context update function, called by NewFrame()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextNewFrameUpdateUndocking_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3626">imgui_internal.h:3626</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17479">imgui.cpp:17479</see>
|
|
/// <br/><c>void DockContextNewFrameUpdateDocking(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <para>
|
|
/// Docking context update function, called by NewFrame()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextNewFrameUpdateDocking_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3627">imgui_internal.h:3627</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17512">imgui.cpp:17512</see>
|
|
/// <br/><c>void DockContextEndFrame(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextEndFrame(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextEndFrame_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3628">imgui_internal.h:3628</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17533">imgui.cpp:17533</see>
|
|
/// <br/><c>ImGuiID DockContextGenNodeID(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID DockContextGenNodeID(ImGuiContextPtr ctx) =>
|
|
PInvoke.DockContextGenNodeID_internal(ctx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3629">imgui_internal.h:3629</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17732">imgui.cpp:17732</see>
|
|
/// <br/>
|
|
/// <c>void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextQueueDock(
|
|
ImGuiContextPtr ctx,
|
|
ImGuiWindowPtr target,
|
|
ImGuiDockNodePtr targetNode,
|
|
ImGuiWindowPtr payload,
|
|
ImGuiDir splitDir,
|
|
float splitRatio,
|
|
bool splitOuter
|
|
) =>
|
|
PInvoke.DockContextQueueDock_internal(
|
|
ctx,
|
|
target,
|
|
targetNode,
|
|
payload,
|
|
splitDir,
|
|
splitRatio,
|
|
splitOuter
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3630">imgui_internal.h:3630</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17746">imgui.cpp:17746</see>
|
|
/// <br/><c>void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) =>
|
|
PInvoke.DockContextQueueUndockWindow_internal(ctx, window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3631">imgui_internal.h:3631</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17754">imgui.cpp:17754</see>
|
|
/// <br/><c>void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) =>
|
|
PInvoke.DockContextQueueUndockNode_internal(ctx, node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3632">imgui_internal.h:3632</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17931">imgui.cpp:17931</see>
|
|
/// <br/>
|
|
/// <c>void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextProcessUndockWindow(
|
|
ImGuiContextPtr ctx,
|
|
ImGuiWindowPtr window,
|
|
bool clearPersistentDockingRef = true
|
|
) => PInvoke.DockContextProcessUndockWindow_internal(ctx, window, clearPersistentDockingRef);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3633">imgui_internal.h:3633</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17947">imgui.cpp:17947</see>
|
|
/// <br/><c>void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockContextProcessUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) =>
|
|
PInvoke.DockContextProcessUndockNode_internal(ctx, node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3634">imgui_internal.h:3634</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17989">imgui.cpp:17989</see>
|
|
/// <br/>
|
|
/// <c>bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <para>
|
|
/// This is mostly used for automation.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool DockContextCalcDropPosForDocking(
|
|
ImGuiWindowPtr target,
|
|
ImGuiDockNodePtr targetNode,
|
|
ImGuiWindowPtr payloadWindow,
|
|
ImGuiDockNodePtr payloadNode,
|
|
ImGuiDir splitDir,
|
|
bool splitOuter,
|
|
out float2 outPos
|
|
)
|
|
{
|
|
fixed (float2* outPos_fixed = &outPos)
|
|
{
|
|
return PInvoke.DockContextCalcDropPosForDocking_internal(
|
|
target,
|
|
targetNode,
|
|
payloadWindow,
|
|
payloadNode,
|
|
splitDir,
|
|
splitOuter,
|
|
outPos_fixed
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3635">imgui_internal.h:3635</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L17528">imgui.cpp:17528</see>
|
|
/// <br/><c>ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDockNodePtr DockContextFindNodeByID(ImGuiContextPtr ctx, ImGuiID id) =>
|
|
PInvoke.DockContextFindNodeByID_internal(ctx, id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3636">imgui_internal.h:3636</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L18823">imgui.cpp:18823</see>
|
|
/// <br/>
|
|
/// <c>void DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <code>
|
|
/// Default handler for g.DockNodeWindowMenuHandler(): display the list of windows for a given dock-node.
|
|
/// This is exceptionally stored in a function pointer to also user applications to tweak this menu (undocumented)
|
|
/// Custom overrides may want to decorate, group, sort entries.
|
|
/// Please note those are internal structures: if you copy this expect occasional breakage.
|
|
/// (if you don't need to modify the "Tabs.Size == 1" behavior/path it is recommend you call this function in your handler)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockNodeWindowMenuHandler_Default(
|
|
ImGuiContextPtr ctx,
|
|
ImGuiDockNodePtr node,
|
|
ImGuiTabBarPtr tabBar
|
|
) => PInvoke.DockNodeWindowMenuHandler_Default_internal(ctx, node, tabBar);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3637">imgui_internal.h:3637</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L18865">imgui.cpp:18865</see>
|
|
/// <br/><c>bool DockNodeBeginAmendTabBar(ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <para>
|
|
/// User helper to append/amend into a dock node tab bar. Most commonly used to add e.g. a "+" button.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) =>
|
|
PInvoke.DockNodeBeginAmendTabBar_internal(node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3638">imgui_internal.h:3638</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L18881">imgui.cpp:18881</see>
|
|
/// <br/><c>void DockNodeEndAmendTabBar()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockNodeEndAmendTabBar() => PInvoke.DockNodeEndAmendTabBar_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3639">imgui_internal.h:3639</see>
|
|
/// <br/><c>inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) =>
|
|
PInvoke.DockNodeGetRootNode_internal(node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3640">imgui_internal.h:3640</see>
|
|
/// <br/><c>inline bool DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) =>
|
|
PInvoke.DockNodeIsInHierarchyOf_internal(node, parent);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3641">imgui_internal.h:3641</see>
|
|
/// <br/><c>inline int DockNodeGetDepth(const ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe int DockNodeGetDepth(ImGuiDockNodePtr node) => PInvoke.DockNodeGetDepth_internal(node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3642">imgui_internal.h:3642</see>
|
|
/// <br/><c>inline ImGuiID DockNodeGetWindowMenuButtonId(const ImGuiDockNode* node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) =>
|
|
PInvoke.DockNodeGetWindowMenuButtonId_internal(node);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3643">imgui_internal.h:3643</see>
|
|
/// <br/><c>inline ImGuiDockNode* GetWindowDockNode()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDockNodePtr GetWindowDockNode() => PInvoke.GetWindowDockNode_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3644">imgui_internal.h:3644</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20587">imgui.cpp:20587</see>
|
|
/// <br/><c>bool GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) =>
|
|
PInvoke.GetWindowAlwaysWantOwnTabBar_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3645">imgui_internal.h:3645</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20647">imgui.cpp:20647</see>
|
|
/// <br/><c>void BeginDocked(ImGuiWindow* window, bool* p_open)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void BeginDocked(ImGuiWindowPtr window, ref bool pOpen)
|
|
{
|
|
fixed (bool* pOpen_fixed = &pOpen)
|
|
{
|
|
PInvoke.BeginDocked_internal(window, (Bool8*)pOpen_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3645">imgui_internal.h:3645</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20647">imgui.cpp:20647</see>
|
|
/// <br/><c>void BeginDocked(ImGuiWindow* window, bool* p_open)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void BeginDocked(ImGuiWindowPtr window) => PInvoke.BeginDocked_internal(window, null);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3646">imgui_internal.h:3646</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20773">imgui.cpp:20773</see>
|
|
/// <br/><c>void BeginDockableDragDropSource(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void BeginDockableDragDropSource(ImGuiWindowPtr window) =>
|
|
PInvoke.BeginDockableDragDropSource_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3647">imgui_internal.h:3647</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20805">imgui.cpp:20805</see>
|
|
/// <br/><c>void BeginDockableDragDropTarget(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void BeginDockableDragDropTarget(ImGuiWindowPtr window) =>
|
|
PInvoke.BeginDockableDragDropTarget_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3648">imgui_internal.h:3648</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L19956">imgui.cpp:19956</see>
|
|
/// <br/><c>void SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking
|
|
/// (some functions are only declared in imgui.cpp, see Docking section)
|
|
/// </code>
|
|
/// <para>
|
|
/// [Internal] Called via SetNextWindowDockID()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowDock(ImGuiWindowPtr window, ImGuiID dockId, ImGuiCond cond) =>
|
|
PInvoke.SetWindowDock_internal(window, dockId, cond);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3659">imgui_internal.h:3659</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20169">imgui.cpp:20169</see>
|
|
/// <br/><c>void DockBuilderDockWindow(const char* window_name, ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderDockWindow(ImString windowName, ImGuiID nodeId)
|
|
{
|
|
fixed (byte* windowName_fixed = windowName)
|
|
{
|
|
PInvoke.DockBuilderDockWindow_internal(windowName_fixed, nodeId);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3660">imgui_internal.h:3660</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20195">imgui.cpp:20195</see>
|
|
/// <br/><c>ImGuiDockNode*DockBuilderGetNode(ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDockNodePtr DockBuilderGetNode(ImGuiID nodeId) =>
|
|
PInvoke.DockBuilderGetNode_internal(nodeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3661">imgui_internal.h:3661</see>
|
|
/// <br/><c>inline ImGuiDockNode* DockBuilderGetCentralNode(ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDockNodePtr DockBuilderGetCentralNode(ImGuiID nodeId) =>
|
|
PInvoke.DockBuilderGetCentralNode_internal(nodeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3662">imgui_internal.h:3662</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20229">imgui.cpp:20229</see>
|
|
/// <br/><c>ImGuiID DockBuilderAddNode(ImGuiID node_id = 0, ImGuiDockNodeFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// <code>
|
|
/// Make sure to use the ImGuiDockNodeFlags_DockSpace flag to create a dockspace node! Otherwise this will create a floating node!
|
|
/// - Floating node: you can then call DockBuilderSetNodePos()/DockBuilderSetNodeSize() to position and size the floating node.
|
|
/// - Dockspace node: calling DockBuilderSetNodePos() is unnecessary.
|
|
/// - If you intend to split a node immediately after creation using DockBuilderSplitNode(), make sure to call DockBuilderSetNodeSize() beforehand!
|
|
/// For various reason, the splitting code currently needs a base size otherwise space may not be allocated as precisely as you would expect.
|
|
/// - Use (id == 0) to let the system allocate a node identifier.
|
|
/// - Existing node with a same id will be removed.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID DockBuilderAddNode(
|
|
ImGuiID nodeId = default,
|
|
ImGuiDockNodeFlags flags = default
|
|
) => PInvoke.DockBuilderAddNode_internal(nodeId, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Remove node and all its child, undock all windows
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3663">imgui_internal.h:3663</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20252">imgui.cpp:20252</see>
|
|
/// <br/><c>void DockBuilderRemoveNode(ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderRemoveNode(ImGuiID nodeId) =>
|
|
PInvoke.DockBuilderRemoveNode_internal(nodeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3664">imgui_internal.h:3664</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20342">imgui.cpp:20342</see>
|
|
/// <br/>
|
|
/// <c>void DockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderRemoveNodeDockedWindows(
|
|
ImGuiID nodeId,
|
|
bool clearSettingsRefs = true
|
|
) => PInvoke.DockBuilderRemoveNodeDockedWindows_internal(nodeId, clearSettingsRefs);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root
|
|
/// node (node_id).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3665">imgui_internal.h:3665</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20272">imgui.cpp:20272</see>
|
|
/// <br/><c>void DockBuilderRemoveNodeChildNodes(ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// <para>
|
|
/// root_id = 0 to remove all, root_id != 0 to remove child of given node.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderRemoveNodeChildNodes(ImGuiID nodeId) =>
|
|
PInvoke.DockBuilderRemoveNodeChildNodes_internal(nodeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3666">imgui_internal.h:3666</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20201">imgui.cpp:20201</see>
|
|
/// <br/><c>void DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderSetNodePos(ImGuiID nodeId, float2 pos) =>
|
|
PInvoke.DockBuilderSetNodePos_internal(nodeId, pos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3667">imgui_internal.h:3667</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20211">imgui.cpp:20211</see>
|
|
/// <br/><c>void DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderSetNodeSize(ImGuiID nodeId, float2 size) =>
|
|
PInvoke.DockBuilderSetNodeSize_internal(nodeId, size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Create 2 child nodes in this parent node.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3668">imgui_internal.h:3668</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20379">imgui.cpp:20379</see>
|
|
/// <br/>
|
|
/// <c>ImGuiID DockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// <code>
|
|
/// If 'out_id_at_dir' or 'out_id_at_opposite_dir' are non NULL, the function will write out the ID of the two new nodes created.
|
|
/// Return value is ID of the node at the specified direction, so same as (*out_id_at_dir) if that pointer is set.
|
|
/// FIXME-DOCK: We are not exposing nor using split_outer.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID DockBuilderSplitNode(
|
|
ImGuiID nodeId,
|
|
ImGuiDir splitDir,
|
|
float sizeRatioForNodeAtDir,
|
|
out ImGuiID outIdAtDir,
|
|
out ImGuiID outIdAtOppositeDir
|
|
)
|
|
{
|
|
fixed (ImGuiID* outIdAtOppositeDir_fixed = &outIdAtOppositeDir)
|
|
{
|
|
fixed (ImGuiID* outIdAtDir_fixed = &outIdAtDir)
|
|
{
|
|
return PInvoke.DockBuilderSplitNode_internal(
|
|
nodeId,
|
|
splitDir,
|
|
sizeRatioForNodeAtDir,
|
|
outIdAtDir_fixed,
|
|
outIdAtOppositeDir_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3669">imgui_internal.h:3669</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20490">imgui.cpp:20490</see>
|
|
/// <br/>
|
|
/// <c>void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector<const char*>* in_window_remap_pairs)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// <para>
|
|
/// FIXME: Will probably want to change this signature, in particular how the window remapping pairs are
|
|
/// passed.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderCopyDockSpace(
|
|
ImGuiID srcDockspaceId,
|
|
ImGuiID dstDockspaceId,
|
|
Ptr<ImVector<Ptr<byte>>> inWindowRemapPairs
|
|
) =>
|
|
PInvoke.DockBuilderCopyDockSpace_internal(
|
|
srcDockspaceId,
|
|
dstDockspaceId,
|
|
(ImVector<Ptr<byte>>*)inWindowRemapPairs
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3670">imgui_internal.h:3670</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20438">imgui.cpp:20438</see>
|
|
/// <br/>
|
|
/// <c>void DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector<ImGuiID>* out_node_remap_pairs)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderCopyNode(
|
|
ImGuiID srcNodeId,
|
|
ImGuiID dstNodeId,
|
|
out ImVector<uint> outNodeRemapPairs
|
|
)
|
|
{
|
|
fixed (ImVector<uint>* outNodeRemapPairs_fixed = &outNodeRemapPairs)
|
|
{
|
|
PInvoke.DockBuilderCopyNode_internal(srcNodeId, dstNodeId, outNodeRemapPairs_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3671">imgui_internal.h:3671</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20456">imgui.cpp:20456</see>
|
|
/// <br/><c>void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderCopyWindowSettings(ImString srcName, ImString dstName)
|
|
{
|
|
fixed (byte* dstName_fixed = dstName)
|
|
{
|
|
fixed (byte* srcName_fixed = srcName)
|
|
{
|
|
PInvoke.DockBuilderCopyWindowSettings_internal(srcName_fixed, dstName_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3672">imgui_internal.h:3672</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L20570">imgui.cpp:20570</see>
|
|
/// <br/><c>void DockBuilderFinish(ImGuiID node_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Docking - Builder function needs to be generally called before the node is used/submitted.
|
|
/// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability.
|
|
/// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame.
|
|
/// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode().
|
|
/// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API.
|
|
/// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node.
|
|
/// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure
|
|
/// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable.
|
|
/// - Call DockBuilderFinish() after you are done.
|
|
/// </code>
|
|
/// <para>
|
|
/// FIXME-DOCK: This is awkward because in series of split user is likely to loose access to its root
|
|
/// node.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DockBuilderFinish(ImGuiID nodeId) => PInvoke.DockBuilderFinish_internal(nodeId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3682">imgui_internal.h:3682</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9121">imgui.cpp:9121</see>
|
|
/// <br/><c>void PushFocusScope(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Focus Scope
|
|
/// This is generally used to identify a unique input location (for e.g. a selection set)
|
|
/// There is one per window (automatically set in Begin), but:
|
|
/// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set.
|
|
/// So in order to identify a set multiple lists in same window may each need a focus scope.
|
|
/// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope()
|
|
/// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided.
|
|
/// We don't use the ID Stack for this as it is common to want them separate.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void PushFocusScope(ImGuiID id) => PInvoke.PushFocusScope_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3683">imgui_internal.h:3683</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9131">imgui.cpp:9131</see>
|
|
/// <br/><c>void PopFocusScope()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Focus Scope
|
|
/// This is generally used to identify a unique input location (for e.g. a selection set)
|
|
/// There is one per window (automatically set in Begin), but:
|
|
/// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set.
|
|
/// So in order to identify a set multiple lists in same window may each need a focus scope.
|
|
/// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope()
|
|
/// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided.
|
|
/// We don't use the ID Stack for this as it is common to want them separate.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void PopFocusScope() => PInvoke.PopFocusScope_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Focus scope we are outputting into, set by PushFocusScope()
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3684">imgui_internal.h:3684</see>
|
|
/// <br/><c>inline ImGuiID GetCurrentFocusScope()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [EXPERIMENTAL] Focus Scope
|
|
/// This is generally used to identify a unique input location (for e.g. a selection set)
|
|
/// There is one per window (automatically set in Begin), but:
|
|
/// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set.
|
|
/// So in order to identify a set multiple lists in same window may each need a focus scope.
|
|
/// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope()
|
|
/// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided.
|
|
/// We don't use the ID Stack for this as it is common to want them separate.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetCurrentFocusScope() => PInvoke.GetCurrentFocusScope_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3687">imgui_internal.h:3687</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15137">imgui.cpp:15137</see>
|
|
/// <br/><c>bool IsDragDropActive()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drag and Drop
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsDragDropActive() => PInvoke.IsDragDropActive_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3688">imgui_internal.h:3688</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15353">imgui.cpp:15353</see>
|
|
/// <br/><c>bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drag and Drop
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginDragDropTargetCustom(in floatRect bb, ImGuiID id)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.BeginDragDropTargetCustom_internal(bb_fixed, id);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3689">imgui_internal.h:3689</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15143">imgui.cpp:15143</see>
|
|
/// <br/><c>void ClearDragDrop()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drag and Drop
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClearDragDrop() => PInvoke.ClearDragDrop_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3690">imgui_internal.h:3690</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15412">imgui.cpp:15412</see>
|
|
/// <br/><c>bool IsDragDropPayloadBeingAccepted()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drag and Drop
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsDragDropPayloadBeingAccepted() =>
|
|
PInvoke.IsDragDropPayloadBeingAccepted_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3691">imgui_internal.h:3691</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15460">imgui.cpp:15460</see>
|
|
/// <br/><c>void RenderDragDropTargetRect(const ImRect& bb, const ImRect& item_clip_rect)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Drag and Drop
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderDragDropTargetRect(in floatRect bb, in floatRect itemClipRect)
|
|
{
|
|
fixed (floatRect* itemClipRect_fixed = &itemClipRect)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.RenderDragDropTargetRect_internal(bb_fixed, itemClipRect_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3696">imgui_internal.h:3696</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7329">imgui_widgets.cpp:7329</see>
|
|
/// <br/>
|
|
/// <c>ImGuiTypingSelectRequest* GetTypingSelectRequest(ImGuiTypingSelectFlags flags = ImGuiTypingSelectFlags_None)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Typing-Select API
|
|
/// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
|
|
/// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
|
|
/// </code>
|
|
/// <code>
|
|
/// [Experimental] Currently not exposed in public API.
|
|
/// Consume character inputs and return search request, if any.
|
|
/// This would typically only be called on the focused window or location you want to grab inputs for, e.g.
|
|
/// if (ImGui::IsWindowFocused(...))
|
|
/// if (ImGuiTypingSelectRequest* req = ImGui::GetTypingSelectRequest())
|
|
/// focus_idx = ImGui::TypingSelectFindMatch(req, my_items.size(), [](void*, int n) { return my_items[n]->Name; }, &my_items, -1);
|
|
/// However the code is written in a way where calling it from multiple locations is safe (e.g. to obtain buffer).
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTypingSelectRequestPtr GetTypingSelectRequest(
|
|
ImGuiTypingSelectFlags flags = default
|
|
) => PInvoke.GetTypingSelectRequest_internal(flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3697">imgui_internal.h:3697</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7439">imgui_widgets.cpp:7439</see>
|
|
/// <br/>
|
|
/// <c>int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Typing-Select API
|
|
/// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
|
|
/// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
|
|
/// </code>
|
|
/// <code>
|
|
/// Default handler for finding a result for typing-select. You may implement your own.
|
|
/// You might want to display a tooltip to visualize the current request SearchBuffer
|
|
/// When SingleCharMode is set:
|
|
/// - it is better to NOT display a tooltip of other on-screen display indicator.
|
|
/// - the index of the currently focused item is required.
|
|
/// if your SetNextItemSelectionUserData() values are indices, you can obtain it from ImGuiMultiSelectIO::NavIdItem, otherwise from g.NavLastValidSelectionUserData.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe int TypingSelectFindMatch(
|
|
ImGuiTypingSelectRequestPtr req,
|
|
int itemsCount,
|
|
nint getItemNameFunc,
|
|
Ptr userData,
|
|
int navItemIdx
|
|
) => PInvoke.TypingSelectFindMatch_internal(req, itemsCount, getItemNameFunc, userData, navItemIdx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3698">imgui_internal.h:3698</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7454">imgui_widgets.cpp:7454</see>
|
|
/// <br/>
|
|
/// <c>int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Typing-Select API
|
|
/// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
|
|
/// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
|
|
/// </code>
|
|
/// <para>
|
|
/// Special handling when a single character is repeated: perform search on a single letter and goes to
|
|
/// next.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int TypingSelectFindNextSingleCharMatch(
|
|
ImGuiTypingSelectRequestPtr req,
|
|
int itemsCount,
|
|
nint getItemNameFunc,
|
|
Ptr userData,
|
|
int navItemIdx
|
|
) =>
|
|
PInvoke.TypingSelectFindNextSingleCharMatch_internal(
|
|
req,
|
|
itemsCount,
|
|
getItemNameFunc,
|
|
userData,
|
|
navItemIdx
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3699">imgui_internal.h:3699</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7479">imgui_widgets.cpp:7479</see>
|
|
/// <br/>
|
|
/// <c>int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Typing-Select API
|
|
/// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
|
|
/// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe int TypingSelectFindBestLeadingMatch(
|
|
ImGuiTypingSelectRequestPtr req,
|
|
int itemsCount,
|
|
nint getItemNameFunc,
|
|
Ptr userData
|
|
) => PInvoke.TypingSelectFindBestLeadingMatch_internal(req, itemsCount, getItemNameFunc, userData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3702">imgui_internal.h:3702</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7589">imgui_widgets.cpp:7589</see>
|
|
/// <br/>
|
|
/// <c>bool BeginBoxSelect(const ImRect& scope_rect, ImGuiWindow* window, ImGuiID box_select_id, ImGuiMultiSelectFlags ms_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Box-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginBoxSelect(
|
|
in floatRect scopeRect,
|
|
ImGuiWindowPtr window,
|
|
ImGuiID boxSelectId,
|
|
ImGuiMultiSelectFlags msFlags
|
|
)
|
|
{
|
|
fixed (floatRect* scopeRect_fixed = &scopeRect)
|
|
{
|
|
return PInvoke.BeginBoxSelect_internal(scopeRect_fixed, window, boxSelectId, msFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3703">imgui_internal.h:3703</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7635">imgui_widgets.cpp:7635</see>
|
|
/// <br/><c>void EndBoxSelect(const ImRect& scope_rect, ImGuiMultiSelectFlags ms_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Box-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void EndBoxSelect(in floatRect scopeRect, ImGuiMultiSelectFlags msFlags)
|
|
{
|
|
fixed (floatRect* scopeRect_fixed = &scopeRect)
|
|
{
|
|
PInvoke.EndBoxSelect_internal(scopeRect_fixed, msFlags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3706">imgui_internal.h:3706</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7942">imgui_widgets.cpp:7942</see>
|
|
/// <br/>
|
|
/// <c>void MultiSelectItemHeader(ImGuiID id, bool* p_selected, ImGuiButtonFlags* p_button_flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// <code>
|
|
/// In charge of:
|
|
/// - Applying SetAll for submitted items.
|
|
/// - Applying SetRange for submitted items and record end points.
|
|
/// - Altering button behavior flags to facilitate use with drag and drop.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void MultiSelectItemHeader(
|
|
ImGuiID id,
|
|
ref bool pSelected,
|
|
Ptr<ImGuiButtonFlags> pButtonFlags
|
|
)
|
|
{
|
|
fixed (bool* pSelected_fixed = &pSelected)
|
|
{
|
|
PInvoke.MultiSelectItemHeader_internal(
|
|
id,
|
|
(Bool8*)pSelected_fixed,
|
|
(ImGuiButtonFlags*)pButtonFlags
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3707">imgui_internal.h:3707</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8011">imgui_widgets.cpp:8011</see>
|
|
/// <br/><c>void MultiSelectItemFooter(ImGuiID id, bool* p_selected, bool* p_pressed)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// <code>
|
|
/// In charge of:
|
|
/// - Auto-select on navigation.
|
|
/// - Box-select toggle handling.
|
|
/// - Right-click handling.
|
|
/// - Altering selection based on Ctrl/Shift modifiers, both for keyboard and mouse.
|
|
/// - Record current selection state for RangeSrc
|
|
/// This is all rather complex, best to run and refer to "widgets_multiselect_xxx" tests in imgui_test_suite.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void MultiSelectItemFooter(ImGuiID id, ref bool pSelected, Ptr<bool> pPressed)
|
|
{
|
|
fixed (bool* pSelected_fixed = &pSelected)
|
|
{
|
|
PInvoke.MultiSelectItemFooter_internal(id, (Bool8*)pSelected_fixed, (Bool8*)pPressed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3708">imgui_internal.h:3708</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8208">imgui_widgets.cpp:8208</see>
|
|
/// <br/><c>void MultiSelectAddSetAll(ImGuiMultiSelectTempData* ms, bool selected)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void MultiSelectAddSetAll(ImGuiMultiSelectTempDataPtr ms, bool selected) =>
|
|
PInvoke.MultiSelectAddSetAll_internal(ms, selected);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3709">imgui_internal.h:3709</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8215">imgui_widgets.cpp:8215</see>
|
|
/// <br/>
|
|
/// <c>void MultiSelectAddSetRange(ImGuiMultiSelectTempData* ms, bool selected, int range_dir, ImGuiSelectionUserData first_item, ImGuiSelectionUserData last_item)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void MultiSelectAddSetRange(
|
|
ImGuiMultiSelectTempDataPtr ms,
|
|
bool selected,
|
|
int rangeDir,
|
|
ulong firstItem,
|
|
ulong lastItem
|
|
) => PInvoke.MultiSelectAddSetRange_internal(ms, selected, rangeDir, firstItem, lastItem);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3710">imgui_internal.h:3710</see>
|
|
/// <br/><c>inline ImGuiBoxSelectState* GetBoxSelectState(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiBoxSelectStatePtr GetBoxSelectState(ImGuiID id) =>
|
|
PInvoke.GetBoxSelectState_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3711">imgui_internal.h:3711</see>
|
|
/// <br/><c>inline ImGuiMultiSelectState* GetMultiSelectState(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multi-Select API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiMultiSelectStatePtr GetMultiSelectState(ImGuiID id) =>
|
|
PInvoke.GetMultiSelectState_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3714">imgui_internal.h:3714</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4144">imgui_tables.cpp:4144</see>
|
|
/// <br/><c>void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// <code>
|
|
/// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences,
|
|
/// they would meddle many times with the underlying ImDrawCmd.
|
|
/// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let
|
|
/// the subsequent single call to SetCurrentChannel() does it things once.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, in floatRect clipRect)
|
|
{
|
|
fixed (floatRect* clipRect_fixed = &clipRect)
|
|
{
|
|
PInvoke.SetWindowClipRectBeforeSetChannel_internal(window, clipRect_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// setup number of columns. use an identifier to distinguish multiple column sets. close with
|
|
/// EndColumns().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3715">imgui_internal.h:3715</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4331">imgui_tables.cpp:4331</see>
|
|
/// <br/><c>void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void BeginColumns(ImString strId, int count, ImGuiOldColumnFlags flags = default)
|
|
{
|
|
fixed (byte* strId_fixed = strId)
|
|
{
|
|
PInvoke.BeginColumns_internal(strId_fixed, count, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// close columns
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3716">imgui_internal.h:3716</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4466">imgui_tables.cpp:4466</see>
|
|
/// <br/><c>void EndColumns()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void EndColumns() => PInvoke.EndColumns_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3717">imgui_internal.h:3717</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4268">imgui_tables.cpp:4268</see>
|
|
/// <br/><c>void PushColumnClipRect(int column_index)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PushColumnClipRect(int columnIndex) =>
|
|
PInvoke.PushColumnClipRect_internal(columnIndex);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3718">imgui_internal.h:3718</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4280">imgui_tables.cpp:4280</see>
|
|
/// <br/><c>void PushColumnsBackground()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// <para>
|
|
/// Get into the columns background draw command (which is generally the same draw command as before we
|
|
/// called BeginColumns)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PushColumnsBackground() => PInvoke.PushColumnsBackground_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3719">imgui_internal.h:3719</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4293">imgui_tables.cpp:4293</see>
|
|
/// <br/><c>void PopColumnsBackground()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void PopColumnsBackground() => PInvoke.PopColumnsBackground_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3720">imgui_internal.h:3720</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4318">imgui_tables.cpp:4318</see>
|
|
/// <br/><c>ImGuiID GetColumnsID(const char* str_id, int count)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetColumnsID(ImString strId, int count)
|
|
{
|
|
fixed (byte* strId_fixed = strId)
|
|
{
|
|
return PInvoke.GetColumnsID_internal(strId_fixed, count);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3721">imgui_internal.h:3721</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4305">imgui_tables.cpp:4305</see>
|
|
/// <br/><c>ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, ImGuiID id) =>
|
|
PInvoke.FindOrCreateColumns_internal(window, id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3722">imgui_internal.h:3722</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4164">imgui_tables.cpp:4164</see>
|
|
/// <br/><c>float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) =>
|
|
PInvoke.GetColumnOffsetFromNorm_internal(columns, offsetNorm);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3723">imgui_internal.h:3723</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4169">imgui_tables.cpp:4169</see>
|
|
/// <br/><c>float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) =>
|
|
PInvoke.GetColumnNormFromOffset_internal(columns, offset);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3726">imgui_internal.h:3726</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3478">imgui_tables.cpp:3478</see>
|
|
/// <br/><c>void TableOpenContextMenu(int column_n = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <para>
|
|
/// Use -1 to open menu not specific to a given column.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableOpenContextMenu(int columnN = -1) =>
|
|
PInvoke.TableOpenContextMenu_internal(columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3727">imgui_internal.h:3727</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2314">imgui_tables.cpp:2314</see>
|
|
/// <br/><c>void TableSetColumnWidth(int column_n, float width)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <para>
|
|
/// 'width' = inner column width, without padding
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSetColumnWidth(int columnN, float width) =>
|
|
PInvoke.TableSetColumnWidth_internal(columnN, width);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3728">imgui_internal.h:3728</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2928">imgui_tables.cpp:2928</see>
|
|
/// <br/>
|
|
/// <c>void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <code>
|
|
/// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert
|
|
/// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableSetColumnSortDirection(
|
|
int columnN,
|
|
ImGuiSortDirection sortDirection,
|
|
bool appendToSortSpecs
|
|
) => PInvoke.TableSetColumnSortDirection_internal(columnN, sortDirection, appendToSortSpecs);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason
|
|
/// why this is not public yet.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3729">imgui_internal.h:3729</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1813">imgui_tables.cpp:1813</see>
|
|
/// <br/><c>int TableGetHoveredRow()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <code>
|
|
/// Return -1 when table is not hovered. Return maxrow+1 if in table but below last submitted row.
|
|
/// *IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value.
|
|
/// This difference with is the reason why this is not public yet.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe int TableGetHoveredRow() => PInvoke.TableGetHoveredRow_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3730">imgui_internal.h:3730</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3070">imgui_tables.cpp:3070</see>
|
|
/// <br/><c>float TableGetHeaderRowHeight()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float TableGetHeaderRowHeight() => PInvoke.TableGetHeaderRowHeight_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3731">imgui_internal.h:3731</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3086">imgui_tables.cpp:3086</see>
|
|
/// <br/><c>float TableGetHeaderAngledMaxLabelWidth()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float TableGetHeaderAngledMaxLabelWidth() =>
|
|
PInvoke.TableGetHeaderAngledMaxLabelWidth_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3732">imgui_internal.h:3732</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2461">imgui_tables.cpp:2461</see>
|
|
/// <br/><c>void TablePushBackgroundChannel()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <code>
|
|
/// Bg2 is used by Selectable (and possibly other widgets) to render to the background.
|
|
/// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TablePushBackgroundChannel() => PInvoke.TablePushBackgroundChannel_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3733">imgui_internal.h:3733</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2473">imgui_tables.cpp:2473</see>
|
|
/// <br/><c>void TablePopBackgroundChannel()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TablePopBackgroundChannel() => PInvoke.TablePopBackgroundChannel_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3734">imgui_internal.h:3734</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2485">imgui_tables.cpp:2485</see>
|
|
/// <br/><c>void TablePushColumnChannel(int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <para>
|
|
/// Also see TableBeginCell()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TablePushColumnChannel(int columnN) =>
|
|
PInvoke.TablePushColumnChannel_internal(columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3735">imgui_internal.h:3735</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2499">imgui_tables.cpp:2499</see>
|
|
/// <br/><c>void TablePopColumnChannel()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TablePopColumnChannel() => PInvoke.TablePopColumnChannel_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3736">imgui_internal.h:3736</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3332">imgui_tables.cpp:3332</see>
|
|
/// <br/>
|
|
/// <c>void TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label_width, const ImGuiTableHeaderData* data, int data_count)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Candidates for public API
|
|
/// </para>
|
|
/// <para>
|
|
/// Important: data must be fed left to right
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableAngledHeadersRowEx(
|
|
ImGuiID rowId,
|
|
float angle,
|
|
float maxLabelWidth,
|
|
ReadOnlySpan<ImGuiTableHeaderData> data
|
|
)
|
|
{
|
|
fixed (ImGuiTableHeaderData* data_fixed = data)
|
|
{
|
|
PInvoke.TableAngledHeadersRowEx_internal(rowId, angle, maxLabelWidth, data_fixed, data.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3739">imgui_internal.h:3739</see>
|
|
/// <br/><c>inline ImGuiTable* GetCurrentTable()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTablePtr GetCurrentTable() => PInvoke.GetCurrentTable_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3740">imgui_internal.h:3740</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L304">imgui_tables.cpp:304</see>
|
|
/// <br/><c>ImGuiTable* TableFindByID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTablePtr TableFindByID(ImGuiID id) => PInvoke.TableFindByID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3741">imgui_internal.h:3741</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L317">imgui_tables.cpp:317</see>
|
|
/// <br/>
|
|
/// <c>bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginTableEx(
|
|
ImString name,
|
|
ImGuiID id,
|
|
int columnsCount,
|
|
ImGuiTableFlags flags = default,
|
|
in float2? outerSize = default,
|
|
float innerWidth = 0f
|
|
)
|
|
{
|
|
var outerSize_default = outerSize ?? new float2(0f, 0f);
|
|
fixed (byte* name_fixed = name)
|
|
{
|
|
return PInvoke.BeginTableEx_internal(
|
|
name_fixed,
|
|
id,
|
|
columnsCount,
|
|
flags,
|
|
&outerSize_default,
|
|
innerWidth
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3742">imgui_internal.h:3742</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L655">imgui_tables.cpp:655</see>
|
|
/// <br/><c>void TableBeginInitMemory(ImGuiTable* table, int columns_count)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// For reference, the average total _allocation count_ for a table is:
|
|
/// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables[])
|
|
/// + 1 (for table->RawData allocated below)
|
|
/// + 1 (for table->ColumnsNames, if names are used)
|
|
/// Shared allocations for the maximum number of simultaneously nested tables (generally a very small number)
|
|
/// + 1 (for table->Splitter._Channels)
|
|
/// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels)
|
|
/// Where active_channels_count is variable but often == columns_count or == columns_count + 1, see TableSetupDrawChannels() for details.
|
|
/// Unused channels don't perform their +2 allocations.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) =>
|
|
PInvoke.TableBeginInitMemory_internal(table, columnsCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3743">imgui_internal.h:3743</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L677">imgui_tables.cpp:677</see>
|
|
/// <br/><c>void TableBeginApplyRequests(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Apply queued resizing/reordering/hiding requests
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableBeginApplyRequests(ImGuiTablePtr table) =>
|
|
PInvoke.TableBeginApplyRequests_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3744">imgui_internal.h:3744</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2529">imgui_tables.cpp:2529</see>
|
|
/// <br/><c>void TableSetupDrawChannels(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Allocate draw channels. Called by TableUpdateLayout()
|
|
/// - We allocate them following storage order instead of display order so reordering columns won't needlessly
|
|
/// increase overall dormant memory cost.
|
|
/// - We isolate headers draw commands in their own channels instead of just altering clip rects.
|
|
/// This is in order to facilitate merging of draw commands.
|
|
/// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels.
|
|
/// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other
|
|
/// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged.
|
|
/// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for
|
|
/// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4).
|
|
/// Draw channel allocation (before merging):
|
|
/// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call)
|
|
/// - Clip --> 2+D+N channels
|
|
/// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero)
|
|
/// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero)
|
|
/// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableSetupDrawChannels(ImGuiTablePtr table) =>
|
|
PInvoke.TableSetupDrawChannels_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3745">imgui_internal.h:3745</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L803">imgui_tables.cpp:803</see>
|
|
/// <br/><c>void TableUpdateLayout(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Layout columns for the frame. This is in essence the followup to BeginTable() and this is our largest function.
|
|
/// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() and other TableSetupXXXXX() functions to be called first.
|
|
/// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns.
|
|
/// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns?
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableUpdateLayout(ImGuiTablePtr table) =>
|
|
PInvoke.TableUpdateLayout_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3746">imgui_internal.h:3746</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1285">imgui_tables.cpp:1285</see>
|
|
/// <br/><c>void TableUpdateBorders(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Process hit-testing on resizing borders. Actual size change will be applied in EndTable()
|
|
/// - Set table->HoveredColumnBorder with a short delay/timer to reduce visual feedback noise.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableUpdateBorders(ImGuiTablePtr table) =>
|
|
PInvoke.TableUpdateBorders_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3747">imgui_internal.h:3747</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2419">imgui_tables.cpp:2419</see>
|
|
/// <br/><c>void TableUpdateColumnsWeightFromWidth(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) =>
|
|
PInvoke.TableUpdateColumnsWeightFromWidth_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3748">imgui_internal.h:3748</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2780">imgui_tables.cpp:2780</see>
|
|
/// <br/><c>void TableDrawBorders(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in
|
|
/// TableEndRow)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableDrawBorders(ImGuiTablePtr table) => PInvoke.TableDrawBorders_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3749">imgui_internal.h:3749</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3516">imgui_tables.cpp:3516</see>
|
|
/// <br/>
|
|
/// <c>void TableDrawDefaultContextMenu(ImGuiTable* table, ImGuiTableFlags flags_for_section_to_display)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// - ImGuiTableFlags_Hideable -> display columns visibility menu items
|
|
/// It means if you have a custom context menus you can call this section and omit some sections, and add your own.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableDrawDefaultContextMenu(
|
|
ImGuiTablePtr table,
|
|
ImGuiTableFlags flagsForSectionToDisplay
|
|
) => PInvoke.TableDrawDefaultContextMenu_internal(table, flagsForSectionToDisplay);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3750">imgui_internal.h:3750</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3497">imgui_tables.cpp:3497</see>
|
|
/// <br/><c>bool TableBeginContextMenuPopup(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TableBeginContextMenuPopup(ImGuiTablePtr table) =>
|
|
PInvoke.TableBeginContextMenuPopup_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3751">imgui_internal.h:3751</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2597">imgui_tables.cpp:2597</see>
|
|
/// <br/><c>void TableMergeDrawChannels(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// This function is particularly tricky to understand.. take a breath.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableMergeDrawChannels(ImGuiTablePtr table) =>
|
|
PInvoke.TableMergeDrawChannels_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3752">imgui_internal.h:3752</see>
|
|
/// <br/><c>inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) =>
|
|
PInvoke.TableGetInstanceData_internal(table, instanceNo);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3753">imgui_internal.h:3753</see>
|
|
/// <br/><c>inline ImGuiID TableGetInstanceID(ImGuiTable* table, int instance_no)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID TableGetInstanceID(ImGuiTablePtr table, int instanceNo) =>
|
|
PInvoke.TableGetInstanceID_internal(table, instanceNo);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3754">imgui_internal.h:3754</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2961">imgui_tables.cpp:2961</see>
|
|
/// <br/><c>void TableSortSpecsSanitize(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSortSpecsSanitize(ImGuiTablePtr table) =>
|
|
PInvoke.TableSortSpecsSanitize_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3755">imgui_internal.h:3755</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3027">imgui_tables.cpp:3027</see>
|
|
/// <br/><c>void TableSortSpecsBuild(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSortSpecsBuild(ImGuiTablePtr table) =>
|
|
PInvoke.TableSortSpecsBuild_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3756">imgui_internal.h:3756</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2914">imgui_tables.cpp:2914</see>
|
|
/// <br/><c>ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) =>
|
|
PInvoke.TableGetColumnNextSortDirection_internal(column);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3757">imgui_internal.h:3757</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2902">imgui_tables.cpp:2902</see>
|
|
/// <br/><c>void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Fix sort direction if currently set on a value which is unavailable (e.g. activating
|
|
/// NoSortAscending/NoSortDescending)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) =>
|
|
PInvoke.TableFixColumnSortDirection_internal(table, column);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3758">imgui_internal.h:3758</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2297">imgui_tables.cpp:2297</see>
|
|
/// <br/><c>float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) =>
|
|
PInvoke.TableGetColumnWidthAuto_internal(table, column);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3759">imgui_internal.h:3759</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1916">imgui_tables.cpp:1916</see>
|
|
/// <br/><c>void TableBeginRow(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// [Internal] Only called by TableNextRow()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableBeginRow(ImGuiTablePtr table) => PInvoke.TableBeginRow_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3760">imgui_internal.h:3760</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1953">imgui_tables.cpp:1953</see>
|
|
/// <br/><c>void TableEndRow(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// [Internal] Called by TableNextRow()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableEndRow(ImGuiTablePtr table) => PInvoke.TableEndRow_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3761">imgui_internal.h:3761</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2171">imgui_tables.cpp:2171</see>
|
|
/// <br/><c>void TableBeginCell(ImGuiTable* table, int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// [Internal] Called by TableSetColumnIndex()/TableNextColumn()
|
|
/// This is called very frequently, so we need to be mindful of unnecessary overhead.
|
|
/// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableBeginCell(ImGuiTablePtr table, int columnN) =>
|
|
PInvoke.TableBeginCell_internal(table, columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3762">imgui_internal.h:3762</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2227">imgui_tables.cpp:2227</see>
|
|
/// <br/><c>void TableEndCell(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn()
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableEndCell(ImGuiTablePtr table) => PInvoke.TableEndCell_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3763">imgui_internal.h:3763</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1778">imgui_tables.cpp:1778</see>
|
|
/// <br/><c>ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Return the cell rectangle based on currently known height.
|
|
/// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations.
|
|
/// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height.
|
|
/// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right
|
|
/// columns report a small offset so their CellBgRect can extend up to the outer border.
|
|
/// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe floatRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) =>
|
|
PInvoke.TableGetCellBgRect_internal(table, columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3764">imgui_internal.h:3764</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1725">imgui_tables.cpp:1725</see>
|
|
/// <br/><c>const char* TableGetColumnName(const ImGuiTable* table, int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe Ptr<byte> TableGetColumnName(ImGuiTablePtr table, int columnN) =>
|
|
PInvoke.TableGetColumnName_internal(table, columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3765">imgui_internal.h:3765</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L1793">imgui_tables.cpp:1793</see>
|
|
/// <br/><c>ImGuiID TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Return the resizing ID for the right-side of the given column.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo = 0) =>
|
|
PInvoke.TableGetColumnResizeID_internal(table, columnN, instanceNo);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3766">imgui_internal.h:3766</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2265">imgui_tables.cpp:2265</see>
|
|
/// <br/><c>float TableCalcMaxColumnWidth(const ImGuiTable* table, int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Maximum column content width given current layout. Use column->MinX so this value differs on a
|
|
/// per-column basis.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float TableCalcMaxColumnWidth(ImGuiTablePtr table, int columnN) =>
|
|
PInvoke.TableCalcMaxColumnWidth_internal(table, columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3767">imgui_internal.h:3767</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2397">imgui_tables.cpp:2397</see>
|
|
/// <br/><c>void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Disable clipping then auto-fit, will take 2 frames
|
|
/// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) =>
|
|
PInvoke.TableSetColumnWidthAutoSingle_internal(table, columnN);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3768">imgui_internal.h:3768</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2407">imgui_tables.cpp:2407</see>
|
|
/// <br/><c>void TableSetColumnWidthAutoAll(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSetColumnWidthAutoAll(ImGuiTablePtr table) =>
|
|
PInvoke.TableSetColumnWidthAutoAll_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3769">imgui_internal.h:3769</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3946">imgui_tables.cpp:3946</see>
|
|
/// <br/><c>void TableRemove(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Remove Table (currently only used by TestEngine)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableRemove(ImGuiTablePtr table) => PInvoke.TableRemove_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3770">imgui_internal.h:3770</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3958">imgui_tables.cpp:3958</see>
|
|
/// <br/><c>void TableGcCompactTransientBuffers(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Free up/compact internal Table buffers for when it gets unused
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableGcCompactTransientBuffers(ImGuiTablePtr table) =>
|
|
PInvoke.TableGcCompactTransientBuffers_internal_0(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3771">imgui_internal.h:3771</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3973">imgui_tables.cpp:3973</see>
|
|
/// <br/><c>void TableGcCompactTransientBuffers(ImGuiTableTempData* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) =>
|
|
PInvoke.TableGcCompactTransientBuffers_internal_1(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3772">imgui_internal.h:3772</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3980">imgui_tables.cpp:3980</see>
|
|
/// <br/><c>void TableGcCompactSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <para>
|
|
/// Compact and remove unused settings data (currently only used by TestEngine)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableGcCompactSettings() => PInvoke.TableGcCompactSettings_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3775">imgui_internal.h:3775</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3747">imgui_tables.cpp:3747</see>
|
|
/// <br/><c>void TableLoadSettings(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableLoadSettings(ImGuiTablePtr table) =>
|
|
PInvoke.TableLoadSettings_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3776">imgui_internal.h:3776</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3692">imgui_tables.cpp:3692</see>
|
|
/// <br/><c>void TableSaveSettings(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSaveSettings(ImGuiTablePtr table) =>
|
|
PInvoke.TableSaveSettings_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3777">imgui_internal.h:3777</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3684">imgui_tables.cpp:3684</see>
|
|
/// <br/><c>void TableResetSettings(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// Restore initial state of table (with or without saved settings)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableResetSettings(ImGuiTablePtr table) =>
|
|
PInvoke.TableResetSettings_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3778">imgui_internal.h:3778</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3669">imgui_tables.cpp:3669</see>
|
|
/// <br/><c>ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// Get settings for a given table, NULL if none
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) =>
|
|
PInvoke.TableGetBoundSettings_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3779">imgui_internal.h:3779</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3924">imgui_tables.cpp:3924</see>
|
|
/// <br/><c>void TableSettingsAddSettingsHandler()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TableSettingsAddSettingsHandler() =>
|
|
PInvoke.TableSettingsAddSettingsHandler_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3780">imgui_internal.h:3780</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3649">imgui_tables.cpp:3649</see>
|
|
/// <br/><c>ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTableSettingsPtr TableSettingsCreate(ImGuiID id, int columnsCount) =>
|
|
PInvoke.TableSettingsCreate_internal(id, columnsCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3781">imgui_internal.h:3781</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L3658">imgui_tables.cpp:3658</see>
|
|
/// <br/><c>ImGuiTableSettings* TableSettingsFindByID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// Find existing settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTableSettingsPtr TableSettingsFindByID(ImGuiID id) =>
|
|
PInvoke.TableSettingsFindByID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3784">imgui_internal.h:3784</see>
|
|
/// <br/><c>inline ImGuiTabBar* GetCurrentTabBar()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTabBarPtr GetCurrentTabBar() => PInvoke.GetCurrentTabBar_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3785">imgui_internal.h:3785</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9458">imgui_widgets.cpp:9458</see>
|
|
/// <br/><c>bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginTabBarEx(ImGuiTabBarPtr tabBar, in floatRect bb, ImGuiTabBarFlags flags)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.BeginTabBarEx_internal(tabBar, bb_fixed, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3786">imgui_internal.h:3786</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9858">imgui_widgets.cpp:9858</see>
|
|
/// <br/><c>ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, ImGuiID tabId) =>
|
|
PInvoke.TabBarFindTabByID_internal(tabBar, tabId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3787">imgui_internal.h:3787</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9868">imgui_widgets.cpp:9868</see>
|
|
/// <br/><c>ImGuiTabItem* TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <para>
|
|
/// Order = visible order, not submission order! (which is tab->BeginOrder)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTabItemPtr TabBarFindTabByOrder(ImGuiTabBarPtr tabBar, int order) =>
|
|
PInvoke.TabBarFindTabByOrder_internal(tabBar, order);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3788">imgui_internal.h:3788</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9876">imgui_widgets.cpp:9876</see>
|
|
/// <br/><c>ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME: See references to #2304 in TODO.txt
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(
|
|
ImGuiTabBarPtr tabBar
|
|
) => PInvoke.TabBarFindMostRecentlySelectedTabForActiveWindow_internal(tabBar);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3789">imgui_internal.h:3789</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9889">imgui_widgets.cpp:9889</see>
|
|
/// <br/><c>ImGuiTabItem* TabBarGetCurrentTab(ImGuiTabBar* tab_bar)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiTabItemPtr TabBarGetCurrentTab(ImGuiTabBarPtr tabBar) =>
|
|
PInvoke.TabBarGetCurrentTab_internal(tabBar);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3790">imgui_internal.h:3790</see>
|
|
/// <br/><c>inline int TabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int TabBarGetTabOrder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) =>
|
|
PInvoke.TabBarGetTabOrder_internal(tabBar, tab);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3791">imgui_internal.h:3791</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9896">imgui_widgets.cpp:9896</see>
|
|
/// <br/><c>const char* TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe Ptr<byte> TabBarGetTabName(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) =>
|
|
PInvoke.TabBarGetTabName_internal(tabBar, tab);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3792">imgui_internal.h:3792</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9908">imgui_widgets.cpp:9908</see>
|
|
/// <br/>
|
|
/// <c>void TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <code>
|
|
/// The purpose of this call is to register tab in advance so we can control their order at the time they appear.
|
|
/// Otherwise calling this is unnecessary as tabs are appending as needed by the BeginTabItem() function.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TabBarAddTab(
|
|
ImGuiTabBarPtr tabBar,
|
|
ImGuiTabItemFlags tabFlags,
|
|
ImGuiWindowPtr window
|
|
) => PInvoke.TabBarAddTab_internal(tabBar, tabFlags, window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3793">imgui_internal.h:3793</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9928">imgui_widgets.cpp:9928</see>
|
|
/// <br/><c>void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <para>
|
|
/// The *TabId fields are already set by the docking system _before_ the actual TabItem was created, so
|
|
/// we clear them regardless.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarRemoveTab(ImGuiTabBarPtr tabBar, ImGuiID tabId) =>
|
|
PInvoke.TabBarRemoveTab_internal(tabBar, tabId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3794">imgui_internal.h:3794</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9938">imgui_widgets.cpp:9938</see>
|
|
/// <br/><c>void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <para>
|
|
/// Called on manual closure attempt
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) =>
|
|
PInvoke.TabBarCloseTab_internal(tabBar, tab);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3795">imgui_internal.h:3795</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10002">imgui_widgets.cpp:10002</see>
|
|
/// <br/><c>void TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarQueueFocus(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) =>
|
|
PInvoke.TabBarQueueFocus_internal_0(tabBar, tab);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3796">imgui_internal.h:3796</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10007">imgui_widgets.cpp:10007</see>
|
|
/// <br/><c>void TabBarQueueFocus(ImGuiTabBar* tab_bar, const char* tab_name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarQueueFocus(ImGuiTabBarPtr tabBar, ImString tabName)
|
|
{
|
|
fixed (byte* tabName_fixed = tabName)
|
|
{
|
|
PInvoke.TabBarQueueFocus_internal_1(tabBar, tabName_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3797">imgui_internal.h:3797</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10014">imgui_widgets.cpp:10014</see>
|
|
/// <br/><c>void TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) =>
|
|
PInvoke.TabBarQueueReorder_internal(tabBar, tab, offset);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3798">imgui_internal.h:3798</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10022">imgui_widgets.cpp:10022</see>
|
|
/// <br/>
|
|
/// <c>void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImVec2 mouse_pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabBarQueueReorderFromMousePos(
|
|
ImGuiTabBarPtr tabBar,
|
|
ImGuiTabItemPtr tab,
|
|
float2 mousePos
|
|
) => PInvoke.TabBarQueueReorderFromMousePos_internal(tabBar, tab, mousePos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3799">imgui_internal.h:3799</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10058">imgui_widgets.cpp:10058</see>
|
|
/// <br/><c>bool TabBarProcessReorder(ImGuiTabBar* tab_bar)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) =>
|
|
PInvoke.TabBarProcessReorder_internal(tabBar);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3800">imgui_internal.h:3800</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10279">imgui_widgets.cpp:10279</see>
|
|
/// <br/>
|
|
/// <c>bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TabItemEx(
|
|
ImGuiTabBarPtr tabBar,
|
|
ImString label,
|
|
ref bool pOpen,
|
|
ImGuiTabItemFlags flags,
|
|
ImGuiWindowPtr dockedWindow
|
|
)
|
|
{
|
|
fixed (bool* pOpen_fixed = &pOpen)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.TabItemEx_internal(
|
|
tabBar,
|
|
label_fixed,
|
|
(Bool8*)pOpen_fixed,
|
|
flags,
|
|
dockedWindow
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3800">imgui_internal.h:3800</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10279">imgui_widgets.cpp:10279</see>
|
|
/// <br/>
|
|
/// <c>bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TabItemEx(
|
|
ImGuiTabBarPtr tabBar,
|
|
ImString label,
|
|
ImGuiTabItemFlags flags,
|
|
ImGuiWindowPtr dockedWindow
|
|
)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.TabItemEx_internal(tabBar, label_fixed, null, flags, dockedWindow);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3801">imgui_internal.h:3801</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10262">imgui_widgets.cpp:10262</see>
|
|
/// <br/><c>void TabItemSpacing(const char* str_id, ImGuiTabItemFlags flags, float width)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabItemSpacing(ImString strId, ImGuiTabItemFlags flags, float width)
|
|
{
|
|
fixed (byte* strId_fixed = strId)
|
|
{
|
|
PInvoke.TabItemSpacing_internal(strId_fixed, flags, width);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3802">imgui_internal.h:3802</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10612">imgui_widgets.cpp:10612</see>
|
|
/// <br/><c>ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 TabItemCalcSize(ImString label, bool hasCloseButtonOrUnsavedMarker)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.TabItemCalcSize_internal_0(label_fixed, hasCloseButtonOrUnsavedMarker);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3803">imgui_internal.h:3803</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10624">imgui_widgets.cpp:10624</see>
|
|
/// <br/><c>ImVec2 TabItemCalcSize(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 TabItemCalcSize(ImGuiWindowPtr window) =>
|
|
PInvoke.TabItemCalcSize_internal_1(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3804">imgui_internal.h:3804</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10629">imgui_widgets.cpp:10629</see>
|
|
/// <br/>
|
|
/// <c>void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TabItemBackground(
|
|
ImDrawListPtr drawList,
|
|
in floatRect bb,
|
|
ImGuiTabItemFlags flags,
|
|
ImColor8 col
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.TabItemBackground_internal(drawList, bb_fixed, flags, col);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3805">imgui_internal.h:3805</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L10656">imgui_widgets.cpp:10656</see>
|
|
/// <br/>
|
|
/// <c>void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tab Bars
|
|
/// </para>
|
|
/// <code>
|
|
/// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic
|
|
/// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TabItemLabelAndCloseButton(
|
|
ImDrawListPtr drawList,
|
|
in floatRect bb,
|
|
ImGuiTabItemFlags flags,
|
|
float2 framePadding,
|
|
ImString label,
|
|
ImGuiID tabId,
|
|
ImGuiID closeButtonId,
|
|
bool isContentsVisible,
|
|
out bool outJustClosed,
|
|
out bool outTextClipped
|
|
)
|
|
{
|
|
fixed (bool* outTextClipped_fixed = &outTextClipped)
|
|
{
|
|
fixed (bool* outJustClosed_fixed = &outJustClosed)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.TabItemLabelAndCloseButton_internal(
|
|
drawList,
|
|
bb_fixed,
|
|
flags,
|
|
framePadding,
|
|
label_fixed,
|
|
tabId,
|
|
closeButtonId,
|
|
isContentsVisible,
|
|
(Bool8*)outJustClosed_fixed,
|
|
(Bool8*)outTextClipped_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3810">imgui_internal.h:3810</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3769">imgui.cpp:3769</see>
|
|
/// <br/>
|
|
/// <c>void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// <code>
|
|
/// Internal ImGui functions to render text
|
|
/// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText()
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderText(float2 pos, ImString text, bool hideTextAfterHash = true)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.RenderText_internal(pos, text_fixed, text_fixed + text.Length, hideTextAfterHash);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3811">imgui_internal.h:3811</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3795">imgui.cpp:3795</see>
|
|
/// <br/>
|
|
/// <c>void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderTextWrapped(float2 pos, ImString text, float wrapWidth)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.RenderTextWrapped_internal(pos, text_fixed, text_fixed + text.Length, wrapWidth);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3812">imgui_internal.h:3812</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3844">imgui.cpp:3844</see>
|
|
/// <br/>
|
|
/// <c>void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderTextClipped(
|
|
in float2 posMin,
|
|
in float2 posMax,
|
|
ImString text,
|
|
Ptr<float2> textSizeIfKnown,
|
|
in float2? align = default,
|
|
Ptr<floatRect> clipRect = default
|
|
)
|
|
{
|
|
var align_default = align ?? new float2(0f, 0f);
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
fixed (float2* posMax_fixed = &posMax)
|
|
{
|
|
fixed (float2* posMin_fixed = &posMin)
|
|
{
|
|
PInvoke.RenderTextClipped_internal(
|
|
posMin_fixed,
|
|
posMax_fixed,
|
|
text_fixed,
|
|
text_fixed + text.Length,
|
|
(float2*)textSizeIfKnown,
|
|
&align_default,
|
|
(floatRect*)clipRect
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3813">imgui_internal.h:3813</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3816">imgui.cpp:3816</see>
|
|
/// <br/>
|
|
/// <c>void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// <code>
|
|
/// Default clip_rect uses (pos_min,pos_max)
|
|
/// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges)
|
|
/// FIXME-OPT: Since we have or calculate text_size we could coarse clip whole block immediately, especially for text above draw_list->DrawList.
|
|
/// Effectively as this is called from widget doing their own coarse clipping it's not very valuable presently. Next time function will take
|
|
/// better advantage of the render function taking size into account for coarse clipping.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderTextClippedEx(
|
|
ImDrawListPtr drawList,
|
|
in float2 posMin,
|
|
in float2 posMax,
|
|
ImString text,
|
|
Ptr<float2> textSizeIfKnown,
|
|
in float2? align = default,
|
|
Ptr<floatRect> clipRect = default
|
|
)
|
|
{
|
|
var align_default = align ?? new float2(0f, 0f);
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
fixed (float2* posMax_fixed = &posMax)
|
|
{
|
|
fixed (float2* posMin_fixed = &posMin)
|
|
{
|
|
PInvoke.RenderTextClippedEx_internal(
|
|
drawList,
|
|
posMin_fixed,
|
|
posMax_fixed,
|
|
text_fixed,
|
|
text_fixed + text.Length,
|
|
(float2*)textSizeIfKnown,
|
|
&align_default,
|
|
(floatRect*)clipRect
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3814">imgui_internal.h:3814</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3863">imgui.cpp:3863</see>
|
|
/// <br/>
|
|
/// <c>void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// <code>
|
|
/// Another overly complex function until we reorganize everything into a nice all-in-one helper.
|
|
/// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) from 'ellipsis_max_x' which may be beyond it.
|
|
/// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move.
|
|
/// (BREAKING) On 2025/04/16 we removed the 'float clip_max_x' parameters which was preceeding 'float ellipsis_max' and was the same value for 99% of users.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderTextEllipsis(
|
|
ImDrawListPtr drawList,
|
|
in float2 posMin,
|
|
in float2 posMax,
|
|
float ellipsisMaxX,
|
|
ImString text,
|
|
Ptr<float2> textSizeIfKnown
|
|
)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
fixed (float2* posMax_fixed = &posMax)
|
|
{
|
|
fixed (float2* posMin_fixed = &posMin)
|
|
{
|
|
PInvoke.RenderTextEllipsis_internal(
|
|
drawList,
|
|
posMin_fixed,
|
|
posMax_fixed,
|
|
ellipsisMaxX,
|
|
text_fixed,
|
|
text_fixed + text.Length,
|
|
(float2*)textSizeIfKnown
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3815">imgui_internal.h:3815</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3914">imgui.cpp:3914</see>
|
|
/// <br/>
|
|
/// <c>void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool borders = true, float rounding = 0.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// <para>
|
|
/// Render a rectangle shaped with optional rounding and borders
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderFrame(
|
|
float2 pMin,
|
|
float2 pMax,
|
|
uint fillCol,
|
|
bool borders = true,
|
|
float rounding = 0f
|
|
) => PInvoke.RenderFrame_internal(pMin, pMax, fillCol, borders, rounding);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3816">imgui_internal.h:3816</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3927">imgui.cpp:3927</see>
|
|
/// <br/><c>void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderFrameBorder(float2 pMin, float2 pMax, float rounding = 0f) =>
|
|
PInvoke.RenderFrameBorder_internal(pMin, pMax, rounding);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3817">imgui_internal.h:3817</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5983">imgui_draw.cpp:5983</see>
|
|
/// <br/>
|
|
/// <c>void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// <code>
|
|
/// Helper for ColorPicker4()
|
|
/// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that.
|
|
/// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether.
|
|
/// FIXME: uses ImGui::GetColorU32
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderColorRectWithAlphaCheckerboard(
|
|
ImDrawListPtr drawList,
|
|
float2 pMin,
|
|
float2 pMax,
|
|
uint fillCol,
|
|
float gridStep,
|
|
float2 gridOff,
|
|
float rounding = 0f,
|
|
ImDrawFlags flags = default
|
|
) =>
|
|
PInvoke.RenderColorRectWithAlphaCheckerboard_internal(
|
|
drawList,
|
|
pMin,
|
|
pMax,
|
|
fillCol,
|
|
gridStep,
|
|
gridOff,
|
|
rounding,
|
|
flags
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Navigation highlight
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3818">imgui_internal.h:3818</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3939">imgui.cpp:3939</see>
|
|
/// <br/>
|
|
/// <c>void RenderNavCursor(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderNavCursor(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImGuiNavRenderCursorFlags flags = default
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.RenderNavCursor_internal(bb_fixed, id, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Find the optional ## from which we stop displaying text.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3822">imgui_internal.h:3822</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3756">imgui.cpp:3756</see>
|
|
/// <br/><c>const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe Ptr<byte> FindRenderedTextEnd(ImString text)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
return PInvoke.FindRenderedTextEnd_internal(text_fixed, text_fixed + text.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3823">imgui_internal.h:3823</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3973">imgui.cpp:3973</see>
|
|
/// <br/>
|
|
/// <c>void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Render helpers
|
|
/// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
|
|
/// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderMouseCursor(
|
|
float2 pos,
|
|
float scale,
|
|
ImGuiMouseCursor mouseCursor,
|
|
uint colFill,
|
|
uint colBorder,
|
|
uint colShadow
|
|
) => PInvoke.RenderMouseCursor_internal(pos, scale, mouseCursor, colFill, colBorder, colShadow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3826">imgui_internal.h:3826</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5810">imgui_draw.cpp:5810</see>
|
|
/// <br/>
|
|
/// <c>void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// <para>
|
|
/// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be
|
|
/// positioned). To e.g. denote expanded/collapsed state
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderArrow(
|
|
ImDrawListPtr drawList,
|
|
float2 pos,
|
|
ImColor8 col,
|
|
ImGuiDir dir,
|
|
float scale = 1f
|
|
) => PInvoke.RenderArrow_internal(drawList, pos, col, dir, scale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3827">imgui_internal.h:3827</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5841">imgui_draw.cpp:5841</see>
|
|
/// <br/><c>void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderBullet(ImDrawListPtr drawList, float2 pos, ImColor8 col) =>
|
|
PInvoke.RenderBullet_internal(drawList, pos, col);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3828">imgui_internal.h:3828</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5847">imgui_draw.cpp:5847</see>
|
|
/// <br/><c>void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderCheckMark(ImDrawListPtr drawList, float2 pos, ImColor8 col, float sz) =>
|
|
PInvoke.RenderCheckMark_internal(drawList, pos, col, sz);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3829">imgui_internal.h:3829</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5863">imgui_draw.cpp:5863</see>
|
|
/// <br/>
|
|
/// <c>void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// <para>
|
|
/// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y
|
|
/// is length on each side.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderArrowPointingAt(
|
|
ImDrawListPtr drawList,
|
|
float2 pos,
|
|
float2 halfSz,
|
|
ImGuiDir direction,
|
|
ImColor8 col
|
|
) => PInvoke.RenderArrowPointingAt_internal(drawList, pos, halfSz, direction, col);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3830">imgui_internal.h:3830</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5877">imgui_draw.cpp:5877</see>
|
|
/// <br/><c>void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// <code>
|
|
/// This is less wide than RenderArrow() and we use in dock nodes instead of the regular RenderArrow() to denote a change of functionality,
|
|
/// and because the saved space means that the left-most tab label can stay at exactly the same position as the label of a loose window.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void RenderArrowDockMenu(
|
|
ImDrawListPtr drawList,
|
|
float2 pMin,
|
|
float sz,
|
|
ImColor8 col
|
|
) => PInvoke.RenderArrowDockMenu_internal(drawList, pMin, sz, col);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3831">imgui_internal.h:3831</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5892">imgui_draw.cpp:5892</see>
|
|
/// <br/>
|
|
/// <c>void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME: Cleanup and move code to ImDrawList.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderRectFilledRangeH(
|
|
ImDrawListPtr drawList,
|
|
in floatRect rect,
|
|
ImColor8 col,
|
|
float xStartNorm,
|
|
float xEndNorm,
|
|
float rounding
|
|
)
|
|
{
|
|
fixed (floatRect* rect_fixed = &rect)
|
|
{
|
|
PInvoke.RenderRectFilledRangeH_internal(drawList, rect_fixed, col, xStartNorm, xEndNorm, rounding);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3832">imgui_internal.h:3832</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5952">imgui_draw.cpp:5952</see>
|
|
/// <br/>
|
|
/// <c>void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void RenderRectFilledWithHole(
|
|
ImDrawListPtr drawList,
|
|
in floatRect outer,
|
|
in floatRect inner,
|
|
ImColor8 col,
|
|
float rounding
|
|
)
|
|
{
|
|
fixed (floatRect* inner_fixed = &inner)
|
|
{
|
|
fixed (floatRect* outer_fixed = &outer)
|
|
{
|
|
PInvoke.RenderRectFilledWithHole_internal(drawList, outer_fixed, inner_fixed, col, rounding);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3833">imgui_internal.h:3833</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5968">imgui_draw.cpp:5968</see>
|
|
/// <br/>
|
|
/// <c>ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Render helpers (those functions don't access any ImGui state!)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImDrawFlags CalcRoundingFlagsForRectInRect(
|
|
in floatRect rIn,
|
|
in floatRect rOuter,
|
|
float threshold
|
|
)
|
|
{
|
|
fixed (floatRect* rOuter_fixed = &rOuter)
|
|
{
|
|
fixed (floatRect* rIn_fixed = &rIn)
|
|
{
|
|
return PInvoke.CalcRoundingFlagsForRectInRect_internal(rIn_fixed, rOuter_fixed, threshold);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3836">imgui_internal.h:3836</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L160">imgui_widgets.cpp:160</see>
|
|
/// <br/><c>void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Text
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TextEx(ImString text, ImGuiTextFlags flags = default)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.TextEx_internal(text_fixed, text_fixed + text.Length, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// FIXME-WIP: Works but API is likely to be reworked. This is designed for 1 item on the line. (#7024)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3837">imgui_internal.h:3837</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L342">imgui_widgets.cpp:342</see>
|
|
/// <br/><c>void TextAligned(float align_x, float size_x, const char* fmt, ...)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Text
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TextAligned(float alignX, float sizeX, ImString text)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.TextAligned_internal(alignX, sizeX, text_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3841">imgui_internal.h:3841</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L767">imgui_widgets.cpp:767</see>
|
|
/// <br/>
|
|
/// <c>bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool ButtonEx(
|
|
ImString label,
|
|
in float2? sizeArg = default,
|
|
ImGuiButtonFlags flags = default
|
|
)
|
|
{
|
|
var sizeArg_default = sizeArg ?? new float2(0f, 0f);
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.ButtonEx_internal(label_fixed, &sizeArg_default, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3842">imgui_internal.h:3842</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L851">imgui_widgets.cpp:851</see>
|
|
/// <br/>
|
|
/// <c>bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool ArrowButtonEx(
|
|
ImString strId,
|
|
ImGuiDir dir,
|
|
float2 sizeArg,
|
|
ImGuiButtonFlags flags = default
|
|
)
|
|
{
|
|
fixed (byte* strId_fixed = strId)
|
|
{
|
|
return PInvoke.ArrowButtonEx_internal(strId_fixed, dir, sizeArg, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3843">imgui_internal.h:3843</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1156">imgui_widgets.cpp:1156</see>
|
|
/// <br/>
|
|
/// <c>bool ImageButtonEx(ImGuiID id, ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool ImageButtonEx(
|
|
ImGuiID id,
|
|
ImTextureRef texRef,
|
|
in float2 imageSize,
|
|
in float2 uv0,
|
|
in float2 uv1,
|
|
in float4 bgCol,
|
|
in float4 tintCol,
|
|
ImGuiButtonFlags flags = default
|
|
)
|
|
{
|
|
fixed (float4* tintCol_fixed = &tintCol)
|
|
{
|
|
fixed (float4* bgCol_fixed = &bgCol)
|
|
{
|
|
fixed (float2* uv1_fixed = &uv1)
|
|
{
|
|
fixed (float2* uv0_fixed = &uv0)
|
|
{
|
|
fixed (float2* imageSize_fixed = &imageSize)
|
|
{
|
|
return PInvoke.ImageButtonEx_internal(
|
|
id,
|
|
texRef,
|
|
imageSize_fixed,
|
|
uv0_fixed,
|
|
uv1_fixed,
|
|
bgCol_fixed,
|
|
tintCol_fixed,
|
|
flags
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3844">imgui_internal.h:3844</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1622">imgui_widgets.cpp:1622</see>
|
|
/// <br/><c>void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// <code>
|
|
/// Horizontal/vertical separating line
|
|
/// FIXME: Surprisingly, this seemingly trivial widget is a victim of many different legacy/tricky layout issues.
|
|
/// Note how thickness == 1.0f is handled specifically as not moving CursorPos by 'thickness', but other values are.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1f) =>
|
|
PInvoke.SeparatorEx_internal(flags, thickness);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3845">imgui_internal.h:3845</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1704">imgui_widgets.cpp:1704</see>
|
|
/// <br/>
|
|
/// <c>void SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SeparatorTextEx(ImGuiID id, ImString label, ImString labelEnd, float extraWidth)
|
|
{
|
|
fixed (byte* labelEnd_fixed = labelEnd)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.SeparatorTextEx_internal(id, label_fixed, labelEnd_fixed, extraWidth);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3846">imgui_internal.h:3846</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1329">imgui_widgets.cpp:1329</see>
|
|
/// <br/><c>bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool CheckboxFlags(ImString label, Ptr<long> flags, long flagsValue)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.CheckboxFlags_internal_0(label_fixed, (long*)flags, flagsValue);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3847">imgui_internal.h:3847</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1334">imgui_widgets.cpp:1334</see>
|
|
/// <br/><c>bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool CheckboxFlags(ImString label, Ptr<ulong> flags, ulong flagsValue)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.CheckboxFlags_internal_1(label_fixed, (ulong*)flags, flagsValue);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3850">imgui_internal.h:3850</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L886">imgui_widgets.cpp:886</see>
|
|
/// <br/><c>bool CloseButton(ImGuiID id, const ImVec2& pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <para>
|
|
/// Button to close a window
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool CloseButton(ImGuiID id, in float2 pos)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
return PInvoke.CloseButton_internal(id, pos_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3851">imgui_internal.h:3851</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L924">imgui_widgets.cpp:924</see>
|
|
/// <br/><c>bool CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <para>
|
|
/// The Collapse button also functions as a Dock Menu button.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool CollapseButton(ImGuiID id, in float2 pos, ImGuiDockNodePtr dockNode)
|
|
{
|
|
fixed (float2* pos_fixed = &pos)
|
|
{
|
|
return PInvoke.CollapseButton_internal(id, pos_fixed, dockNode);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3852">imgui_internal.h:3852</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L977">imgui_widgets.cpp:977</see>
|
|
/// <br/><c>void Scrollbar(ImGuiAxis axis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void Scrollbar(ImGuiAxis axis) => PInvoke.Scrollbar_internal(axis);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3853">imgui_internal.h:3853</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1012">imgui_widgets.cpp:1012</see>
|
|
/// <br/>
|
|
/// <c>bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags draw_rounding_flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <code>
|
|
/// Vertical/Horizontal scrollbar
|
|
/// The entire piece of code below is rather confusing because:
|
|
/// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab)
|
|
/// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar
|
|
/// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal.
|
|
/// Still, the code should probably be made simpler..
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool ScrollbarEx(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImGuiAxis axis,
|
|
Ptr<long> pScrollV,
|
|
long availV,
|
|
long contentsV,
|
|
ImDrawFlags drawRoundingFlags = default
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.ScrollbarEx_internal(
|
|
bb_fixed,
|
|
id,
|
|
axis,
|
|
(long*)pScrollV,
|
|
availV,
|
|
contentsV,
|
|
drawRoundingFlags
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3854">imgui_internal.h:3854</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L962">imgui_widgets.cpp:962</see>
|
|
/// <br/><c>ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <para>
|
|
/// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is
|
|
/// set.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe floatRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) =>
|
|
PInvoke.GetWindowScrollbarRect_internal(window, axis);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3855">imgui_internal.h:3855</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L956">imgui_widgets.cpp:956</see>
|
|
/// <br/><c>ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) =>
|
|
PInvoke.GetWindowScrollbarID_internal(window, axis);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0..3: corners
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3856">imgui_internal.h:3856</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6967">imgui.cpp:6967</see>
|
|
/// <br/><c>ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <para>
|
|
/// 0..3: corners (Lower-right, Lower-left, Unused, Unused)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetWindowResizeCornerID(ImGuiWindowPtr window, int n) =>
|
|
PInvoke.GetWindowResizeCornerID_internal(window, n);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3857">imgui_internal.h:3857</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6977">imgui.cpp:6977</see>
|
|
/// <br/><c>ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Window Decorations
|
|
/// </para>
|
|
/// <para>
|
|
/// Borders (Left, Right, Up, Down)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiID GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) =>
|
|
PInvoke.GetWindowResizeBorderID_internal(window, dir);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3860">imgui_internal.h:3860</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L541">imgui_widgets.cpp:541</see>
|
|
/// <br/>
|
|
/// <c>bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets low-level behaviors
|
|
/// </para>
|
|
/// <code>
|
|
/// - FIXME: For refactor we could output flags, incl mouse hovered vs nav keyboard vs nav triggered etc.
|
|
/// And better standardize how widgets use 'GetColor32((held && hovered) ? ... : hovered ? ...)' vs 'GetColor32(held ? ... : hovered ? ...);'
|
|
/// For mouse feedback we typically prefer the 'held && hovered' test, but for nav feedback not always. Outputting hovered=true on Activation may be misleading.
|
|
/// - Since v1.91.2 (Sept 2024) we included io.ConfigDebugHighlightIdConflicts feature.
|
|
/// One idiom which was previously valid which will now emit a warning is when using multiple overlaid ButtonBehavior()
|
|
/// with same ID and different MouseButton (see #8030). You can fix it by:
|
|
/// (1) switching to use a single ButtonBehavior() with multiple _MouseButton flags.
|
|
/// or (2) surrounding those calls with PushItemFlag(ImGuiItemFlags_AllowDuplicateId, true); ... PopItemFlag()
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool ButtonBehavior(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
out bool outHovered,
|
|
out bool outHeld,
|
|
ImGuiButtonFlags flags = default
|
|
)
|
|
{
|
|
fixed (bool* outHeld_fixed = &outHeld)
|
|
{
|
|
fixed (bool* outHovered_fixed = &outHovered)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.ButtonBehavior_internal(
|
|
bb_fixed,
|
|
id,
|
|
(Bool8*)outHovered_fixed,
|
|
(Bool8*)outHeld_fixed,
|
|
flags
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3861">imgui_internal.h:3861</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2635">imgui_widgets.cpp:2635</see>
|
|
/// <br/>
|
|
/// <c>bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets low-level behaviors
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool DragBehavior(
|
|
ImGuiID id,
|
|
ImGuiDataType dataType,
|
|
Ptr pV,
|
|
float vSpeed,
|
|
Ptr pMin,
|
|
Ptr pMax,
|
|
ImString format,
|
|
ImGuiSliderFlags flags
|
|
)
|
|
{
|
|
fixed (byte* format_fixed = format)
|
|
{
|
|
return PInvoke.DragBehavior_internal(id, dataType, pV, vSpeed, pMin, pMax, format_fixed, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3862">imgui_internal.h:3862</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L3240">imgui_widgets.cpp:3240</see>
|
|
/// <br/>
|
|
/// <c>bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets low-level behaviors
|
|
/// </para>
|
|
/// <code>
|
|
/// For 32-bit and larger types, slider bounds are limited to half the natural type range.
|
|
/// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok.
|
|
/// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool SliderBehavior(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImGuiDataType dataType,
|
|
Ptr pV,
|
|
Ptr pMin,
|
|
Ptr pMax,
|
|
ImString format,
|
|
ImGuiSliderFlags flags,
|
|
out floatRect outGrabBb
|
|
)
|
|
{
|
|
fixed (floatRect* outGrabBb_fixed = &outGrabBb)
|
|
{
|
|
fixed (byte* format_fixed = format)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.SliderBehavior_internal(
|
|
bb_fixed,
|
|
id,
|
|
dataType,
|
|
pV,
|
|
pMin,
|
|
pMax,
|
|
format_fixed,
|
|
flags,
|
|
outGrabBb_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3863">imgui_internal.h:3863</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1770">imgui_widgets.cpp:1770</see>
|
|
/// <br/>
|
|
/// <c>bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets low-level behaviors
|
|
/// </para>
|
|
/// <para>
|
|
/// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time,
|
|
/// which can be convenient to reduce visual noise.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool SplitterBehavior(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImGuiAxis axis,
|
|
Ptr<float> size1,
|
|
Ptr<float> size2,
|
|
float minSize1,
|
|
float minSize2,
|
|
float hoverExtend = 0f,
|
|
float hoverVisibilityDelay = 0f,
|
|
uint bgCol = default
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.SplitterBehavior_internal(
|
|
bb_fixed,
|
|
id,
|
|
axis,
|
|
(float*)size1,
|
|
(float*)size2,
|
|
minSize1,
|
|
minSize2,
|
|
hoverExtend,
|
|
hoverVisibilityDelay,
|
|
bgCol
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3866">imgui_internal.h:3866</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6644">imgui_widgets.cpp:6644</see>
|
|
/// <br/>
|
|
/// <c>bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// <para>
|
|
/// When using public API, currently 'id == storage_id' is always true, but we separate the values to
|
|
/// facilitate advanced user code doing storage queries outside of UI loop.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TreeNodeBehavior(
|
|
ImGuiID id,
|
|
ImGuiTreeNodeFlags flags,
|
|
ImString label,
|
|
ImString labelEnd = default
|
|
)
|
|
{
|
|
fixed (byte* labelEnd_fixed = labelEnd)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.TreeNodeBehavior_internal(id, flags, label_fixed, labelEnd_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3867">imgui_internal.h:3867</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6927">imgui_widgets.cpp:6927</see>
|
|
/// <br/><c>void TreeNodeDrawLineToChildNode(const ImVec2& target_pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// <code>
|
|
/// Draw horizontal line from our parent node
|
|
/// This is only called for visible child nodes so we are not too fussy anymore about performances
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void TreeNodeDrawLineToChildNode(in float2 targetPos)
|
|
{
|
|
fixed (float2* targetPos_fixed = &targetPos)
|
|
{
|
|
PInvoke.TreeNodeDrawLineToChildNode_internal(targetPos_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3868">imgui_internal.h:3868</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6957">imgui_widgets.cpp:6957</see>
|
|
/// <br/><c>void TreeNodeDrawLineToTreePop(const ImGuiTreeNodeStackData* data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// <para>
|
|
/// Draw vertical line of the hierarchy
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TreeNodeDrawLineToTreePop(ImGuiTreeNodeStackDataPtr data) =>
|
|
PInvoke.TreeNodeDrawLineToTreePop_internal(data);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3869">imgui_internal.h:3869</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6999">imgui_widgets.cpp:6999</see>
|
|
/// <br/><c>void TreePushOverrideID(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TreePushOverrideID(ImGuiID id) => PInvoke.TreePushOverrideID_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3870">imgui_internal.h:3870</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6559">imgui_widgets.cpp:6559</see>
|
|
/// <br/><c>bool TreeNodeGetOpen(ImGuiID storage_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TreeNodeGetOpen(ImGuiID storageId) => PInvoke.TreeNodeGetOpen_internal(storageId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3871">imgui_internal.h:3871</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6566">imgui_widgets.cpp:6566</see>
|
|
/// <br/><c>void TreeNodeSetOpen(ImGuiID storage_id, bool open)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void TreeNodeSetOpen(ImGuiID storageId, bool open) =>
|
|
PInvoke.TreeNodeSetOpen_internal(storageId, open);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3872">imgui_internal.h:3872</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6573">imgui_widgets.cpp:6573</see>
|
|
/// <br/><c>bool TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Widgets: Tree Nodes
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TreeNodeUpdateNextOpen(ImGuiID storageId, ImGuiTreeNodeFlags flags) =>
|
|
PInvoke.TreeNodeUpdateNextOpen_internal(storageId, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3885">imgui_internal.h:3885</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2258">imgui_widgets.cpp:2258</see>
|
|
/// <br/><c>const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) =>
|
|
PInvoke.DataTypeGetInfo_internal(dataType);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3886">imgui_internal.h:3886</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2264">imgui_widgets.cpp:2264</see>
|
|
/// <br/>
|
|
/// <c>int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int DataTypeFormatString(
|
|
ReadOnlySpan<byte> buf,
|
|
int bufSize,
|
|
ImGuiDataType dataType,
|
|
Ptr pData,
|
|
ImString format
|
|
)
|
|
{
|
|
fixed (byte* format_fixed = format)
|
|
{
|
|
fixed (byte* buf_fixed = buf)
|
|
{
|
|
return PInvoke.DataTypeFormatString_internal(buf_fixed, bufSize, dataType, pData, format_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3887">imgui_internal.h:3887</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2287">imgui_widgets.cpp:2287</see>
|
|
/// <br/>
|
|
/// <c>void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DataTypeApplyOp(ImGuiDataType dataType, int op, Ptr output, Ptr arg1, Ptr arg2) =>
|
|
PInvoke.DataTypeApplyOp_internal(dataType, op, output, arg1, arg2);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3888">imgui_internal.h:3888</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2339">imgui_widgets.cpp:2339</see>
|
|
/// <br/>
|
|
/// <c>bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format, void* p_data_when_empty = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// <code>
|
|
/// User can input math operators (e.g. +100) to edit a numerical values.
|
|
/// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess..
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool DataTypeApplyFromText(
|
|
ReadOnlySpan<byte> buf,
|
|
ImGuiDataType dataType,
|
|
Ptr pData,
|
|
ImString format,
|
|
Ptr pDataWhenEmpty = default
|
|
)
|
|
{
|
|
fixed (byte* format_fixed = format)
|
|
{
|
|
fixed (byte* buf_fixed = buf)
|
|
{
|
|
return PInvoke.DataTypeApplyFromText_internal(
|
|
buf_fixed,
|
|
dataType,
|
|
pData,
|
|
format_fixed,
|
|
pDataWhenEmpty
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3889">imgui_internal.h:3889</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2396">imgui_widgets.cpp:2396</see>
|
|
/// <br/><c>int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int DataTypeCompare(ImGuiDataType dataType, Ptr arg1, Ptr arg2) =>
|
|
PInvoke.DataTypeCompare_internal(dataType, arg1, arg2);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3890">imgui_internal.h:3890</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2425">imgui_widgets.cpp:2425</see>
|
|
/// <br/>
|
|
/// <c>bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool DataTypeClamp(ImGuiDataType dataType, Ptr pData, Ptr pMin, Ptr pMax) =>
|
|
PInvoke.DataTypeClamp_internal(dataType, pData, pMin, pMax);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3891">imgui_internal.h:3891</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2445">imgui_widgets.cpp:2445</see>
|
|
/// <br/><c>bool DataTypeIsZero(ImGuiDataType data_type, const void* p_data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Data type helpers
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool DataTypeIsZero(ImGuiDataType dataType, Ptr pData) =>
|
|
PInvoke.DataTypeIsZero_internal(dataType, pData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3894">imgui_internal.h:3894</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4522">imgui_widgets.cpp:4522</see>
|
|
/// <br/>
|
|
/// <c>bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// Edit a string of text
|
|
/// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!".
|
|
/// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match
|
|
/// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator.
|
|
/// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect.
|
|
/// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h
|
|
/// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are
|
|
/// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool InputTextEx(
|
|
ImString label,
|
|
ImString hint,
|
|
ReadOnlySpan<byte> buf,
|
|
int bufSize,
|
|
in float2 sizeArg,
|
|
ImGuiInputTextFlags flags,
|
|
ImGuiInputTextCallback? callback = default,
|
|
Ptr userData = default
|
|
)
|
|
{
|
|
fixed (float2* sizeArg_fixed = &sizeArg)
|
|
{
|
|
fixed (byte* buf_fixed = buf)
|
|
{
|
|
fixed (byte* hint_fixed = hint)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.InputTextEx_internal(
|
|
label_fixed,
|
|
hint_fixed,
|
|
buf_fixed,
|
|
bufSize,
|
|
sizeArg_fixed,
|
|
flags,
|
|
callback == null ? 0 : Marshal.GetFunctionPointerForDelegate(callback),
|
|
userData
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3894">imgui_internal.h:3894</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4522">imgui_widgets.cpp:4522</see>
|
|
/// <br/>
|
|
/// <c>bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// Edit a string of text
|
|
/// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!".
|
|
/// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match
|
|
/// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator.
|
|
/// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect.
|
|
/// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h
|
|
/// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are
|
|
/// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188)
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool InputTextEx(
|
|
ImString label,
|
|
ImString hint,
|
|
ReadOnlySpan<byte> buf,
|
|
int bufSize,
|
|
in float2 sizeArg,
|
|
ImGuiInputTextFlags flags,
|
|
delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int> callback,
|
|
Ptr userData = default
|
|
)
|
|
{
|
|
fixed (float2* sizeArg_fixed = &sizeArg)
|
|
{
|
|
fixed (byte* buf_fixed = buf)
|
|
{
|
|
fixed (byte* hint_fixed = hint)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.InputTextEx_internal(
|
|
label_fixed,
|
|
hint_fixed,
|
|
buf_fixed,
|
|
bufSize,
|
|
sizeArg_fixed,
|
|
flags,
|
|
(nint)callback,
|
|
userData
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3895">imgui_internal.h:3895</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4494">imgui_widgets.cpp:4494</see>
|
|
/// <br/><c>void InputTextDeactivateHook(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// As InputText() retain textual data and we currently provide a path for user to not retain it (via local variables)
|
|
/// we need some form of hook to reapply data back to user buffer on deactivation frame. (#4714)
|
|
/// It would be more desirable that we discourage users from taking advantage of the "user not retaining data" trick,
|
|
/// but that more likely be attractive when we do have _NoLiveEdit flag available.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void InputTextDeactivateHook(ImGuiID id) =>
|
|
PInvoke.InputTextDeactivateHook_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3896">imgui_internal.h:3896</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L3671">imgui_widgets.cpp:3671</see>
|
|
/// <br/>
|
|
/// <c>bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets)
|
|
/// FIXME: Facilitate using this in variety of other situations.
|
|
/// FIXME: Among other things, setting ImGuiItemFlags_AllowDuplicateId in LastItemData is currently correct but
|
|
/// the expected relationship between TempInputXXX functions and LastItemData is a little fishy.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool TempInputText(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImString label,
|
|
ReadOnlySpan<byte> buf,
|
|
int bufSize,
|
|
ImGuiInputTextFlags flags
|
|
)
|
|
{
|
|
fixed (byte* buf_fixed = buf)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.TempInputText_internal(bb_fixed, id, label_fixed, buf_fixed, bufSize, flags);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3897">imgui_internal.h:3897</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L3695">imgui_widgets.cpp:3695</see>
|
|
/// <br/>
|
|
/// <c>bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set!
|
|
/// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility.
|
|
/// However this may not be ideal for all uses, as some user code may break on out of bound values.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool TempInputScalar(
|
|
in floatRect bb,
|
|
ImGuiID id,
|
|
ImString label,
|
|
ImGuiDataType dataType,
|
|
Ptr pData,
|
|
ImString format,
|
|
Ptr pClampMin = default,
|
|
Ptr pClampMax = default
|
|
)
|
|
{
|
|
fixed (byte* format_fixed = format)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
return PInvoke.TempInputScalar_internal(
|
|
bb_fixed,
|
|
id,
|
|
label_fixed,
|
|
dataType,
|
|
pData,
|
|
format_fixed,
|
|
pClampMin,
|
|
pClampMax
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3898">imgui_internal.h:3898</see>
|
|
/// <br/><c>inline bool TempInputIsActive(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool TempInputIsActive(ImGuiID id) => PInvoke.TempInputIsActive_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get input text state if active
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3899">imgui_internal.h:3899</see>
|
|
/// <br/><c>inline ImGuiInputTextState* GetInputTextState(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe ImGuiInputTextStatePtr GetInputTextState(ImGuiID id) =>
|
|
PInvoke.GetInputTextState_internal(id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3900">imgui_internal.h:3900</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L3737">imgui_widgets.cpp:3737</see>
|
|
/// <br/><c>void SetNextItemRefVal(ImGuiDataType data_type, void* p_data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SetNextItemRefVal(ImGuiDataType dataType, Ptr pData) =>
|
|
PInvoke.SetNextItemRefVal_internal(dataType, pData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This may be useful to apply workaround that a based on distinguish whenever an item is active as a
|
|
/// text input field.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3901">imgui_internal.h:3901</see>
|
|
/// <br/><c>inline bool IsItemActiveAsInputText()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool IsItemActiveAsInputText() => PInvoke.IsItemActiveAsInputText_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3904">imgui_internal.h:3904</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6324">imgui_widgets.cpp:6324</see>
|
|
/// <br/><c>void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Color
|
|
/// </para>
|
|
/// <para>
|
|
/// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ColorTooltip(ImString text, Ptr<float> col, ImGuiColorEditFlags flags)
|
|
{
|
|
fixed (byte* text_fixed = text)
|
|
{
|
|
PInvoke.ColorTooltip_internal(text_fixed, (float*)col, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3905">imgui_internal.h:3905</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6360">imgui_widgets.cpp:6360</see>
|
|
/// <br/><c>void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Color
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ColorEditOptionsPopup(Ptr<float> col, ImGuiColorEditFlags flags) =>
|
|
PInvoke.ColorEditOptionsPopup_internal((float*)col, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3906">imgui_internal.h:3906</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6414">imgui_widgets.cpp:6414</see>
|
|
/// <br/><c>void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Color
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ColorPickerOptionsPopup(Ptr<float> refCol, ImGuiColorEditFlags flags) =>
|
|
PInvoke.ColorPickerOptionsPopup_internal((float*)refCol, flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3909">imgui_internal.h:3909</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8573">imgui_widgets.cpp:8573</see>
|
|
/// <br/>
|
|
/// <c>int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Plot
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int PlotEx(
|
|
ImGuiPlotType plotType,
|
|
ImString label,
|
|
nint valuesGetter,
|
|
Ptr data,
|
|
int valuesCount,
|
|
int valuesOffset,
|
|
ImString overlayText,
|
|
float scaleMin,
|
|
float scaleMax,
|
|
in float2 sizeArg
|
|
)
|
|
{
|
|
fixed (float2* sizeArg_fixed = &sizeArg)
|
|
{
|
|
fixed (byte* overlayText_fixed = overlayText)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.PlotEx_internal(
|
|
plotType,
|
|
label_fixed,
|
|
valuesGetter,
|
|
data,
|
|
valuesCount,
|
|
valuesOffset,
|
|
overlayText_fixed,
|
|
scaleMin,
|
|
scaleMax,
|
|
sizeArg_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3912">imgui_internal.h:3912</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2349">imgui_draw.cpp:2349</see>
|
|
/// <br/>
|
|
/// <c>void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Shade functions (write over already created vertices)
|
|
/// </para>
|
|
/// <para>
|
|
/// Generic linear color gradient, write to RGB fields, leave A untouched.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ShadeVertsLinearColorGradientKeepAlpha(
|
|
ImDrawListPtr drawList,
|
|
int vertStartIdx,
|
|
int vertEndIdx,
|
|
float2 gradientP0,
|
|
float2 gradientP1,
|
|
uint col0,
|
|
uint col1
|
|
) =>
|
|
PInvoke.ShadeVertsLinearColorGradientKeepAlpha_internal(
|
|
drawList,
|
|
vertStartIdx,
|
|
vertEndIdx,
|
|
gradientP0,
|
|
gradientP1,
|
|
col0,
|
|
col1
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3913">imgui_internal.h:3913</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2373">imgui_draw.cpp:2373</see>
|
|
/// <br/>
|
|
/// <c>void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Shade functions (write over already created vertices)
|
|
/// </para>
|
|
/// <para>
|
|
/// Distribute UV over (a, b) rectangle
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ShadeVertsLinearUV(
|
|
ImDrawListPtr drawList,
|
|
int vertStartIdx,
|
|
int vertEndIdx,
|
|
in float2 a,
|
|
in float2 b,
|
|
in float2 uvA,
|
|
in float2 uvB,
|
|
bool clamp
|
|
)
|
|
{
|
|
fixed (float2* uvB_fixed = &uvB)
|
|
{
|
|
fixed (float2* uvA_fixed = &uvA)
|
|
{
|
|
fixed (float2* b_fixed = &b)
|
|
{
|
|
fixed (float2* a_fixed = &a)
|
|
{
|
|
PInvoke.ShadeVertsLinearUV_internal(
|
|
drawList,
|
|
vertStartIdx,
|
|
vertEndIdx,
|
|
a_fixed,
|
|
b_fixed,
|
|
uvA_fixed,
|
|
uvB_fixed,
|
|
clamp
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3914">imgui_internal.h:3914</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2397">imgui_draw.cpp:2397</see>
|
|
/// <br/>
|
|
/// <c>void ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Shade functions (write over already created vertices)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ShadeVertsTransformPos(
|
|
ImDrawListPtr drawList,
|
|
int vertStartIdx,
|
|
int vertEndIdx,
|
|
in float2 pivotIn,
|
|
float cosA,
|
|
float sinA,
|
|
in float2 pivotOut
|
|
)
|
|
{
|
|
fixed (float2* pivotOut_fixed = &pivotOut)
|
|
{
|
|
fixed (float2* pivotIn_fixed = &pivotIn)
|
|
{
|
|
PInvoke.ShadeVertsTransformPos_internal(
|
|
drawList,
|
|
vertStartIdx,
|
|
vertEndIdx,
|
|
pivotIn_fixed,
|
|
cosA,
|
|
sinA,
|
|
pivotOut_fixed
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3917">imgui_internal.h:3917</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4573">imgui.cpp:4573</see>
|
|
/// <br/><c>void GcCompactTransientMiscBuffers()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Garbage collection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void GcCompactTransientMiscBuffers() =>
|
|
PInvoke.GcCompactTransientMiscBuffers_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3918">imgui_internal.h:3918</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4589">imgui.cpp:4589</see>
|
|
/// <br/><c>void GcCompactTransientWindowBuffers(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Garbage collection
|
|
/// </para>
|
|
/// <code>
|
|
/// Free up/compact internal window buffers, we can use this when a window becomes unused.
|
|
/// Not freed:
|
|
/// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data)
|
|
/// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) =>
|
|
PInvoke.GcCompactTransientWindowBuffers_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3919">imgui_internal.h:3919</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L4601">imgui.cpp:4601</see>
|
|
/// <br/><c>void GcAwakeTransientWindowBuffers(ImGuiWindow* window)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Garbage collection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) =>
|
|
PInvoke.GcAwakeTransientWindowBuffers_internal(window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3922">imgui_internal.h:3922</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11512">imgui.cpp:11512</see>
|
|
/// <br/><c>bool ErrorLog(const char* msg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool ErrorLog(ImString msg)
|
|
{
|
|
fixed (byte* msg_fixed = msg)
|
|
{
|
|
return PInvoke.ErrorLog_internal(msg_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3923">imgui_internal.h:3923</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11371">imgui.cpp:11371</see>
|
|
/// <br/><c>void ErrorRecoveryStoreState(ImGuiErrorRecoveryState* state_out)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// <para>
|
|
/// Save current stack sizes. Called e.g. by NewFrame() and by Begin() but may be called for manual
|
|
/// recovery.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ErrorRecoveryStoreState(ImGuiErrorRecoveryStatePtr stateOut) =>
|
|
PInvoke.ErrorRecoveryStoreState_internal(stateOut);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3924">imgui_internal.h:3924</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11390">imgui.cpp:11390</see>
|
|
/// <br/><c>void ErrorRecoveryTryToRecoverState(const ImGuiErrorRecoveryState* state_in)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// <code>
|
|
/// Chosen name "Try to recover" over e.g. "Restore" to suggest this is not a 100% guaranteed recovery.
|
|
/// Called by e.g. EndFrame() but may be called for manual recovery.
|
|
/// Attempt to recover full window stack.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ErrorRecoveryTryToRecoverState(ImGuiErrorRecoveryStatePtr stateIn) =>
|
|
PInvoke.ErrorRecoveryTryToRecoverState_internal(stateIn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3925">imgui_internal.h:3925</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11428">imgui.cpp:11428</see>
|
|
/// <br/><c>void ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryState* state_in)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// <code>
|
|
/// Called by e.g. End() but may be called for manual recovery.
|
|
/// Read '// Error Handling [BETA]' block in imgui_internal.h for details.
|
|
/// Attempt to recover from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ErrorRecoveryTryToRecoverWindowState(ImGuiErrorRecoveryStatePtr stateIn) =>
|
|
PInvoke.ErrorRecoveryTryToRecoverWindowState_internal(stateIn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3926">imgui_internal.h:3926</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11224">imgui.cpp:11224</see>
|
|
/// <br/><c>void ErrorCheckUsingSetCursorPosToExtendParentBoundaries()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// <code>
|
|
/// Advanced:
|
|
/// - For reference, old logic was causing issues because it meant that SetCursorScreenPos(GetCursorScreenPos())
|
|
/// had a side-effect on layout! In particular this caused problem to compute group boundaries.
|
|
/// e.g. BeginGroup() + SomeItem() + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() would cause the
|
|
/// group to be taller because auto-sizing generally adds padding on bottom and right side.
|
|
/// - While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect.
|
|
/// Using vertical alignment patterns would frequently trigger this sorts of issue.
|
|
/// - See https://github.com/ocornut/imgui/issues/5548 for more details.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() =>
|
|
PInvoke.ErrorCheckUsingSetCursorPosToExtendParentBoundaries_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3927">imgui_internal.h:3927</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11557">imgui.cpp:11557</see>
|
|
/// <br/><c>void ErrorCheckEndFrameFinalizeErrorTooltip()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ErrorCheckEndFrameFinalizeErrorTooltip() =>
|
|
PInvoke.ErrorCheckEndFrameFinalizeErrorTooltip_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3928">imgui_internal.h:3928</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11610">imgui.cpp:11610</see>
|
|
/// <br/><c>bool BeginErrorTooltip()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// <para>
|
|
/// Pseudo-tooltip. Follow mouse until CTRL is held. When CTRL is held we lock position, allowing to
|
|
/// click it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool BeginErrorTooltip() => PInvoke.BeginErrorTooltip_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3929">imgui_internal.h:3929</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11634">imgui.cpp:11634</see>
|
|
/// <br/><c>void EndErrorTooltip()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Error handling, State Recovery
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void EndErrorTooltip() => PInvoke.EndErrorTooltip_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// size >= 0 : alloc, size = -1 : free
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3932">imgui_internal.h:3932</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5040">imgui.cpp:5040</see>
|
|
/// <br/><c>void DebugAllocHook(ImGuiDebugAllocInfo* info, int frame_count, void* ptr, size_t size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// We record the number of allocation in recent frames, as a way to audit/sanitize our guiding
|
|
/// principles of "no allocations on idle/repeating frames"
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugAllocHook(
|
|
ImGuiDebugAllocInfoPtr info,
|
|
int frameCount,
|
|
Ptr ptr,
|
|
nuint size
|
|
) => PInvoke.DebugAllocHook_internal(info, frameCount, ptr, size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3933">imgui_internal.h:3933</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23364">imgui.cpp:23364</see>
|
|
/// <br/><c>void DebugDrawCursorPos(ImU32 col = IM_COL32(255, 0, 0, 255))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// Draw a small cross at current CursorPos in current window's DrawList
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugDrawCursorPos(ImColor8? col = default)
|
|
{
|
|
var col_default = col ?? 4278190335;
|
|
PInvoke.DebugDrawCursorPos_internal(col_default);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3934">imgui_internal.h:3934</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23374">imgui.cpp:23374</see>
|
|
/// <br/><c>void DebugDrawLineExtents(ImU32 col = IM_COL32(255, 0, 0, 255))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugDrawLineExtents(ImColor8? col = default)
|
|
{
|
|
var col_default = col ?? 4278190335;
|
|
PInvoke.DebugDrawLineExtents_internal(col_default);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3935">imgui_internal.h:3935</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23387">imgui.cpp:23387</see>
|
|
/// <br/><c>void DebugDrawItemRect(ImU32 col = IM_COL32(255, 0, 0, 255))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// Draw last item rect in ForegroundDrawList (so it is always visible)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugDrawItemRect(ImColor8? col = default)
|
|
{
|
|
var col_default = col ?? 4278190335;
|
|
PInvoke.DebugDrawItemRect_internal(col_default);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3936">imgui_internal.h:3936</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23338">imgui.cpp:23338</see>
|
|
/// <br/><c>void DebugTextUnformattedWithLocateItem(const char* line_begin, const char* line_end)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// Display line, search for 0xXXXXXXXX identifiers and call DebugLocateItemOnHover() when hovered.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugTextUnformattedWithLocateItem(ImString lineBegin, ImString lineEnd)
|
|
{
|
|
fixed (byte* lineEnd_fixed = lineEnd)
|
|
{
|
|
fixed (byte* lineBegin_fixed = lineBegin)
|
|
{
|
|
PInvoke.DebugTextUnformattedWithLocateItem_internal(lineBegin_fixed, lineEnd_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Call sparingly: only 1 at the same time!
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3937">imgui_internal.h:3937</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23397">imgui.cpp:23397</see>
|
|
/// <br/><c>void DebugLocateItem(ImGuiID target_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugLocateItem(ImGuiID targetId) => PInvoke.DebugLocateItem_internal(targetId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Only call on reaction to a mouse Hover: because only 1 at the same time!
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3938">imgui_internal.h:3938</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23406">imgui.cpp:23406</see>
|
|
/// <br/><c>void DebugLocateItemOnHover(ImGuiID target_id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME: Doesn't work over through a modal window, because they clear HoveredWindow.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugLocateItemOnHover(ImGuiID targetId) =>
|
|
PInvoke.DebugLocateItemOnHover_internal(targetId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3939">imgui_internal.h:3939</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23423">imgui.cpp:23423</see>
|
|
/// <br/><c>void DebugLocateItemResolveWithLastItem()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugLocateItemResolveWithLastItem() =>
|
|
PInvoke.DebugLocateItemResolveWithLastItem_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3940">imgui_internal.h:3940</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22467">imgui.cpp:22467</see>
|
|
/// <br/><c>void DebugBreakClearData()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugBreakClearData() => PInvoke.DebugBreakClearData_internal();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3941">imgui_internal.h:3941</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22490">imgui.cpp:22490</see>
|
|
/// <br/><c>bool DebugBreakButton(const char* label, const char* description_of_location)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <code>
|
|
/// Special button that doesn't take focus, doesn't take input owner, and can be activated without a click etc.
|
|
/// In order to reduce interferences with the contents we are trying to debug into.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe bool DebugBreakButton(ImString label, ImString descriptionOfLocation)
|
|
{
|
|
fixed (byte* descriptionOfLocation_fixed = descriptionOfLocation)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
return PInvoke.DebugBreakButton_internal(label_fixed, descriptionOfLocation_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3942">imgui_internal.h:3942</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22476">imgui.cpp:22476</see>
|
|
/// <br/><c>void DebugBreakButtonTooltip(bool keyboard_only, const char* description_of_location)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugBreakButtonTooltip(bool keyboardOnly, ImString descriptionOfLocation)
|
|
{
|
|
fixed (byte* descriptionOfLocation_fixed = descriptionOfLocation)
|
|
{
|
|
PInvoke.DebugBreakButtonTooltip_internal(keyboardOnly, descriptionOfLocation_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3943">imgui_internal.h:3943</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21599">imgui.cpp:21599</see>
|
|
/// <br/><c>void ShowFontAtlas(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] List fonts in a font atlas and display its texture
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ShowFontAtlas(ImFontAtlasPtr atlas) => PInvoke.ShowFontAtlas_internal(atlas);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3944">imgui_internal.h:3944</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23523">imgui.cpp:23523</see>
|
|
/// <br/>
|
|
/// <c>void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] ID Stack tool: hooks called by GetID() family functions
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugHookIdInfo(ImGuiID id, ImGuiDataType dataType, Ptr dataId, Ptr dataIdEnd) =>
|
|
PInvoke.DebugHookIdInfo_internal(id, dataType, dataId, dataIdEnd);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3945">imgui_internal.h:3945</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22526">imgui.cpp:22526</see>
|
|
/// <br/><c>void DebugNodeColumns(ImGuiOldColumns* columns)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display contents of Columns
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeColumns(ImGuiOldColumnsPtr columns) =>
|
|
PInvoke.DebugNodeColumns_internal(columns);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3946">imgui_internal.h:3946</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22566">imgui.cpp:22566</see>
|
|
/// <br/><c>void DebugNodeDockNode(ImGuiDockNode* node, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display contents of ImDockNode
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeDockNode(ImGuiDockNodePtr node, ImString label)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeDockNode_internal(node, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3947">imgui_internal.h:3947</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22625">imgui.cpp:22625</see>
|
|
/// <br/>
|
|
/// <c>void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <code>
|
|
/// [DEBUG] Display contents of ImDrawList
|
|
/// Note that both 'window' and 'viewport' may be NULL here. Viewport is generally null of destroyed popups which previously owned a viewport.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeDrawList(
|
|
ImGuiWindowPtr window,
|
|
ImGuiViewportPPtr viewport,
|
|
ImDrawListPtr drawList,
|
|
ImString label
|
|
)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeDrawList_internal(window, viewport, drawList, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3948">imgui_internal.h:3948</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22720">imgui.cpp:22720</see>
|
|
/// <br/>
|
|
/// <c>void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display mesh/aabb of a ImDrawCmd
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeDrawCmdShowMeshAndBoundingBox(
|
|
out ImDrawList outDrawList,
|
|
ImDrawListPtr drawList,
|
|
ImDrawCmdPtr drawCmd,
|
|
bool showMesh,
|
|
bool showAabb
|
|
)
|
|
{
|
|
fixed (ImDrawList* outDrawList_fixed = &outDrawList)
|
|
{
|
|
PInvoke.DebugNodeDrawCmdShowMeshAndBoundingBox_internal(
|
|
outDrawList_fixed,
|
|
drawList,
|
|
drawCmd,
|
|
showMesh,
|
|
showAabb
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3949">imgui_internal.h:3949</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22765">imgui.cpp:22765</see>
|
|
/// <br/><c>void DebugNodeFont(ImFont* font)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display details for a single font, called by ShowStyleEditor().
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeFont(ImFontPtr font) => PInvoke.DebugNodeFont_internal(font);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3950">imgui_internal.h:3950</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22914">imgui.cpp:22914</see>
|
|
/// <br/><c>void DebugNodeFontGlyphesForSrcMask(ImFont* font, ImFontBaked* baked, int src_mask)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeFontGlyphesForSrcMask(
|
|
ImFontPtr font,
|
|
ImFontBakedPtr baked,
|
|
int srcMask
|
|
) => PInvoke.DebugNodeFontGlyphesForSrcMask_internal(font, baked, srcMask);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3951">imgui_internal.h:3951</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22965">imgui.cpp:22965</see>
|
|
/// <br/><c>void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) =>
|
|
PInvoke.DebugNodeFontGlyph_internal(font, glyph);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID used to facilitate persisting the "current" texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3952">imgui_internal.h:3952</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21752">imgui.cpp:21752</see>
|
|
/// <br/>
|
|
/// <c>void DebugNodeTexture(ImTextureData* tex, int int_id, const ImFontAtlasRect* highlight_rect = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeTexture(
|
|
ImTextureDataPtr tex,
|
|
int intId,
|
|
ImFontAtlasRectPtr highlightRect = default
|
|
) => PInvoke.DebugNodeTexture_internal(tex, intId, highlightRect);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3953">imgui_internal.h:3953</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22982">imgui.cpp:22982</see>
|
|
/// <br/><c>void DebugNodeStorage(ImGuiStorage* storage, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display contents of ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeStorage(ImGuiStoragePtr storage, ImString label)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeStorage_internal(storage, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3954">imgui_internal.h:3954</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L22995">imgui.cpp:22995</see>
|
|
/// <br/><c>void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// [DEBUG] Display contents of ImGuiTabBar
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ImString label)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeTabBar_internal(tabBar, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3955">imgui_internal.h:3955</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4016">imgui_tables.cpp:4016</see>
|
|
/// <br/><c>void DebugNodeTable(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeTable(ImGuiTablePtr table) => PInvoke.DebugNodeTable_internal(table);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3956">imgui_internal.h:3956</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L4090">imgui_tables.cpp:4090</see>
|
|
/// <br/><c>void DebugNodeTableSettings(ImGuiTableSettings* settings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) =>
|
|
PInvoke.DebugNodeTableSettings_internal(settings);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3957">imgui_internal.h:3957</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L5489">imgui_widgets.cpp:5489</see>
|
|
/// <br/><c>void DebugNodeInputTextState(ImGuiInputTextState* state)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeInputTextState(ImGuiInputTextStatePtr state) =>
|
|
PInvoke.DebugNodeInputTextState_internal(state);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3958">imgui_internal.h:3958</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7497">imgui_widgets.cpp:7497</see>
|
|
/// <br/><c>void DebugNodeTypingSelectState(ImGuiTypingSelectState* state)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeTypingSelectState(ImGuiTypingSelectStatePtr state) =>
|
|
PInvoke.DebugNodeTypingSelectState_internal(state);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3959">imgui_internal.h:3959</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8232">imgui_widgets.cpp:8232</see>
|
|
/// <br/><c>void DebugNodeMultiSelectState(ImGuiMultiSelectState* state)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeMultiSelectState(ImGuiMultiSelectStatePtr state) =>
|
|
PInvoke.DebugNodeMultiSelectState_internal(state);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3960">imgui_internal.h:3960</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23080">imgui.cpp:23080</see>
|
|
/// <br/><c>void DebugNodeWindow(ImGuiWindow* window, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeWindow(ImGuiWindowPtr window, ImString label)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeWindow_internal(window, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3961">imgui_internal.h:3961</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23157">imgui.cpp:23157</see>
|
|
/// <br/><c>void DebugNodeWindowSettings(ImGuiWindowSettings* settings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) =>
|
|
PInvoke.DebugNodeWindowSettings_internal(settings);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3962">imgui_internal.h:3962</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23167">imgui.cpp:23167</see>
|
|
/// <br/><c>void DebugNodeWindowsList(ImVector<ImGuiWindow*>* windows, const char* label)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeWindowsList(Ptr<ImVector<ImGuiWindowPtr>> windows, ImString label)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodeWindowsList_internal((ImVector<ImGuiWindowPtr>*)windows, label_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3963">imgui_internal.h:3963</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23181">imgui.cpp:23181</see>
|
|
/// <br/>
|
|
/// <c>void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeWindowsListByBeginStackParent(
|
|
Ptr<ImGuiWindowPtr> windows,
|
|
int windowsSize,
|
|
ImGuiWindowPtr parentInBeginStack
|
|
) =>
|
|
PInvoke.DebugNodeWindowsListByBeginStackParent_internal(
|
|
(ImGuiWindow**)windows,
|
|
windowsSize,
|
|
parentInBeginStack
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3964">imgui_internal.h:3964</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23035">imgui.cpp:23035</see>
|
|
/// <br/><c>void DebugNodeViewport(ImGuiViewportP* viewport)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodeViewport(ImGuiViewportPPtr viewport) =>
|
|
PInvoke.DebugNodeViewport_internal(viewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3965">imgui_internal.h:3965</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L23072">imgui.cpp:23072</see>
|
|
/// <br/><c>void DebugNodePlatformMonitor(ImGuiPlatformMonitor* monitor, const char* label, int idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugNodePlatformMonitor(ImGuiPlatformMonitorPtr monitor, ImString label, int idx)
|
|
{
|
|
fixed (byte* label_fixed = label)
|
|
{
|
|
PInvoke.DebugNodePlatformMonitor_internal(monitor, label_fixed, idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3966">imgui_internal.h:3966</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21459">imgui.cpp:21459</see>
|
|
/// <br/><c>void DebugRenderKeyboardPreview(ImDrawList* draw_list)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// <para>
|
|
/// Draw an arbitrary US keyboard layout to visualize translated keys
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugRenderKeyboardPreview(ImDrawListPtr drawList) =>
|
|
PInvoke.DebugRenderKeyboardPreview_internal(drawList);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3967">imgui_internal.h:3967</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21390">imgui.cpp:21390</see>
|
|
/// <br/>
|
|
/// <c>void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Debug Tools
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void DebugRenderViewportThumbnail(
|
|
ImDrawListPtr drawList,
|
|
ImGuiViewportPPtr viewport,
|
|
in floatRect bb
|
|
)
|
|
{
|
|
fixed (floatRect* bb_fixed = &bb)
|
|
{
|
|
PInvoke.DebugRenderViewportThumbnail_internal(drawList, viewport, bb_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L579">imgui_internal.h:579</see>
|
|
/// <br/><c>ImVec2 GetCenter() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetCenter(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetCenter_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L580">imgui_internal.h:580</see>
|
|
/// <br/><c>ImVec2 GetSize() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetSize(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetSize_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L581">imgui_internal.h:581</see>
|
|
/// <br/><c>float GetWidth() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float GetWidth(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetWidth_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L582">imgui_internal.h:582</see>
|
|
/// <br/><c>float GetHeight() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float GetHeight(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetHeight_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L583">imgui_internal.h:583</see>
|
|
/// <br/><c>float GetArea() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float GetArea(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetArea_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Top-left
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L584">imgui_internal.h:584</see>
|
|
/// <br/><c>ImVec2 GetTL() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetTL(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetTL_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Top-right
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L585">imgui_internal.h:585</see>
|
|
/// <br/><c>ImVec2 GetTR() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetTR(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetTR_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Bottom-left
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L586">imgui_internal.h:586</see>
|
|
/// <br/><c>ImVec2 GetBL() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetBL(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetBL_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Bottom-right
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L587">imgui_internal.h:587</see>
|
|
/// <br/><c>ImVec2 GetBR() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float2 GetBR(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_GetBR_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L588">imgui_internal.h:588</see>
|
|
/// <br/><c>bool Contains(const ImVec2& p) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool Contains(Ptr<floatRect> target, in float2 p)
|
|
{
|
|
fixed (float2* p_fixed = &p)
|
|
{
|
|
return PInvoke.ImRect_Contains_internal_0((floatRect*)target, p_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L589">imgui_internal.h:589</see>
|
|
/// <br/><c>bool Contains(const ImRect& r) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool Contains(Ptr<floatRect> target, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
return PInvoke.ImRect_Contains_internal_1((floatRect*)target, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L590">imgui_internal.h:590</see>
|
|
/// <br/><c>bool ContainsWithPad(const ImVec2& p, const ImVec2& pad) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool ContainsWithPad(Ptr<floatRect> target, in float2 p, in float2 pad)
|
|
{
|
|
fixed (float2* pad_fixed = &pad)
|
|
{
|
|
fixed (float2* p_fixed = &p)
|
|
{
|
|
return PInvoke.ImRect_ContainsWithPad_internal((floatRect*)target, p_fixed, pad_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L591">imgui_internal.h:591</see>
|
|
/// <br/><c>bool Overlaps(const ImRect& r) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool Overlaps(Ptr<floatRect> target, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
return PInvoke.ImRect_Overlaps_internal((floatRect*)target, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L592">imgui_internal.h:592</see>
|
|
/// <br/><c>void Add(const ImVec2& p)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Add(Ptr<floatRect> target, in float2 p)
|
|
{
|
|
fixed (float2* p_fixed = &p)
|
|
{
|
|
PInvoke.ImRect_Add_internal_0((floatRect*)target, p_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L593">imgui_internal.h:593</see>
|
|
/// <br/><c>void Add(const ImRect& r)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Add(Ptr<floatRect> target, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
PInvoke.ImRect_Add_internal_1((floatRect*)target, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L594">imgui_internal.h:594</see>
|
|
/// <br/><c>void Expand(const float amount)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Expand(Ptr<floatRect> target, float amount) =>
|
|
PInvoke.ImRect_Expand_internal_0((floatRect*)target, amount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L595">imgui_internal.h:595</see>
|
|
/// <br/><c>void Expand(const ImVec2& amount)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Expand(Ptr<floatRect> target, in float2 amount)
|
|
{
|
|
fixed (float2* amount_fixed = &amount)
|
|
{
|
|
PInvoke.ImRect_Expand_internal_1((floatRect*)target, amount_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L596">imgui_internal.h:596</see>
|
|
/// <br/><c>void Translate(const ImVec2& d)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Translate(Ptr<floatRect> target, in float2 d)
|
|
{
|
|
fixed (float2* d_fixed = &d)
|
|
{
|
|
PInvoke.ImRect_Translate_internal((floatRect*)target, d_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L597">imgui_internal.h:597</see>
|
|
/// <br/><c>void TranslateX(float dx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void TranslateX(Ptr<floatRect> target, float dx) =>
|
|
PInvoke.ImRect_TranslateX_internal((floatRect*)target, dx);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L598">imgui_internal.h:598</see>
|
|
/// <br/><c>void TranslateY(float dy)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void TranslateY(Ptr<floatRect> target, float dy) =>
|
|
PInvoke.ImRect_TranslateY_internal((floatRect*)target, dy);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not
|
|
/// for display.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L599">imgui_internal.h:599</see>
|
|
/// <br/><c>void ClipWith(const ImRect& r)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void ClipWith(Ptr<floatRect> target, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
PInvoke.ImRect_ClipWith_internal((floatRect*)target, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Full version, ensure both points are fully clipped.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L600">imgui_internal.h:600</see>
|
|
/// <br/><c>void ClipWithFull(const ImRect& r)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void ClipWithFull(Ptr<floatRect> target, in floatRect r)
|
|
{
|
|
fixed (floatRect* r_fixed = &r)
|
|
{
|
|
PInvoke.ImRect_ClipWithFull_internal((floatRect*)target, r_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L601">imgui_internal.h:601</see>
|
|
/// <br/><c>void Floor()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Floor(Ptr<floatRect> target) => PInvoke.ImRect_Floor_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L602">imgui_internal.h:602</see>
|
|
/// <br/><c>bool IsInverted() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool IsInverted(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_IsInverted_internal((floatRect*)target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L603">imgui_internal.h:603</see>
|
|
/// <br/><c>ImVec4 ToVec4() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe float4 ToVec4(Ptr<floatRect> target) =>
|
|
PInvoke.ImRect_ToVec4_internal((floatRect*)target);
|
|
}
|
|
}
|
|
}
|