You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.4 KiB
30 lines
1.4 KiB
using System; |
|
using System.Numerics; |
|
using System.Runtime.CompilerServices; |
|
using System.Text; |
|
|
|
namespace ImGuiNET |
|
{ |
|
public unsafe partial struct ImGuiPlatformImeData |
|
{ |
|
public byte WantVisible; |
|
public Vector2 InputPos; |
|
public float InputLineHeight; |
|
} |
|
public unsafe partial struct ImGuiPlatformImeDataPtr |
|
{ |
|
public ImGuiPlatformImeData* NativePtr { get; } |
|
public ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* nativePtr) => NativePtr = nativePtr; |
|
public ImGuiPlatformImeDataPtr(IntPtr nativePtr) => NativePtr = (ImGuiPlatformImeData*)nativePtr; |
|
public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* nativePtr) => new ImGuiPlatformImeDataPtr(nativePtr); |
|
public static implicit operator ImGuiPlatformImeData* (ImGuiPlatformImeDataPtr wrappedPtr) => wrappedPtr.NativePtr; |
|
public static implicit operator ImGuiPlatformImeDataPtr(IntPtr nativePtr) => new ImGuiPlatformImeDataPtr(nativePtr); |
|
public ref bool WantVisible => ref Unsafe.AsRef<bool>(&NativePtr->WantVisible); |
|
public ref Vector2 InputPos => ref Unsafe.AsRef<Vector2>(&NativePtr->InputPos); |
|
public ref float InputLineHeight => ref Unsafe.AsRef<float>(&NativePtr->InputLineHeight); |
|
public void Destroy() |
|
{ |
|
ImGuiNative.ImGuiPlatformImeData_destroy((ImGuiPlatformImeData*)(NativePtr)); |
|
} |
|
} |
|
}
|
|
|