mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
21 changed files with 784842 additions and 0 deletions
88
Brutal.ImGui/Generated-Internal/Functions/ImBitVector.gen.cs
Normal file
88
Brutal.ImGui/Generated-Internal/Functions/ImBitVector.gen.cs
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImBitVectorExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L650">imgui_internal.h:650</see>
|
||||
/// <br/><c>void Create(int sz)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper: ImBitVector
|
||||
/// Store 1-bit per value.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void Create(this ImBitVectorPtr target, int sz) =>
|
||||
PInvoke.ImBitVector_Create_internal(target, sz);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L651">imgui_internal.h:651</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper: ImBitVector
|
||||
/// Store 1-bit per value.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void Clear(this ImBitVectorPtr target) => PInvoke.ImBitVector_Clear_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L652">imgui_internal.h:652</see>
|
||||
/// <br/><c>bool TestBit(int n) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper: ImBitVector
|
||||
/// Store 1-bit per value.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool TestBit(this ImBitVectorPtr target, int n) =>
|
||||
PInvoke.ImBitVector_TestBit_internal(target, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L653">imgui_internal.h:653</see>
|
||||
/// <br/><c>void SetBit(int n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper: ImBitVector
|
||||
/// Store 1-bit per value.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetBit(this ImBitVectorPtr target, int n) =>
|
||||
PInvoke.ImBitVector_SetBit_internal(target, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L654">imgui_internal.h:654</see>
|
||||
/// <br/><c>void ClearBit(int n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper: ImBitVector
|
||||
/// Store 1-bit per value.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearBit(this ImBitVectorPtr target, int n) =>
|
||||
PInvoke.ImBitVector_ClearBit_internal(target, n);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImDrawListSharedDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L872">imgui_internal.h:872</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L407">imgui_draw.cpp:407</see>
|
||||
/// <br/><c>void SetCircleTessellationMaxError(float max_error)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetCircleTessellationMaxError(ImDrawListSharedDataPtr target, float maxError) =>
|
||||
PInvoke.ImDrawListSharedData_SetCircleTessellationMaxError_internal(target, maxError);
|
||||
}
|
||||
}
|
||||
11009
Brutal.ImGui/Generated-Internal/Functions/ImGui.gen.cs
Normal file
11009
Brutal.ImGui/Generated-Internal/Functions/ImGui.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
135
Brutal.ImGui/Generated-Internal/Functions/ImGuiDockNode.gen.cs
Normal file
135
Brutal.ImGui/Generated-Internal/Functions/ImGuiDockNode.gen.cs
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiDockNodeExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2036">imgui_internal.h:2036</see>
|
||||
/// <br/><c>bool IsRootNode() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsRootNode(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsRootNode_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2037">imgui_internal.h:2037</see>
|
||||
/// <br/><c>bool IsDockSpace() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsDockSpace(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsDockSpace_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2038">imgui_internal.h:2038</see>
|
||||
/// <br/><c>bool IsFloatingNode() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsFloatingNode(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsFloatingNode_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2039">imgui_internal.h:2039</see>
|
||||
/// <br/><c>bool IsCentralNode() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsCentralNode(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsCentralNode_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Hidden tab bar can be shown back by clicking the small triangle
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2040">imgui_internal.h:2040</see>
|
||||
/// <br/><c>bool IsHiddenTabBar() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsHiddenTabBar(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsHiddenTabBar_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Never show a tab bar
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2041">imgui_internal.h:2041</see>
|
||||
/// <br/><c>bool IsNoTabBar() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsNoTabBar(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsNoTabBar_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2042">imgui_internal.h:2042</see>
|
||||
/// <br/><c>bool IsSplitNode() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsSplitNode(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsSplitNode_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2043">imgui_internal.h:2043</see>
|
||||
/// <br/><c>bool IsLeafNode() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsLeafNode(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsLeafNode_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2044">imgui_internal.h:2044</see>
|
||||
/// <br/><c>bool IsEmpty() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsEmpty(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_IsEmpty_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2045">imgui_internal.h:2045</see>
|
||||
/// <br/><c>ImRect Rect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe floatRect Rect(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_Rect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2047">imgui_internal.h:2047</see>
|
||||
/// <br/><c>void SetLocalFlags(ImGuiDockNodeFlags flags)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetLocalFlags(this ImGuiDockNodePtr target, ImGuiDockNodeFlags flags) =>
|
||||
PInvoke.ImGuiDockNode_SetLocalFlags_internal(target, flags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2048">imgui_internal.h:2048</see>
|
||||
/// <br/><c>void UpdateMergedFlags()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void UpdateMergedFlags(this ImGuiDockNodePtr target) =>
|
||||
PInvoke.ImGuiDockNode_UpdateMergedFlags_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiInputTextDeactivatedStateExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1203">imgui_internal.h:1203</see>
|
||||
/// <br/><c>void ClearFreeMemory()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearFreeMemory(this ImGuiInputTextDeactivatedStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextDeactivatedState_ClearFreeMemory_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,259 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiInputTextStateExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1242">imgui_internal.h:1242</see>
|
||||
/// <br/><c>void ClearText()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearText(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ClearText_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1243">imgui_internal.h:1243</see>
|
||||
/// <br/><c>void ClearFreeMemory()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearFreeMemory(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ClearFreeMemory_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Cannot be inline because we call in code in stb_textedit.h implementation
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1244">imgui_internal.h:1244</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4234">imgui_widgets.cpp:4234</see>
|
||||
/// <br/><c>void OnKeyPressed(int key)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void OnKeyPressed(this ImGuiInputTextStatePtr target, int key) =>
|
||||
PInvoke.ImGuiInputTextState_OnKeyPressed_internal(target, key);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1245">imgui_internal.h:1245</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4241">imgui_widgets.cpp:4241</see>
|
||||
/// <br/><c>void OnCharPressed(unsigned int c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void OnCharPressed(this ImGuiInputTextStatePtr target, uint c) =>
|
||||
PInvoke.ImGuiInputTextState_OnCharPressed_internal(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1248">imgui_internal.h:1248</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4253">imgui_widgets.cpp:4253</see>
|
||||
/// <br/><c>void CursorAnimReset()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Those functions are not inlined in imgui_internal.h, allowing us to hide ImStbTexteditState from that
|
||||
/// header.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void CursorAnimReset(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_CursorAnimReset_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1249">imgui_internal.h:1249</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4254">imgui_widgets.cpp:4254</see>
|
||||
/// <br/><c>void CursorClamp()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void CursorClamp(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_CursorClamp_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1250">imgui_internal.h:1250</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4255">imgui_widgets.cpp:4255</see>
|
||||
/// <br/><c>bool HasSelection() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool HasSelection(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_HasSelection_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1251">imgui_internal.h:1251</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4256">imgui_widgets.cpp:4256</see>
|
||||
/// <br/><c>void ClearSelection()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearSelection(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ClearSelection_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1252">imgui_internal.h:1252</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4257">imgui_widgets.cpp:4257</see>
|
||||
/// <br/><c>int GetCursorPos() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe int GetCursorPos(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_GetCursorPos_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1253">imgui_internal.h:1253</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4258">imgui_widgets.cpp:4258</see>
|
||||
/// <br/><c>int GetSelectionStart() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe int GetSelectionStart(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_GetSelectionStart_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1254">imgui_internal.h:1254</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4259">imgui_widgets.cpp:4259</see>
|
||||
/// <br/><c>int GetSelectionEnd() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe int GetSelectionEnd(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_GetSelectionEnd_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1255">imgui_internal.h:1255</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4260">imgui_widgets.cpp:4260</see>
|
||||
/// <br/><c>void SelectAll()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cursor & Selection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SelectAll(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_SelectAll_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1262">imgui_internal.h:1262</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4261">imgui_widgets.cpp:4261</see>
|
||||
/// <br/><c>void ReloadUserBufAndSelectAll()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Reload user buf (WIP #2890)
|
||||
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
||||
/// strcpy(my_buf, "hello");
|
||||
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
||||
/// state->ReloadUserBufAndSelectAll();
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ReloadUserBufAndSelectAll(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ReloadUserBufAndSelectAll_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1263">imgui_internal.h:1263</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4262">imgui_widgets.cpp:4262</see>
|
||||
/// <br/><c>void ReloadUserBufAndKeepSelection()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Reload user buf (WIP #2890)
|
||||
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
||||
/// strcpy(my_buf, "hello");
|
||||
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
||||
/// state->ReloadUserBufAndSelectAll();
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ReloadUserBufAndKeepSelection(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ReloadUserBufAndKeepSelection_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1264">imgui_internal.h:1264</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4263">imgui_widgets.cpp:4263</see>
|
||||
/// <br/><c>void ReloadUserBufAndMoveToEnd()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Reload user buf (WIP #2890)
|
||||
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
||||
/// strcpy(my_buf, "hello");
|
||||
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
||||
/// state->ReloadUserBufAndSelectAll();
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ReloadUserBufAndMoveToEnd(this ImGuiInputTextStatePtr target) =>
|
||||
PInvoke.ImGuiInputTextState_ReloadUserBufAndMoveToEnd_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiKeyRoutingTableExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1578">imgui_internal.h:1578</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImGuiKeyRoutingTablePtr target) =>
|
||||
PInvoke.ImGuiKeyRoutingTable_Clear_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiListClipperDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1662">imgui_internal.h:1662</see>
|
||||
/// <br/><c>void Reset(ImGuiListClipper* clipper)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Reset(this ImGuiListClipperDataPtr target, ImGuiListClipperPtr clipper) =>
|
||||
PInvoke.ImGuiListClipperData_Reset_internal(target, clipper);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiListClipperRangeExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1648">imgui_internal.h:1648</see>
|
||||
/// <br/><c>static ImGuiListClipperRange FromIndices(int min, int max)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiListClipperRange FromIndices(
|
||||
this ImGuiListClipperRangePtr target,
|
||||
int min,
|
||||
int max
|
||||
) => PInvoke.ImGuiListClipperRange_FromIndices_internal(target, min, max);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1649">imgui_internal.h:1649</see>
|
||||
/// <br/><c>static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiListClipperRange FromPositions(
|
||||
this ImGuiListClipperRangePtr target,
|
||||
float y1,
|
||||
float y2,
|
||||
int offMin,
|
||||
int offMax
|
||||
) => PInvoke.ImGuiListClipperRange_FromPositions_internal(target, y1, y2, offMin, offMax);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiMenuColumnsExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1191">imgui_internal.h:1191</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8777">imgui_widgets.cpp:8777</see>
|
||||
/// <br/><c>void Update(float spacing, bool window_reappearing)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers for internal use
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Update(this ImGuiMenuColumnsPtr target, float spacing, bool windowReappearing) =>
|
||||
PInvoke.ImGuiMenuColumns_Update_internal(target, spacing, windowReappearing);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1192">imgui_internal.h:1192</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8809">imgui_widgets.cpp:8809</see>
|
||||
/// <br/><c>float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe float DeclColumns(
|
||||
this ImGuiMenuColumnsPtr target,
|
||||
float wIcon,
|
||||
float wLabel,
|
||||
float wShortcut,
|
||||
float wMark
|
||||
) => PInvoke.ImGuiMenuColumns_DeclColumns_internal(target, wIcon, wLabel, wShortcut, wMark);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1193">imgui_internal.h:1193</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8788">imgui_widgets.cpp:8788</see>
|
||||
/// <br/><c>void CalcNextTotalWidth(bool update_offsets)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void CalcNextTotalWidth(this ImGuiMenuColumnsPtr target, bool updateOffsets) =>
|
||||
PInvoke.ImGuiMenuColumns_CalcNextTotalWidth_internal(target, updateOffsets);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiMultiSelectTempDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Zero-clear except IO as we preserve IO.Requests[] buffer allocation.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1911">imgui_internal.h:1911</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImGuiMultiSelectTempDataPtr target) =>
|
||||
PInvoke.ImGuiMultiSelectTempData_Clear_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1912">imgui_internal.h:1912</see>
|
||||
/// <br/><c>void ClearIO()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearIO(this ImGuiMultiSelectTempDataPtr target) =>
|
||||
PInvoke.ImGuiMultiSelectTempData_ClearIO_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiNavItemDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1752">imgui_internal.h:1752</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImGuiNavItemDataPtr target) =>
|
||||
PInvoke.ImGuiNavItemData_Clear_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiNextItemDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Also cleared manually by ItemAdd()!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1355">imgui_internal.h:1355</see>
|
||||
/// <br/><c>inline void ClearFlags()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearFlags(this ImGuiNextItemDataPtr target) =>
|
||||
PInvoke.ImGuiNextItemData_ClearFlags_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiNextWindowDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1325">imgui_internal.h:1325</see>
|
||||
/// <br/><c>inline void ClearFlags()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearFlags(this ImGuiNextWindowDataPtr target) =>
|
||||
PInvoke.ImGuiNextWindowData_ClearFlags_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiStyleVarInfoExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L899">imgui_internal.h:899</see>
|
||||
/// <br/><c>void* GetVarPtr(void* parent) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Ptr GetVarPtr(this ImGuiStyleVarInfoPtr target, Ptr parent) =>
|
||||
PInvoke.ImGuiStyleVarInfo_GetVarPtr_internal(target, parent);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiTableSettingsExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3309">imgui_internal.h:3309</see>
|
||||
/// <br/><c>ImGuiTableColumnSettings* GetColumnSettings()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiTableColumnSettingsPtr GetColumnSettings(this ImGuiTableSettingsPtr target) =>
|
||||
PInvoke.ImGuiTableSettings_GetColumnSettings_internal(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiTextIndexExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L805">imgui_internal.h:805</see>
|
||||
/// <br/><c>void clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void clear(this ImGuiTextIndexPtr target) => PInvoke.ImGuiTextIndex_clear_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L806">imgui_internal.h:806</see>
|
||||
/// <br/><c>int size()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe int size(this ImGuiTextIndexPtr target) => PInvoke.ImGuiTextIndex_size_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L807">imgui_internal.h:807</see>
|
||||
/// <br/><c>const char* get_line_begin(const char* base, int n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Ptr<byte> get_line_begin(this ImGuiTextIndexPtr target, Ptr<byte> @base, int n) =>
|
||||
PInvoke.ImGuiTextIndex_get_line_begin_internal(target, (byte*)@base, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L808">imgui_internal.h:808</see>
|
||||
/// <br/><c>const char* get_line_end(const char* base, int n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Ptr<byte> get_line_end(this ImGuiTextIndexPtr target, Ptr<byte> @base, int n) =>
|
||||
PInvoke.ImGuiTextIndex_get_line_end_internal(target, (byte*)@base, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L809">imgui_internal.h:809</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3127">imgui.cpp:3127</see>
|
||||
/// <br/><c>void append(const char* base, int old_size, int new_size)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void append(this ImGuiTextIndexPtr target, Ptr<byte> @base, int oldSize, int newSize) =>
|
||||
PInvoke.ImGuiTextIndex_append_internal(target, (byte*)@base, oldSize, newSize);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiTypingSelectStateExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// We preserve remaining data for easier debugging
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1796">imgui_internal.h:1796</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImGuiTypingSelectStatePtr target) =>
|
||||
PInvoke.ImGuiTypingSelectState_Clear_internal(target);
|
||||
}
|
||||
}
|
||||
135
Brutal.ImGui/Generated-Internal/Functions/ImGuiViewportP.gen.cs
Normal file
135
Brutal.ImGui/Generated-Internal/Functions/ImGuiViewportP.gen.cs
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiViewportPExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2123">imgui_internal.h:2123</see>
|
||||
/// <br/><c>void ClearRequestFlags()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearRequestFlags(this ImGuiViewportPPtr target) =>
|
||||
PInvoke.ImGuiViewportP_ClearRequestFlags_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2126">imgui_internal.h:2126</see>
|
||||
/// <br/><c>ImVec2 CalcWorkRectPos(const ImVec2& inset_min) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
||||
/// frame data, and 1 pair for currently building rect)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe float2 CalcWorkRectPos(this ImGuiViewportPPtr target, in float2 insetMin)
|
||||
{
|
||||
fixed (float2* insetMin_fixed = &insetMin)
|
||||
{
|
||||
return PInvoke.ImGuiViewportP_CalcWorkRectPos_internal(target, insetMin_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2127">imgui_internal.h:2127</see>
|
||||
/// <br/><c>ImVec2 CalcWorkRectSize(const ImVec2& inset_min, const ImVec2& inset_max) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
||||
/// frame data, and 1 pair for currently building rect)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe float2 CalcWorkRectSize(
|
||||
this ImGuiViewportPPtr target,
|
||||
in float2 insetMin,
|
||||
in float2 insetMax
|
||||
)
|
||||
{
|
||||
fixed (float2* insetMax_fixed = &insetMax)
|
||||
{
|
||||
fixed (float2* insetMin_fixed = &insetMin)
|
||||
{
|
||||
return PInvoke.ImGuiViewportP_CalcWorkRectSize_internal(target, insetMin_fixed, insetMax_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update public fields
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2128">imgui_internal.h:2128</see>
|
||||
/// <br/><c>void UpdateWorkRect()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
||||
/// frame data, and 1 pair for currently building rect)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void UpdateWorkRect(this ImGuiViewportPPtr target) =>
|
||||
PInvoke.ImGuiViewportP_UpdateWorkRect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2131">imgui_internal.h:2131</see>
|
||||
/// <br/><c>ImRect GetMainRect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
||||
/// hence the code asymmetry)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect GetMainRect(this ImGuiViewportPPtr target) =>
|
||||
PInvoke.ImGuiViewportP_GetMainRect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2132">imgui_internal.h:2132</see>
|
||||
/// <br/><c>ImRect GetWorkRect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
||||
/// hence the code asymmetry)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect GetWorkRect(this ImGuiViewportPPtr target) =>
|
||||
PInvoke.ImGuiViewportP_GetWorkRect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2133">imgui_internal.h:2133</see>
|
||||
/// <br/><c>ImRect GetBuildWorkRect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
||||
/// hence the code asymmetry)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect GetBuildWorkRect(this ImGuiViewportPPtr target) =>
|
||||
PInvoke.ImGuiViewportP_GetBuildWorkRect_internal(target);
|
||||
}
|
||||
}
|
||||
139
Brutal.ImGui/Generated-Internal/Functions/ImGuiWindow.gen.cs
Normal file
139
Brutal.ImGui/Generated-Internal/Functions/ImGuiWindow.gen.cs
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public static partial class ImGuiWindowExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2924">imgui_internal.h:2924</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9542">imgui.cpp:9542</see>
|
||||
/// <br/><c>ImGuiID GetID(const char* str, const char* str_end = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, ImString str)
|
||||
{
|
||||
fixed (byte* str_fixed = str)
|
||||
{
|
||||
return PInvoke.ImGuiWindow_GetID_internal_0(target, str_fixed, str_fixed + str.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2925">imgui_internal.h:2925</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9554">imgui.cpp:9554</see>
|
||||
/// <br/><c>ImGuiID GetID(const void* ptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, Ptr ptr) =>
|
||||
PInvoke.ImGuiWindow_GetID_internal_1(target, ptr);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2926">imgui_internal.h:2926</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9566">imgui.cpp:9566</see>
|
||||
/// <br/><c>ImGuiID GetID(int n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe ImGuiID GetID(this ImGuiWindowPtr target, int n) =>
|
||||
PInvoke.ImGuiWindow_GetID_internal_2(target, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2927">imgui_internal.h:2927</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9580">imgui.cpp:9580</see>
|
||||
/// <br/><c>ImGuiID GetIDFromPos(const ImVec2& p_abs)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// This is only used in rare/specific situations to manufacture an ID out of nowhere.
|
||||
/// FIXME: Consider instead storing last non-zero ID + count of successive zero-ID, and combine those?
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImGuiID GetIDFromPos(this ImGuiWindowPtr target, in float2 pAbs)
|
||||
{
|
||||
fixed (float2* pAbs_fixed = &pAbs)
|
||||
{
|
||||
return PInvoke.ImGuiWindow_GetIDFromPos_internal(target, pAbs_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2928">imgui_internal.h:2928</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9589">imgui.cpp:9589</see>
|
||||
/// <br/><c>ImGuiID GetIDFromRectangle(const ImRect& r_abs)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// "
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImGuiID GetIDFromRectangle(this ImGuiWindowPtr target, in floatRect rAbs)
|
||||
{
|
||||
fixed (floatRect* rAbs_fixed = &rAbs)
|
||||
{
|
||||
return PInvoke.ImGuiWindow_GetIDFromRectangle_internal(target, rAbs_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2931">imgui_internal.h:2931</see>
|
||||
/// <br/><c>ImRect Rect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect Rect(this ImGuiWindowPtr target) => PInvoke.ImGuiWindow_Rect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2932">imgui_internal.h:2932</see>
|
||||
/// <br/><c>ImRect TitleBarRect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect TitleBarRect(this ImGuiWindowPtr target) =>
|
||||
PInvoke.ImGuiWindow_TitleBarRect_internal(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2933">imgui_internal.h:2933</see>
|
||||
/// <br/><c>ImRect MenuBarRect() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// We don't use g.FontSize because the window may be != g.CurrentWindow.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe floatRect MenuBarRect(this ImGuiWindowPtr target) =>
|
||||
PInvoke.ImGuiWindow_MenuBarRect_internal(target);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue