mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
241
Brutal.ImGui/Generated/Structs/ImGuiPlatformImeData.gen.cs
Normal file
241
Brutal.ImGui/Generated/Structs/ImGuiPlatformImeData.gen.cs
Normal file
|
|
@ -0,0 +1,241 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Platform IME data for io.PlatformSetImeDataFn() function.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L204">imgui.h:204</see>
|
||||
/// <br/><c>struct ImGuiPlatformImeData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 20)]
|
||||
public partial struct ImGuiPlatformImeData
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A widget wants the IME to be visible.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4220">imgui.h:4220</see>
|
||||
/// <br/><c>bool WantVisible</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public Bool8 WantVisible;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming
|
||||
/// value of io.WantTextInput.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4221">imgui.h:4221</see>
|
||||
/// <br/><c>bool WantTextInput</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(1)]
|
||||
public Bool8 WantTextInput;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position of input cursor (for IME).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4222">imgui.h:4222</see>
|
||||
/// <br/><c>ImVec2 InputPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public float2 InputPos;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Line height (for IME).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4223">imgui.h:4223</see>
|
||||
/// <br/><c>float InputLineHeight</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(12)]
|
||||
public float InputLineHeight;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// ID of platform window/viewport.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4224">imgui.h:4224</see>
|
||||
/// <br/><c>ImGuiID ViewportId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImGuiID ViewportId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Platform IME data for io.PlatformSetImeDataFn() function.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L204">imgui.h:204</see>
|
||||
/// <br/><c>struct ImGuiPlatformImeData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* ptr) : INullable
|
||||
{
|
||||
private ImGuiPlatformImeData* _ptr = ptr;
|
||||
public ImGuiPlatformImeData* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImGuiPlatformImeData*(ImGuiPlatformImeDataPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A widget wants the IME to be visible.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4220">imgui.h:4220</see>
|
||||
/// <br/><c>bool WantVisible</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool WantVisible => ref Unsafe.AsRef<bool>(&_ptr->WantVisible);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming
|
||||
/// value of io.WantTextInput.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4221">imgui.h:4221</see>
|
||||
/// <br/><c>bool WantTextInput</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool WantTextInput => ref Unsafe.AsRef<bool>(&_ptr->WantTextInput);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position of input cursor (for IME).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4222">imgui.h:4222</see>
|
||||
/// <br/><c>ImVec2 InputPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float2 InputPos => ref Unsafe.AsRef<float2>(&_ptr->InputPos);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Line height (for IME).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4223">imgui.h:4223</see>
|
||||
/// <br/><c>float InputLineHeight</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float InputLineHeight => ref Unsafe.AsRef<float>(&_ptr->InputLineHeight);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// ID of platform window/viewport.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4224">imgui.h:4224</see>
|
||||
/// <br/><c>ImGuiID ViewportId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
|
||||
/// Handler is called during EndFrame().
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImGuiID ViewportId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ViewportId);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue