//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Platform IME data for io.PlatformSetImeDataFn() function.
///
///
/// C++:
/// imgui.h:204
///
struct ImGuiPlatformImeData
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 20)]
public partial struct ImGuiPlatformImeData
{
///
///
/// A widget wants the IME to be visible.
///
///
/// C++:
/// imgui.h:4220
///
bool WantVisible
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
[FieldOffset(0)]
public Bool8 WantVisible;
///
///
/// A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming
/// value of io.WantTextInput.
///
///
/// C++:
/// imgui.h:4221
///
bool WantTextInput
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
[FieldOffset(1)]
public Bool8 WantTextInput;
///
///
/// Position of input cursor (for IME).
///
///
/// C++:
/// imgui.h:4222
///
ImVec2 InputPos
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
[FieldOffset(4)]
public float2 InputPos;
///
///
/// Line height (for IME).
///
///
/// C++:
/// imgui.h:4223
///
float InputLineHeight
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
[FieldOffset(12)]
public float InputLineHeight;
///
///
/// ID of platform window/viewport.
///
///
/// C++:
/// imgui.h:4224
///
ImGuiID ViewportId
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
[FieldOffset(16)]
public ImGuiID ViewportId;
}
///
///
/// Platform IME data for io.PlatformSetImeDataFn() function.
///
///
/// C++:
/// imgui.h:204
///
struct ImGuiPlatformImeData
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// A widget wants the IME to be visible.
///
///
/// C++:
/// imgui.h:4220
///
bool WantVisible
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
public ref bool WantVisible => ref Unsafe.AsRef(&_ptr->WantVisible);
///
///
/// A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming
/// value of io.WantTextInput.
///
///
/// C++:
/// imgui.h:4221
///
bool WantTextInput
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
public ref bool WantTextInput => ref Unsafe.AsRef(&_ptr->WantTextInput);
///
///
/// Position of input cursor (for IME).
///
///
/// C++:
/// imgui.h:4222
///
ImVec2 InputPos
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
public ref float2 InputPos => ref Unsafe.AsRef(&_ptr->InputPos);
///
///
/// Line height (for IME).
///
///
/// C++:
/// imgui.h:4223
///
float InputLineHeight
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
public ref float InputLineHeight => ref Unsafe.AsRef(&_ptr->InputLineHeight);
///
///
/// ID of platform window/viewport.
///
///
/// C++:
/// imgui.h:4224
///
ImGuiID ViewportId
///
///
///
///
/// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function.
/// Handler is called during EndFrame().
///
///
public ref ImGuiID ViewportId => ref Unsafe.AsRef(&_ptr->ViewportId);
}
}