mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
21 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImDrawCmdExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// == (TexRef._TexData ? TexRef._TexData->TexID : TexRef._TexID
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3251">imgui.h:3251</see>
|
||||
/// <br/><c>inline ImTextureID GetTexID() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature)
|
||||
/// Since 1.92: removed ImDrawCmd::TextureId field, the getter function must be used!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImTextureID GetTexID(this ImDrawCmdPtr target) => PInvoke.ImDrawCmd_GetTexID(target);
|
||||
}
|
||||
}
|
||||
102
brutal.imgui/Brutal.ImGui/Generated/Functions/ImDrawData.gen.cs
Normal file
102
brutal.imgui/Brutal.ImGui/Generated/Functions/ImDrawData.gen.cs
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImDrawDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3515">imgui.h:3515</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2252">imgui_draw.cpp:2252</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Clear(this ImDrawDataPtr target) => PInvoke.ImDrawData_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to add an external draw list into an existing ImDrawData.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3516">imgui.h:3516</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2309">imgui_draw.cpp:2309</see>
|
||||
/// <br/><c>void AddDrawList(ImDrawList* draw_list)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddDrawList(this ImDrawDataPtr target, ImDrawListPtr drawList) =>
|
||||
PInvoke.ImDrawData_AddDrawList(target, drawList);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this
|
||||
/// is slow and most likely a waste of resources. Always prefer indexed rendering!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3517">imgui.h:3517</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2317">imgui_draw.cpp:2317</see>
|
||||
/// <br/><c>void DeIndexAllBuffers()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render
|
||||
/// indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void DeIndexAllBuffers(this ImDrawDataPtr target) =>
|
||||
PInvoke.ImDrawData_DeIndexAllBuffers(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different
|
||||
/// scale than Dear ImGui expects, or if there is a difference between your window resolution and
|
||||
/// framebuffer resolution.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3518">imgui.h:3518</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2337">imgui_draw.cpp:2337</see>
|
||||
/// <br/><c>void ScaleClipRects(const ImVec2& fb_scale)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Helper to scale the ClipRect field of each ImDrawCmd.
|
||||
/// Use if your final output buffer is at a different scale than draw_data->DisplaySize,
|
||||
/// or if there is a difference between your window resolution and framebuffer resolution.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ScaleClipRects(this ImDrawDataPtr target, in float2 fbScale)
|
||||
{
|
||||
fixed (float2* fbScale_fixed = &fbScale)
|
||||
{
|
||||
PInvoke.ImDrawData_ScaleClipRects(target, fbScale_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2069
brutal.imgui/Brutal.ImGui/Generated/Functions/ImDrawList.gen.cs
Normal file
2069
brutal.imgui/Brutal.ImGui/Generated/Functions/ImDrawList.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,72 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImDrawListSplitterExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Do not clear Channels[] so our allocations are reused next frame
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3295">imgui.h:3295</see>
|
||||
/// <br/><c>inline void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImDrawListSplitterPtr target) => PInvoke.ImDrawListSplitter_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3296">imgui.h:3296</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2109">imgui_draw.cpp:2109</see>
|
||||
/// <br/><c>void ClearFreeMemory()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearFreeMemory(this ImDrawListSplitterPtr target) =>
|
||||
PInvoke.ImDrawListSplitter_ClearFreeMemory(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3297">imgui.h:3297</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2123">imgui_draw.cpp:2123</see>
|
||||
/// <br/><c>void Split(ImDrawList* draw_list, int count)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Split(this ImDrawListSplitterPtr target, ImDrawListPtr drawList, int count) =>
|
||||
PInvoke.ImDrawListSplitter_Split(target, drawList, count);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3298">imgui.h:3298</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2153">imgui_draw.cpp:2153</see>
|
||||
/// <br/><c>void Merge(ImDrawList* draw_list)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Merge(this ImDrawListSplitterPtr target, ImDrawListPtr drawList) =>
|
||||
PInvoke.ImDrawListSplitter_Merge(target, drawList);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3299">imgui.h:3299</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2224">imgui_draw.cpp:2224</see>
|
||||
/// <br/><c>void SetCurrentChannel(ImDrawList* draw_list, int channel_idx)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetCurrentChannel(
|
||||
this ImDrawListSplitterPtr target,
|
||||
ImDrawListPtr drawList,
|
||||
int channelIdx
|
||||
) => PInvoke.ImDrawListSplitter_SetCurrentChannel(target, drawList, channelIdx);
|
||||
}
|
||||
}
|
||||
319
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFont.gen.cs
Normal file
319
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFont.gen.cs
Normal file
|
|
@ -0,0 +1,319 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImFontExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3944">imgui.h:3944</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5250">imgui_draw.cpp:5250</see>
|
||||
/// <br/><c>bool IsGlyphInFont(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This is not fast query
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool IsGlyphInFont(this ImFontPtr target, uint c) =>
|
||||
PInvoke.ImFont_IsGlyphInFont(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3945">imgui.h:3945</see>
|
||||
/// <br/><c>bool IsLoaded() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool IsLoaded(this ImFontPtr target) => PInvoke.ImFont_IsLoaded(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Fill ImFontConfig::Name.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3946">imgui.h:3946</see>
|
||||
/// <br/><c>const char* GetDebugName() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImString GetDebugName(this ImFontPtr target) =>
|
||||
Utf8.GetNullTerminatedSpan(PInvoke.ImFont_GetDebugName(target));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get or create baked data for given size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3951">imgui.h:3951</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5288">imgui_draw.cpp:5288</see>
|
||||
/// <br/><c>ImFontBaked* GetFontBaked(float font_size, float density = -1.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Don't use!
|
||||
/// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.
|
||||
/// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable.
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// ImFontBaked pointers are valid for the entire frame but shall never be kept between frames.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontBakedPtr GetFontBaked(this ImFontPtr target, float fontSize, float density = -1f) =>
|
||||
PInvoke.ImFont_GetFontBaked(target, fontSize, density);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// utf8
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3952">imgui.h:3952</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5465">imgui_draw.cpp:5465</see>
|
||||
/// <br/>
|
||||
/// <c>ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Don't use!
|
||||
/// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.
|
||||
/// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe float2 CalcTextSizeA(
|
||||
this ImFontPtr target,
|
||||
float size,
|
||||
float maxWidth,
|
||||
float wrapWidth,
|
||||
ImString text,
|
||||
Ptr<Ptr<byte>> remaining = default
|
||||
)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
return PInvoke.ImFont_CalcTextSizeA(
|
||||
target,
|
||||
size,
|
||||
maxWidth,
|
||||
wrapWidth,
|
||||
text_fixed,
|
||||
text_fixed + text.Length,
|
||||
(byte**)remaining
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3953">imgui.h:3953</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5359">imgui_draw.cpp:5359</see>
|
||||
/// <br/>
|
||||
/// <c>const char* CalcWordWrapPosition(float size, const char* text, const char* text_end, float wrap_width)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Don't use!
|
||||
/// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.
|
||||
/// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable.
|
||||
/// </code>
|
||||
/// <code>
|
||||
/// Simple word-wrapping for English, not full-featured. Please submit failing cases!
|
||||
/// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end.
|
||||
/// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe Ptr<byte> CalcWordWrapPosition(
|
||||
this ImFontPtr target,
|
||||
float size,
|
||||
ImString text,
|
||||
float wrapWidth
|
||||
)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
return PInvoke.ImFont_CalcWordWrapPosition(
|
||||
target,
|
||||
size,
|
||||
text_fixed,
|
||||
text_fixed + text.Length,
|
||||
wrapWidth
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3954">imgui.h:3954</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5550">imgui_draw.cpp:5550</see>
|
||||
/// <br/>
|
||||
/// <c>void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c, const ImVec4* cpu_fine_clip = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Don't use!
|
||||
/// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.
|
||||
/// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable.
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void RenderChar(
|
||||
this ImFontPtr target,
|
||||
ImDrawListPtr drawList,
|
||||
float size,
|
||||
in float2 pos,
|
||||
ImColor8 col,
|
||||
uint c,
|
||||
in float4? cpuFineClip = null
|
||||
)
|
||||
{
|
||||
var cpuFineClip_ptr = cpuFineClip is { } cpuFineClip_value ? &cpuFineClip_value : null;
|
||||
fixed (float2* pos_fixed = &pos)
|
||||
{
|
||||
PInvoke.ImFont_RenderChar(target, drawList, size, pos_fixed, col, c, (float4*)cpuFineClip_ptr);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3955">imgui.h:3955</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5589">imgui_draw.cpp:5589</see>
|
||||
/// <br/>
|
||||
/// <c>void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Don't use!
|
||||
/// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.
|
||||
/// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable.
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void RenderText(
|
||||
this ImFontPtr target,
|
||||
ImDrawListPtr drawList,
|
||||
float size,
|
||||
in float2 pos,
|
||||
ImColor8 col,
|
||||
in float4 clipRect,
|
||||
ImString text,
|
||||
float wrapWidth = 0f,
|
||||
bool cpuFineClip = false
|
||||
)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
fixed (float4* clipRect_fixed = &clipRect)
|
||||
{
|
||||
fixed (float2* pos_fixed = &pos)
|
||||
{
|
||||
PInvoke.ImFont_RenderText(
|
||||
target,
|
||||
drawList,
|
||||
size,
|
||||
pos_fixed,
|
||||
col,
|
||||
clipRect_fixed,
|
||||
text_fixed,
|
||||
text_fixed + text.Length,
|
||||
wrapWidth,
|
||||
cpuFineClip
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3961">imgui.h:3961</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5087">imgui_draw.cpp:5087</see>
|
||||
/// <br/><c>void ClearOutputData()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Don't use!
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearOutputData(this ImFontPtr target) => PInvoke.ImFont_ClearOutputData(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Makes 'from_codepoint' character points to 'to_codepoint' glyph.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3962">imgui.h:3962</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5199">imgui_draw.cpp:5199</see>
|
||||
/// <br/><c>void AddRemapChar(ImWchar from_codepoint, ImWchar to_codepoint)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Don't use!
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddRemapChar(this ImFontPtr target, uint fromCodepoint, uint toCodepoint) =>
|
||||
PInvoke.ImFont_AddRemapChar(target, fromCodepoint, toCodepoint);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3963">imgui.h:3963</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5098">imgui_draw.cpp:5098</see>
|
||||
/// <br/><c>bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Don't use!
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// API is designed this way to avoid exposing the 8K page size
|
||||
/// e.g. use with IsGlyphRangeUnused(0, 255)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool IsGlyphRangeUnused(this ImFontPtr target, uint cBegin, uint cLast) =>
|
||||
PInvoke.ImFont_IsGlyphRangeUnused(target, cBegin, cLast);
|
||||
}
|
||||
}
|
||||
645
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFontAtlas.gen.cs
Normal file
645
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFontAtlas.gen.cs
Normal file
|
|
@ -0,0 +1,645 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImFontAtlasExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3726">imgui.h:3726</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3006">imgui_draw.cpp:3006</see>
|
||||
/// <br/><c>ImFont* AddFont(const ImFontConfig* font_cfg)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFont(this ImFontAtlasPtr target, ImFontConfigPtr fontCfg) =>
|
||||
PInvoke.ImFontAtlas_AddFont(target, fontCfg);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3727">imgui.h:3727</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3105">imgui_draw.cpp:3105</see>
|
||||
/// <br/><c>ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// Load embedded ProggyClean.ttf at size 13, disable oversampling
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFontDefault(this ImFontAtlasPtr target, ImFontConfigPtr fontCfg = default) =>
|
||||
PInvoke.ImFontAtlas_AddFontDefault(target, fontCfg);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3728">imgui.h:3728</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3133">imgui_draw.cpp:3133</see>
|
||||
/// <br/>
|
||||
/// <c>ImFont* AddFontFromFileTTF(const char* filename, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFontFromFileTTF(
|
||||
this ImFontAtlasPtr target,
|
||||
ImString filename,
|
||||
float sizePixels = 0f,
|
||||
ImFontConfigPtr fontCfg = default,
|
||||
ReadOnlySpan<uint> glyphRanges = default
|
||||
)
|
||||
{
|
||||
fixed (uint* glyphRanges_fixed = glyphRanges)
|
||||
{
|
||||
fixed (byte* filename_fixed = filename)
|
||||
{
|
||||
return PInvoke.ImFontAtlas_AddFontFromFileTTF(
|
||||
target,
|
||||
filename_fixed,
|
||||
sizePixels,
|
||||
fontCfg,
|
||||
glyphRanges_fixed
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas.
|
||||
/// Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3729">imgui.h:3729</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3159">imgui_draw.cpp:3159</see>
|
||||
/// <br/>
|
||||
/// <c>ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas
|
||||
/// == false. Owned TTF buffer will be deleted after Build().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFontFromMemoryTTF(
|
||||
this ImFontAtlasPtr target,
|
||||
Ptr fontData,
|
||||
int fontDataSize,
|
||||
float sizePixels = 0f,
|
||||
ImFontConfigPtr fontCfg = default,
|
||||
ReadOnlySpan<uint> glyphRanges = default
|
||||
)
|
||||
{
|
||||
fixed (uint* glyphRanges_fixed = glyphRanges)
|
||||
{
|
||||
return PInvoke.ImFontAtlas_AddFontFromMemoryTTF(
|
||||
target,
|
||||
fontData,
|
||||
fontDataSize,
|
||||
sizePixels,
|
||||
fontCfg,
|
||||
glyphRanges_fixed
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3730">imgui.h:3730</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3173">imgui_draw.cpp:3173</see>
|
||||
/// <br/>
|
||||
/// <c>ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFontFromMemoryCompressedTTF(
|
||||
this ImFontAtlasPtr target,
|
||||
Ptr compressedFontData,
|
||||
int compressedFontDataSize,
|
||||
float sizePixels = 0f,
|
||||
ImFontConfigPtr fontCfg = default,
|
||||
ReadOnlySpan<uint> glyphRanges = default
|
||||
)
|
||||
{
|
||||
fixed (uint* glyphRanges_fixed = glyphRanges)
|
||||
{
|
||||
return PInvoke.ImFontAtlas_AddFontFromMemoryCompressedTTF(
|
||||
target,
|
||||
compressedFontData,
|
||||
compressedFontDataSize,
|
||||
sizePixels,
|
||||
fontCfg,
|
||||
glyphRanges_fixed
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with
|
||||
/// -base85 parameter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3731">imgui.h:3731</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3185">imgui_draw.cpp:3185</see>
|
||||
/// <br/>
|
||||
/// <c>ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(
|
||||
this ImFontAtlasPtr target,
|
||||
ReadOnlySpan<byte> compressedFontDataBase85,
|
||||
float sizePixels = 0f,
|
||||
ImFontConfigPtr fontCfg = default,
|
||||
ReadOnlySpan<uint> glyphRanges = default
|
||||
)
|
||||
{
|
||||
fixed (uint* glyphRanges_fixed = glyphRanges)
|
||||
{
|
||||
fixed (byte* compressedFontDataBase85_fixed = compressedFontDataBase85)
|
||||
{
|
||||
return PInvoke.ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(
|
||||
target,
|
||||
compressedFontDataBase85_fixed,
|
||||
sizePixels,
|
||||
fontCfg,
|
||||
glyphRanges_fixed
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3732">imgui.h:3732</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3224">imgui_draw.cpp:3224</see>
|
||||
/// <br/><c>void RemoveFont(ImFont* font)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
||||
/// - One or more fonts.
|
||||
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
||||
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
||||
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
||||
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
||||
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
||||
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
||||
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
||||
/// Legacy path:
|
||||
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
||||
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
||||
/// Common pitfalls:
|
||||
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
||||
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
||||
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
||||
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
||||
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
||||
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void RemoveFont(this ImFontAtlasPtr target, ImFontPtr font) =>
|
||||
PInvoke.ImFontAtlas_RemoveFont(target, font);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Clear everything (input fonts, output glyphs/textures)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3734">imgui.h:3734</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2657">imgui_draw.cpp:2657</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImFontAtlasPtr target) => PInvoke.ImFontAtlas_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Compact cached glyphs and texture.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3735">imgui.h:3735</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2666">imgui_draw.cpp:2666</see>
|
||||
/// <br/><c>void CompactCache()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void CompactCache(this ImFontAtlasPtr target) => PInvoke.ImFontAtlas_CompactCache(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Change font loader at runtime.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3736">imgui.h:3736</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2671">imgui_draw.cpp:2671</see>
|
||||
/// <br/><c>void SetFontLoader(const ImFontLoader* font_loader)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetFontLoader(this ImFontAtlasPtr target, ImFontLoaderPtr fontLoader) =>
|
||||
PInvoke.ImFontAtlas_SetFontLoader(target, fontLoader);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.)
|
||||
/// = all the data used to build the texture and fonts.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3739">imgui.h:3739</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2676">imgui_draw.cpp:2676</see>
|
||||
/// <br/><c>void ClearInputData()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearInputData(this ImFontAtlasPtr target) =>
|
||||
PInvoke.ImFontAtlas_ClearInputData(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [OBSOLETE] Clear input+output font data (same as ClearInputData() + glyphs storage, UV coordinates).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3740">imgui.h:3740</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2703">imgui_draw.cpp:2703</see>
|
||||
/// <br/><c>void ClearFonts()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearFonts(this ImFontAtlasPtr target) => PInvoke.ImFontAtlas_ClearFonts(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [OBSOLETE] Clear CPU-side copy of the texture data. Saves RAM once the texture has been copied to
|
||||
/// graphics memory.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3741">imgui.h:3741</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2694">imgui_draw.cpp:2694</see>
|
||||
/// <br/><c>void ClearTexData()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Clear CPU-side copy of the texture data.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearTexData(this ImFontAtlasPtr target) => PInvoke.ImFontAtlas_ClearTexData(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Basic Latin, Extended Latin
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3765">imgui.h:3765</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L4753">imgui_draw.cpp:4753</see>
|
||||
/// <br/><c>const ImWchar* GetGlyphRangesDefault()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Since 1.92: specifying glyph ranges is only useful/necessary if your backend doesn't support
|
||||
/// ImGuiBackendFlags_RendererHasTextures!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Retrieve list of range (2 int per range, values are inclusive)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe Ptr<uint> GetGlyphRangesDefault(this ImFontAtlasPtr target) =>
|
||||
PInvoke.ImFontAtlas_GetGlyphRangesDefault(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3802">imgui.h:3802</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3251">imgui_draw.cpp:3251</see>
|
||||
/// <br/><c>ImFontAtlasRectId AddCustomRect(int width, int height, ImFontAtlasRect* out_r = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Register and retrieve custom rectangles
|
||||
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
||||
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
||||
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
||||
/// - VERY IMPORTANT:
|
||||
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
||||
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
||||
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
||||
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
||||
/// - Read docs/FONTS.md for more details about using colorful icons.
|
||||
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
||||
/// - (Pre-1.92 names) ------------> (1.92 names)
|
||||
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
||||
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
||||
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
||||
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
||||
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// At it is common to do an AddCustomRect() followed by a GetCustomRect(), we provide an optional
|
||||
/// 'ImFontAtlasRect* out_r = NULL' argument to retrieve the info straight away.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontAtlasRectId AddCustomRect(
|
||||
this ImFontAtlasPtr target,
|
||||
int width,
|
||||
int height,
|
||||
ImFontAtlasRectPtr outR = default
|
||||
) => PInvoke.ImFontAtlas_AddCustomRect(target, width, height, outR);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3803">imgui.h:3803</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3273">imgui_draw.cpp:3273</see>
|
||||
/// <br/><c>void RemoveCustomRect(ImFontAtlasRectId id)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Register and retrieve custom rectangles
|
||||
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
||||
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
||||
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
||||
/// - VERY IMPORTANT:
|
||||
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
||||
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
||||
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
||||
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
||||
/// - Read docs/FONTS.md for more details about using colorful icons.
|
||||
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
||||
/// - (Pre-1.92 names) ------------> (1.92 names)
|
||||
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
||||
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
||||
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
||||
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
||||
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void RemoveCustomRect(this ImFontAtlasPtr target, ImFontAtlasRectId id) =>
|
||||
PInvoke.ImFontAtlas_RemoveCustomRect(target, id);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3804">imgui.h:3804</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3330">imgui_draw.cpp:3330</see>
|
||||
/// <br/><c>bool GetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Register and retrieve custom rectangles
|
||||
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
||||
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
||||
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
||||
/// - VERY IMPORTANT:
|
||||
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
||||
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
||||
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
||||
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
||||
/// - Read docs/FONTS.md for more details about using colorful icons.
|
||||
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
||||
/// - (Pre-1.92 names) ------------> (1.92 names)
|
||||
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
||||
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
||||
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
||||
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
||||
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool GetCustomRect(
|
||||
this ImFontAtlasPtr target,
|
||||
ImFontAtlasRectId id,
|
||||
out ImFontAtlasRect outR
|
||||
)
|
||||
{
|
||||
fixed (ImFontAtlasRect* outR_fixed = &outR)
|
||||
{
|
||||
return PInvoke.ImFontAtlas_GetCustomRect(target, id, outR_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3804">imgui.h:3804</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3330">imgui_draw.cpp:3330</see>
|
||||
/// <br/><c>bool GetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Register and retrieve custom rectangles
|
||||
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
||||
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
||||
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
||||
/// - VERY IMPORTANT:
|
||||
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
||||
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
||||
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
||||
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
||||
/// - Read docs/FONTS.md for more details about using colorful icons.
|
||||
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
||||
/// - (Pre-1.92 names) ------------> (1.92 names)
|
||||
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
||||
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
||||
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
||||
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
||||
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool GetCustomRect(this ImFontAtlasPtr target, ImFontAtlasRectId id) =>
|
||||
PInvoke.ImFontAtlas_GetCustomRect(target, id, null);
|
||||
}
|
||||
}
|
||||
106
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFontBaked.gen.cs
Normal file
106
brutal.imgui/Brutal.ImGui/Generated/Functions/ImFontBaked.gen.cs
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImFontBakedExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3897">imgui.h:3897</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5063">imgui_draw.cpp:5063</see>
|
||||
/// <br/><c>void ClearOutputData()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearOutputData(this ImFontBakedPtr target) =>
|
||||
PInvoke.ImFontBaked_ClearOutputData(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Return U+FFFD glyph if requested glyph doesn't exists.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3898">imgui.h:3898</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5205">imgui_draw.cpp:5205</see>
|
||||
/// <br/><c>ImFontGlyph* FindGlyph(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Find glyph, load if necessary, return fallback if missing
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontGlyphPtr FindGlyph(this ImFontBakedPtr target, uint c) =>
|
||||
PInvoke.ImFontBaked_FindGlyph(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Return NULL if glyph doesn't exist
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3899">imgui.h:3899</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5220">imgui_draw.cpp:5220</see>
|
||||
/// <br/><c>ImFontGlyph* FindGlyphNoFallback(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Attempt to load but when missing, return NULL instead of FallbackGlyph
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontGlyphPtr FindGlyphNoFallback(this ImFontBakedPtr target, uint c) =>
|
||||
PInvoke.ImFontBaked_FindGlyphNoFallback(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3900">imgui.h:3900</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5265">imgui_draw.cpp:5265</see>
|
||||
/// <br/><c>float GetCharAdvance(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe float GetCharAdvance(this ImFontBakedPtr target, uint c) =>
|
||||
PInvoke.ImFontBaked_GetCharAdvance(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3901">imgui.h:3901</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5236">imgui_draw.cpp:5236</see>
|
||||
/// <br/><c>bool IsGlyphLoaded(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool IsGlyphLoaded(this ImFontBakedPtr target, uint c) =>
|
||||
PInvoke.ImFontBaked_IsGlyphLoaded(target, c);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImFontGlyphRangesBuilderExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3668">imgui.h:3668</see>
|
||||
/// <br/><c>inline void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImFontGlyphRangesBuilderPtr target) =>
|
||||
PInvoke.ImFontGlyphRangesBuilder_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get bit n in the array
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3669">imgui.h:3669</see>
|
||||
/// <br/><c>inline bool GetBit(size_t n) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool GetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
|
||||
PInvoke.ImFontGlyphRangesBuilder_GetBit(target, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set bit n in the array
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3670">imgui.h:3670</see>
|
||||
/// <br/><c>inline void SetBit(size_t n)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
|
||||
PInvoke.ImFontGlyphRangesBuilder_SetBit(target, n);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Add character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3671">imgui.h:3671</see>
|
||||
/// <br/><c>inline void AddChar(ImWchar c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void AddChar(this ImFontGlyphRangesBuilderPtr target, uint c) =>
|
||||
PInvoke.ImFontGlyphRangesBuilder_AddChar(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Add string (each character of the UTF-8 string are added)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3672">imgui.h:3672</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5019">imgui_draw.cpp:5019</see>
|
||||
/// <br/><c>void AddText(const char* text, const char* text_end = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void AddText(this ImFontGlyphRangesBuilderPtr target, ImString text)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
PInvoke.ImFontGlyphRangesBuilder_AddText(target, text_fixed, text_fixed + text.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of
|
||||
/// ASCII/Latin+Ext
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3673">imgui.h:3673</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5032">imgui_draw.cpp:5032</see>
|
||||
/// <br/><c>void AddRanges(const ImWchar* ranges)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void AddRanges(this ImFontGlyphRangesBuilderPtr target, ReadOnlySpan<uint> ranges)
|
||||
{
|
||||
fixed (uint* ranges_fixed = ranges)
|
||||
{
|
||||
PInvoke.ImFontGlyphRangesBuilder_AddRanges(target, ranges_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Output new ranges
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3674">imgui.h:3674</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5039">imgui_draw.cpp:5039</see>
|
||||
/// <br/><c>void BuildRanges(ImVector<ImWchar>* out_ranges)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void BuildRanges(this ImFontGlyphRangesBuilderPtr target, out ImVector<uint> outRanges)
|
||||
{
|
||||
fixed (ImVector<uint>* outRanges_fixed = &outRanges)
|
||||
{
|
||||
PInvoke.ImFontGlyphRangesBuilder_BuildRanges(target, outRanges_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11524
brutal.imgui/Brutal.ImGui/Generated/Functions/ImGui.gen.cs
Normal file
11524
brutal.imgui/Brutal.ImGui/Generated/Functions/ImGui.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
374
brutal.imgui/Brutal.ImGui/Generated/Functions/ImGuiIO.gen.cs
Normal file
374
brutal.imgui/Brutal.ImGui/Generated/Functions/ImGuiIO.gen.cs
Normal file
|
|
@ -0,0 +1,374 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiIOExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key
|
||||
/// end-user would use to emit an 'A' character)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2577">imgui.h:2577</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1808">imgui.cpp:1808</see>
|
||||
/// <br/><c>void AddKeyEvent(ImGuiKey key, bool down)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddKeyEvent(this ImGuiIOPtr target, ImGuiKey key, bool down) =>
|
||||
PInvoke.ImGuiIO_AddKeyEvent(target, key, down);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be
|
||||
/// handled by the backend.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2578">imgui.h:2578</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1768">imgui.cpp:1768</see>
|
||||
/// <br/><c>void AddKeyAnalogEvent(ImGuiKey key, bool down, float v)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Queue a new key down/up event.
|
||||
/// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character)
|
||||
/// - bool down: Is the key down? use false to signify a key release.
|
||||
/// - float analog_value: 0.0f..1.0f
|
||||
/// IMPORTANT: THIS FUNCTION AND OTHER "ADD" GRABS THE CONTEXT FROM OUR INSTANCE.
|
||||
/// WE NEED TO ENSURE THAT ALL FUNCTION CALLS ARE FULFILLING THIS, WHICH IS WHY GetKeyData() HAS AN EXPLICIT CONTEXT.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void AddKeyAnalogEvent(this ImGuiIOPtr target, ImGuiKey key, bool down, float v) =>
|
||||
PInvoke.ImGuiIO_AddKeyAnalogEvent(target, key, down, v);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not
|
||||
/// hovered)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2579">imgui.h:2579</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1837">imgui.cpp:1837</see>
|
||||
/// <br/><c>void AddMousePosEvent(float x, float y)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Queue a mouse move event
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddMousePosEvent(this ImGuiIOPtr target, float x, float y) =>
|
||||
PInvoke.ImGuiIO_AddMousePosEvent(target, x, y);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a mouse button change
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2580">imgui.h:2580</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1863">imgui.cpp:1863</see>
|
||||
/// <br/><c>void AddMouseButtonEvent(int button, bool down)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddMouseButtonEvent(this ImGuiIOPtr target, int button, bool down) =>
|
||||
PInvoke.ImGuiIO_AddMouseButtonEvent(target, button, down);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll
|
||||
/// right, wheel_x>0: scroll left.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2581">imgui.h:2581</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1912">imgui.cpp:1912</see>
|
||||
/// <br/><c>void AddMouseWheelEvent(float wheel_x, float wheel_y)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Queue a mouse wheel event (some mouse/API may only have a Y component)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddMouseWheelEvent(this ImGuiIOPtr target, float wheelX, float wheelY) =>
|
||||
PInvoke.ImGuiIO_AddMouseWheelEvent(target, wheelX, wheelY);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a mouse source change (Mouse/TouchScreen/Pen)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2582">imgui.h:2582</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1933">imgui.cpp:1933</see>
|
||||
/// <br/><c>void AddMouseSourceEvent(ImGuiMouseSource source)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// This is not a real event, the data is latched in order to be stored in actual Mouse events.
|
||||
/// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void AddMouseSourceEvent(this ImGuiIOPtr target, ImGuiMouseSource source) =>
|
||||
PInvoke.ImGuiIO_AddMouseSourceEvent(target, source);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to
|
||||
/// call this (for multi-viewport support).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2583">imgui.h:2583</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1940">imgui.cpp:1940</see>
|
||||
/// <br/><c>void AddMouseViewportEvent(ImGuiID id)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddMouseViewportEvent(this ImGuiIOPtr target, ImGuiID id) =>
|
||||
PInvoke.ImGuiIO_AddMouseViewportEvent(target, id);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2584">imgui.h:2584</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1961">imgui.cpp:1961</see>
|
||||
/// <br/><c>void AddFocusEvent(bool focused)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddFocusEvent(this ImGuiIOPtr target, bool focused) =>
|
||||
PInvoke.ImGuiIO_AddFocusEvent(target, focused);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a new character input
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2585">imgui.h:2585</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1629">imgui.cpp:1629</see>
|
||||
/// <br/><c>void AddInputCharacter(unsigned int c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Pass in translated ASCII characters for text input.
|
||||
/// - with glfw you can get those from the callback set in glfwSetCharCallback()
|
||||
/// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message
|
||||
/// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void AddInputCharacter(this ImGuiIOPtr target, uint c) =>
|
||||
PInvoke.ImGuiIO_AddInputCharacter(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a new character input from a UTF-16 character, it can be a surrogate
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2586">imgui.h:2586</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1646">imgui.cpp:1646</see>
|
||||
/// <br/><c>void AddInputCharacterUTF16(ImWchar16 c)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so
|
||||
/// we should save the high surrogate.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void AddInputCharacterUTF16(this ImGuiIOPtr target, ushort c) =>
|
||||
PInvoke.ImGuiIO_AddInputCharacterUTF16(target, c);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Queue a new characters input from a UTF-8 string
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2587">imgui.h:2587</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1680">imgui.cpp:1680</see>
|
||||
/// <br/><c>void AddInputCharactersUTF8(const char* str)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Input Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void AddInputCharactersUTF8(this ImGuiIOPtr target, ImString str)
|
||||
{
|
||||
fixed (byte* str_fixed = str)
|
||||
{
|
||||
PInvoke.ImGuiIO_AddInputCharactersUTF8(target, str_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native
|
||||
/// keycode, scancode.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2589">imgui.h:2589</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1818">imgui.cpp:1818</see>
|
||||
/// <br/>
|
||||
/// <c>void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Optional] Call after AddKeyEvent().
|
||||
/// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices.
|
||||
/// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetKeyEventNativeData(
|
||||
this ImGuiIOPtr target,
|
||||
ImGuiKey key,
|
||||
int nativeKeycode,
|
||||
int nativeScancode,
|
||||
int nativeLegacyIndex = -1
|
||||
) => PInvoke.ImGuiIO_SetKeyEventNativeData(target, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog
|
||||
/// boxes that are interrupting your application loop/refresh, and you want to disable events being queued
|
||||
/// while your app is frozen.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2590">imgui.h:2590</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1831">imgui.cpp:1831</see>
|
||||
/// <br/><c>void SetAppAcceptingEvents(bool accepting_events)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog
|
||||
/// boxes that are interrupting your application loop/refresh, and you want to disable events being queued
|
||||
/// while your app is frozen.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAppAcceptingEvents(this ImGuiIOPtr target, bool acceptingEvents) =>
|
||||
PInvoke.ImGuiIO_SetAppAcceptingEvents(target, acceptingEvents);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Clear all incoming events.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2591">imgui.h:2591</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1693">imgui.cpp:1693</see>
|
||||
/// <br/><c>void ClearEventsQueue()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Clear all incoming events.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearEventsQueue(this ImGuiIOPtr target) => PInvoke.ImGuiIO_ClearEventsQueue(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all
|
||||
/// keys/buttons.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2592">imgui.h:2592</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1701">imgui.cpp:1701</see>
|
||||
/// <br/><c>void ClearInputKeys()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all
|
||||
/// keys/buttons.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearInputKeys(this ImGuiIOPtr target) => PInvoke.ImGuiIO_ClearInputKeys(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Clear current mouse state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2593">imgui.h:2593</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1718">imgui.cpp:1718</see>
|
||||
/// <br/><c>void ClearInputMouse()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void ClearInputMouse(this ImGuiIOPtr target) => PInvoke.ImGuiIO_ClearInputMouse(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiInputTextCallbackDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2726">imgui.h:2726</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4274">imgui_widgets.cpp:4274</see>
|
||||
/// <br/><c>void DeleteChars(int pos, int bytes_count)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper functions for text manipulation.
|
||||
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
|
||||
/// </code>
|
||||
/// <code>
|
||||
/// Public API to manipulate UTF-8 text from within a callback.
|
||||
/// FIXME: The existence of this rarely exercised code path is a bit of a nuisance.
|
||||
/// Historically they existed because STB_TEXTEDIT_INSERTCHARS() etc. worked on our ImWchar
|
||||
/// buffer, but nowadays they both work on UTF-8 data. Should aim to merge both.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void DeleteChars(this ImGuiInputTextCallbackDataPtr target, int pos, int bytesCount) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_DeleteChars(target, pos, bytesCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2727">imgui.h:2727</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4290">imgui_widgets.cpp:4290</see>
|
||||
/// <br/><c>void InsertChars(int pos, const char* text, const char* text_end = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper functions for text manipulation.
|
||||
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void InsertChars(this ImGuiInputTextCallbackDataPtr target, int pos, ImString text)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
PInvoke.ImGuiInputTextCallbackData_InsertChars(target, pos, text_fixed, text_fixed + text.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2728">imgui.h:2728</see>
|
||||
/// <br/><c>void SelectAll()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper functions for text manipulation.
|
||||
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SelectAll(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_SelectAll(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2729">imgui.h:2729</see>
|
||||
/// <br/><c>void ClearSelection()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper functions for text manipulation.
|
||||
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ClearSelection(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_ClearSelection(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2730">imgui.h:2730</see>
|
||||
/// <br/><c>bool HasSelection() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper functions for text manipulation.
|
||||
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool HasSelection(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_HasSelection(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,160 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiListClipperExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2946">imgui.h:2946</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3212">imgui.cpp:3212</see>
|
||||
/// <br/><c>void Begin(int items_count, float items_height = -1.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step, and you can call SeekCursorForItem() manually if you need)
|
||||
/// items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void Begin(this ref ImGuiListClipper target, int itemsCount, float itemsHeight = -1f)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiListClipper_Begin(target_fixed, itemsCount, itemsHeight);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Automatically called on the last call of Step() that returns false.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2947">imgui.h:2947</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3241">imgui.cpp:3241</see>
|
||||
/// <br/><c>void End()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step, and you can call SeekCursorForItem() manually if you need)
|
||||
/// items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void End(this ref ImGuiListClipper target)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiListClipper_End(target_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw
|
||||
/// those items.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2948">imgui.h:2948</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3441">imgui.cpp:3441</see>
|
||||
/// <br/><c>bool Step()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step, and you can call SeekCursorForItem() manually if you need)
|
||||
/// items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool Step(this ref ImGuiListClipper target)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
return PInvoke.ImGuiListClipper_Step(target_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2952">imgui.h:2952</see>
|
||||
/// <br/><c>inline void IncludeItemByIndex(int item_index)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Call IncludeItemByIndex() or IncludeItemsByIndex() *BEFORE* first call to Step() if you need a range of items to not be clipped, regardless of their visibility.
|
||||
/// (Due to alignment / padding of certain items it is possible that an extra item may be included on either end of the display range).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void IncludeItemByIndex(this ref ImGuiListClipper target, int itemIndex)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiListClipper_IncludeItemByIndex(target_fixed, itemIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2953">imgui.h:2953</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3264">imgui.cpp:3264</see>
|
||||
/// <br/><c>void IncludeItemsByIndex(int item_begin, int item_end)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Call IncludeItemByIndex() or IncludeItemsByIndex() *BEFORE* first call to Step() if you need a range of items to not be clipped, regardless of their visibility.
|
||||
/// (Due to alignment / padding of certain items it is possible that an extra item may be included on either end of the display range).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void IncludeItemsByIndex(this ref ImGuiListClipper target, int itemBegin, int itemEnd)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiListClipper_IncludeItemsByIndex(target_fixed, itemBegin, itemEnd);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2958">imgui.h:2958</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3275">imgui.cpp:3275</see>
|
||||
/// <br/><c>void SeekCursorForItem(int item_index)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Seek cursor toward given item. This is automatically called while stepping.
|
||||
/// - The only reason to call this is: you can use ImGuiListClipper::Begin(INT_MAX) if you don't know item count ahead of time.
|
||||
/// - In this case, after all steps are done, you'll want to call SeekCursorForItem(item_count).
|
||||
/// </code>
|
||||
/// <code>
|
||||
/// This is already called while stepping.
|
||||
/// The ONLY reason you may want to call this is if you passed INT_MAX to ImGuiListClipper::Begin() because you couldn't step item count beforehand.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SeekCursorForItem(this ref ImGuiListClipper target, int itemIndex)
|
||||
{
|
||||
fixed (ImGuiListClipper* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiListClipper_SeekCursorForItem(target_fixed, itemIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiPayloadExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2781">imgui.h:2781</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void Clear(this ImGuiPayloadPtr target) => PInvoke.ImGuiPayload_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2782">imgui.h:2782</see>
|
||||
/// <br/><c>bool IsDataType(const char* type) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsDataType(this ImGuiPayloadPtr target, ImString type)
|
||||
{
|
||||
fixed (byte* type_fixed = type)
|
||||
{
|
||||
return PInvoke.ImGuiPayload_IsDataType(target, type_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2783">imgui.h:2783</see>
|
||||
/// <br/><c>bool IsPreview() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsPreview(this ImGuiPayloadPtr target) => PInvoke.ImGuiPayload_IsPreview(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2784">imgui.h:2784</see>
|
||||
/// <br/><c>bool IsDelivery() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe bool IsDelivery(this ImGuiPayloadPtr target) => PInvoke.ImGuiPayload_IsDelivery(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,185 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiSelectionBasicStorageExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Apply selection requests coming from BeginMultiSelect() and EndMultiSelect() functions. It uses
|
||||
/// 'items_count' passed to BeginMultiSelect()
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3174">imgui.h:3174</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8359">imgui_widgets.cpp:8359</see>
|
||||
/// <br/><c>void ApplyRequests(ImGuiMultiSelectIO* ms_io)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Apply requests coming from BeginMultiSelect() and EndMultiSelect().
|
||||
/// - Enable 'Demo->Tools->Debug Log->Selection' to see selection requests as they happen.
|
||||
/// - Honoring SetRange requests requires that you can iterate/interpolate between RangeFirstItem and RangeLastItem.
|
||||
/// - In this demo we often submit indices to SetNextItemSelectionUserData() + store the same indices in persistent selection.
|
||||
/// - Your code may do differently. If you store pointers or objects ID in ImGuiSelectionUserData you may need to perform
|
||||
/// a lookup in order to have some way to iterate/interpolate between two items.
|
||||
/// - A full-featured application is likely to allow search/filtering which is likely to lead to using indices
|
||||
/// and constructing a view index <> object id/ptr data structure anyway.
|
||||
/// WHEN YOUR APPLICATION SETTLES ON A CHOICE, YOU WILL PROBABLY PREFER TO GET RID OF THIS UNNECESSARY 'ImGuiSelectionBasicStorage' INDIRECTION LOGIC.
|
||||
/// Notice that with the simplest adapter (using indices everywhere), all functions return their parameters.
|
||||
/// The most simple implementation (using indices everywhere) would look like:
|
||||
/// for (ImGuiSelectionRequest& req : ms_io->Requests)
|
||||
/// {
|
||||
/// if (req.Type == ImGuiSelectionRequestType_SetAll) { Clear(); if (req.Selected) { for (int n = 0; n < items_count; n++) { SetItemSelected(n, true); } }
|
||||
/// if (req.Type == ImGuiSelectionRequestType_SetRange) { for (int n = (int)ms_io->RangeFirstItem; n <= (int)ms_io->RangeLastItem; n++) { SetItemSelected(n, ms_io->Selected); } }
|
||||
/// }
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ApplyRequests(
|
||||
this ImGuiSelectionBasicStoragePtr target,
|
||||
ImGuiMultiSelectIOPtr msIo
|
||||
) => PInvoke.ImGuiSelectionBasicStorage_ApplyRequests(target, msIo);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Query if an item id is in selection.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3175">imgui.h:3175</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8280">imgui_widgets.cpp:8280</see>
|
||||
/// <br/><c>bool Contains(ImGuiID id) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool Contains(this ImGuiSelectionBasicStoragePtr target, ImGuiID id) =>
|
||||
PInvoke.ImGuiSelectionBasicStorage_Contains(target, id);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Clear selection
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3176">imgui.h:3176</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8266">imgui_widgets.cpp:8266</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Clear(this ImGuiSelectionBasicStoragePtr target) =>
|
||||
PInvoke.ImGuiSelectionBasicStorage_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Swap two selections
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3177">imgui.h:3177</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8273">imgui_widgets.cpp:8273</see>
|
||||
/// <br/><c>void Swap(ImGuiSelectionBasicStorage& r)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Swap(this ImGuiSelectionBasicStoragePtr target, ImGuiSelectionBasicStoragePtr r) =>
|
||||
PInvoke.ImGuiSelectionBasicStorage_Swap(target, r);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Add/remove an item from selection (generally done by ApplyRequests() function)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3178">imgui.h:3178</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8314">imgui_widgets.cpp:8314</see>
|
||||
/// <br/><c>void SetItemSelected(ImGuiID id, bool selected)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetItemSelected(
|
||||
this ImGuiSelectionBasicStoragePtr target,
|
||||
ImGuiID id,
|
||||
bool selected
|
||||
) => PInvoke.ImGuiSelectionBasicStorage_SetItemSelected(target, id, selected);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Iterate selection with 'void* it = NULL; ImGuiID id; while (selection.GetNextSelectedItem(&it,
|
||||
/// &id)) { ... }'
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3179">imgui.h:3179</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8294">imgui_widgets.cpp:8294</see>
|
||||
/// <br/><c>bool GetNextSelectedItem(void** opaque_it, ImGuiID* out_id)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// GetNextSelectedItem() is an abstraction allowing us to change our underlying actual storage system without impacting user.
|
||||
/// (e.g. store unselected vs compact down, compact down on demand, use raw ImVector<ImGuiID> instead of ImGuiStorage...)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool GetNextSelectedItem(
|
||||
this ImGuiSelectionBasicStoragePtr target,
|
||||
Ptr<Ptr> opaqueIt,
|
||||
out ImGuiID outId
|
||||
)
|
||||
{
|
||||
fixed (ImGuiID* outId_fixed = &outId)
|
||||
{
|
||||
return PInvoke.ImGuiSelectionBasicStorage_GetNextSelectedItem(target, (void**)opaqueIt, outId_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Convert index to item id based on provided adapter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3180">imgui.h:3180</see>
|
||||
/// <br/><c>inline ImGuiID GetStorageIdFromIndex(int idx)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImGuiID GetStorageIdFromIndex(this ImGuiSelectionBasicStoragePtr target, int idx) =>
|
||||
PInvoke.ImGuiSelectionBasicStorage_GetStorageIdFromIndex(target, idx);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiSelectionExternalStorageExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Apply selection requests by using AdapterSetItemSelected() calls
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3193">imgui.h:3193</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8428">imgui_widgets.cpp:8428</see>
|
||||
/// <br/><c>void ApplyRequests(ImGuiMultiSelectIO* ms_io)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Methods
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Apply requests coming from BeginMultiSelect() and EndMultiSelect().
|
||||
/// We also pull 'ms_io->ItemsCount' as passed for BeginMultiSelect() for consistency with ImGuiSelectionBasicStorage
|
||||
/// This makes no assumption about underlying storage.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ApplyRequests(
|
||||
this ImGuiSelectionExternalStoragePtr target,
|
||||
ImGuiMultiSelectIOPtr msIo
|
||||
) => PInvoke.ImGuiSelectionExternalStorage_ApplyRequests(target, msIo);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,310 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiStorageExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2882">imgui.h:2882</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void Clear(this ImGuiStoragePtr target) => PInvoke.ImGuiStorage_Clear(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2883">imgui.h:2883</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2862">imgui.cpp:2862</see>
|
||||
/// <br/><c>int GetInt(ImGuiID key, int default_val = 0) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe int GetInt(this ImGuiStoragePtr target, ImGuiID key, int defaultVal = 0) =>
|
||||
PInvoke.ImGuiStorage_GetInt(target, key, defaultVal);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2884">imgui.h:2884</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2922">imgui.cpp:2922</see>
|
||||
/// <br/><c>void SetInt(ImGuiID key, int val)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad
|
||||
/// because it only happens on explicit interaction (maximum one a frame)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetInt(this ImGuiStoragePtr target, ImGuiID key, int val) =>
|
||||
PInvoke.ImGuiStorage_SetInt(target, key, val);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2885">imgui.h:2885</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2870">imgui.cpp:2870</see>
|
||||
/// <br/><c>bool GetBool(ImGuiID key, bool default_val = false) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe bool GetBool(this ImGuiStoragePtr target, ImGuiID key, bool defaultVal = false) =>
|
||||
PInvoke.ImGuiStorage_GetBool(target, key, defaultVal);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2886">imgui.h:2886</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2931">imgui.cpp:2931</see>
|
||||
/// <br/><c>void SetBool(ImGuiID key, bool val)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetBool(this ImGuiStoragePtr target, ImGuiID key, bool val) =>
|
||||
PInvoke.ImGuiStorage_SetBool(target, key, val);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2887">imgui.h:2887</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2875">imgui.cpp:2875</see>
|
||||
/// <br/><c>float GetFloat(ImGuiID key, float default_val = 0.0f) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe float GetFloat(this ImGuiStoragePtr target, ImGuiID key, float defaultVal = 0f) =>
|
||||
PInvoke.ImGuiStorage_GetFloat(target, key, defaultVal);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2888">imgui.h:2888</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2936">imgui.cpp:2936</see>
|
||||
/// <br/><c>void SetFloat(ImGuiID key, float val)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetFloat(this ImGuiStoragePtr target, ImGuiID key, float val) =>
|
||||
PInvoke.ImGuiStorage_SetFloat(target, key, val);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// default_val is NULL
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2889">imgui.h:2889</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2883">imgui.cpp:2883</see>
|
||||
/// <br/><c>void* GetVoidPtr(ImGuiID key) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe Ptr GetVoidPtr(this ImGuiStoragePtr target, ImGuiID key) =>
|
||||
PInvoke.ImGuiStorage_GetVoidPtr(target, key);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2890">imgui.h:2890</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2945">imgui.cpp:2945</see>
|
||||
/// <br/><c>void SetVoidPtr(ImGuiID key, void* val)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N)
|
||||
/// - Set***() functions find pair, insertion on demand if missing.
|
||||
/// - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetVoidPtr(this ImGuiStoragePtr target, ImGuiID key, Ptr val) =>
|
||||
PInvoke.ImGuiStorage_SetVoidPtr(target, key, val);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2896">imgui.h:2896</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2892">imgui.cpp:2892</see>
|
||||
/// <br/><c>int* GetIntRef(ImGuiID key, int default_val = 0)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set.
|
||||
/// - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
|
||||
/// - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct)
|
||||
/// float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar;
|
||||
/// </code>
|
||||
/// <para>
|
||||
/// References are only valid until a new value is added to the storage. Calling a Set***() function or a
|
||||
/// Get***Ref() function invalidates the pointer.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ref int GetIntRef(this ImGuiStoragePtr target, ImGuiID key, int defaultVal = 0) =>
|
||||
ref Unsafe.AsRef<int>(PInvoke.ImGuiStorage_GetIntRef(target, key, defaultVal));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2897">imgui.h:2897</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2900">imgui.cpp:2900</see>
|
||||
/// <br/><c>bool* GetBoolRef(ImGuiID key, bool default_val = false)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set.
|
||||
/// - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
|
||||
/// - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct)
|
||||
/// float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar;
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ref bool GetBoolRef(this ImGuiStoragePtr target, ImGuiID key, bool defaultVal = false) =>
|
||||
ref Unsafe.AsRef<bool>(PInvoke.ImGuiStorage_GetBoolRef(target, key, defaultVal));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2898">imgui.h:2898</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2905">imgui.cpp:2905</see>
|
||||
/// <br/><c>float* GetFloatRef(ImGuiID key, float default_val = 0.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set.
|
||||
/// - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
|
||||
/// - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct)
|
||||
/// float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar;
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ref float GetFloatRef(this ImGuiStoragePtr target, ImGuiID key, float defaultVal = 0f) =>
|
||||
ref Unsafe.AsRef<float>(PInvoke.ImGuiStorage_GetFloatRef(target, key, defaultVal));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2899">imgui.h:2899</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2913">imgui.cpp:2913</see>
|
||||
/// <br/><c>void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set.
|
||||
/// - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
|
||||
/// - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct)
|
||||
/// float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar;
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ref Ptr GetVoidPtrRef(
|
||||
this ImGuiStoragePtr target,
|
||||
ImGuiID key,
|
||||
Ptr defaultVal = default
|
||||
) => ref Unsafe.AsRef<Ptr>(PInvoke.ImGuiStorage_GetVoidPtrRef(target, key, defaultVal));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2902">imgui.h:2902</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2857">imgui.cpp:2857</see>
|
||||
/// <br/><c>void BuildSortByKey()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Advanced: for quicker full rebuild of a storage (instead of an incremental one), you may add all your
|
||||
/// contents and then sort once.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and
|
||||
/// then sort once.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void BuildSortByKey(this ImGuiStoragePtr target) =>
|
||||
PInvoke.ImGuiStorage_BuildSortByKey(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2904">imgui.h:2904</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2954">imgui.cpp:2954</see>
|
||||
/// <br/><c>void SetAllInt(int val)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Obsolete: use on your own storage if you know only integer are being stored (open/close all tree nodes)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAllInt(this ImGuiStoragePtr target, int val) =>
|
||||
PInvoke.ImGuiStorage_SetAllInt(target, val);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiStyleExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Scale all spacing/padding/thickness values. Do not scale fonts.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2408">imgui.h:2408</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1494">imgui.cpp:1494</see>
|
||||
/// <br/><c>void ScaleAllSizes(float scale_factor)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Scale all spacing/padding/thickness values. Do not scale fonts.
|
||||
/// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void ScaleAllSizes(this ImGuiStylePtr target, float scaleFactor) =>
|
||||
PInvoke.ImGuiStyle_ScaleAllSizes(target, scaleFactor);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,133 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiTextFilterExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper calling InputText+Build
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2812">imgui.h:2812</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L2977">imgui.cpp:2977</see>
|
||||
/// <br/><c>bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="label">Default value if unset: "Filter (inc,-exc)"</param>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool Draw(
|
||||
this ref ImGuiTextFilter target,
|
||||
[System.ComponentModel.DefaultValue("Filter (inc,-exc)")] ImString label = default,
|
||||
float width = 0f
|
||||
)
|
||||
{
|
||||
if (label.IsUnset)
|
||||
{
|
||||
label = "Filter (inc,-exc)"u8;
|
||||
}
|
||||
fixed (byte* label_fixed = label)
|
||||
{
|
||||
fixed (ImGuiTextFilter* target_fixed = &target)
|
||||
{
|
||||
return PInvoke.ImGuiTextFilter_Draw(target_fixed, label_fixed, width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2813">imgui.h:2813</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3025">imgui.cpp:3025</see>
|
||||
/// <br/><c>bool PassFilter(const char* text, const char* text_end = NULL) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool PassFilter(this ref ImGuiTextFilter target, ImString text)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
fixed (ImGuiTextFilter* target_fixed = &target)
|
||||
{
|
||||
return PInvoke.ImGuiTextFilter_PassFilter(target_fixed, text_fixed, text_fixed + text.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2814">imgui.h:2814</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3005">imgui.cpp:3005</see>
|
||||
/// <br/><c>void Build()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Build(this ref ImGuiTextFilter target)
|
||||
{
|
||||
fixed (ImGuiTextFilter* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiTextFilter_Build(target_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2815">imgui.h:2815</see>
|
||||
/// <br/><c>void Clear()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Clear(this ref ImGuiTextFilter target)
|
||||
{
|
||||
fixed (ImGuiTextFilter* target_fixed = &target)
|
||||
{
|
||||
PInvoke.ImGuiTextFilter_Clear(target_fixed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2816">imgui.h:2816</see>
|
||||
/// <br/><c>bool IsActive() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool IsActive(this ref ImGuiTextFilter target)
|
||||
{
|
||||
fixed (ImGuiTextFilter* target_fixed = &target)
|
||||
{
|
||||
return PInvoke.ImGuiTextFilter_IsActive(target_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiViewportExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4048">imgui.h:4048</see>
|
||||
/// <br/><c>ImVec2 GetCenter() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe float2 GetCenter(this ImGuiViewportPtr target) => PInvoke.ImGuiViewport_GetCenter(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4049">imgui.h:4049</see>
|
||||
/// <br/><c>ImVec2 GetWorkCenter() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helpers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe float2 GetWorkCenter(this ImGuiViewportPtr target) =>
|
||||
PInvoke.ImGuiViewport_GetWorkCenter(target);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,167 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImTextureDataExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3588">imgui.h:3588</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2463">imgui_draw.cpp:2463</see>
|
||||
/// <br/><c>void Create(ImTextureFormat format, int w, int h)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void Create(this ImTextureDataPtr target, ImTextureFormat format, int w, int h) =>
|
||||
PInvoke.ImTextureData_Create(target, format, w, h);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3589">imgui.h:3589</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2481">imgui_draw.cpp:2481</see>
|
||||
/// <br/><c>void DestroyPixels()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void DestroyPixels(this ImTextureDataPtr target) =>
|
||||
PInvoke.ImTextureData_DestroyPixels(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3590">imgui.h:3590</see>
|
||||
/// <br/><c>void* GetPixels()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe Ptr GetPixels(this ImTextureDataPtr target) => PInvoke.ImTextureData_GetPixels(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3591">imgui.h:3591</see>
|
||||
/// <br/><c>void* GetPixelsAt(int x, int y)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe Ptr GetPixelsAt(this ImTextureDataPtr target, int x, int y) =>
|
||||
PInvoke.ImTextureData_GetPixelsAt(target, x, y);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3592">imgui.h:3592</see>
|
||||
/// <br/><c>int GetSizeInBytes() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe int GetSizeInBytes(this ImTextureDataPtr target) =>
|
||||
PInvoke.ImTextureData_GetSizeInBytes(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3593">imgui.h:3593</see>
|
||||
/// <br/><c>int GetPitch() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe int GetPitch(this ImTextureDataPtr target) => PInvoke.ImTextureData_GetPitch(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3594">imgui.h:3594</see>
|
||||
/// <br/><c>ImTextureRef GetTexRef()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImTextureRef GetTexRef(this ImTextureDataPtr target) =>
|
||||
PInvoke.ImTextureData_GetTexRef(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3595">imgui.h:3595</see>
|
||||
/// <br/><c>ImTextureID GetTexID() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Functions
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe ImTextureID GetTexID(this ImTextureDataPtr target) =>
|
||||
PInvoke.ImTextureData_GetTexID(target);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Call after creating or destroying the texture. Never modify TexID directly!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3598">imgui.h:3598</see>
|
||||
/// <br/><c>void SetTexID(ImTextureID tex_id)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Called by Renderer backend
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetTexID(this ImTextureDataPtr target, ImTextureID texId) =>
|
||||
PInvoke.ImTextureData_SetTexID(target, texId);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Call after honoring a request. Never modify Status directly!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3599">imgui.h:3599</see>
|
||||
/// <br/><c>void SetStatus(ImTextureStatus status)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Called by Renderer backend
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe void SetStatus(this ImTextureDataPtr target, ImTextureStatus status) =>
|
||||
PInvoke.ImTextureData_SetStatus(target, status);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue