Dalamud/imgui/Dalamud.Bindings.ImGui/Custom/Generated/ImGuiIOPtr.gen.cs
2025-07-23 01:18:48 +09:00

70 lines
2.1 KiB
C#

// <auto-generated/>
using HexaGen.Runtime;
using System;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Dalamud.Bindings.ImGui;
public unsafe partial struct ImGuiIOPtr
{
public unsafe void AddFocusEvent(bool focused)
{
ImGuiNative.AddFocusEvent(Handle, focused ? (byte)1 : (byte)0);
}
public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v)
{
ImGuiNative.AddKeyAnalogEvent(Handle, key, down ? (byte)1 : (byte)0, v);
}
public unsafe void AddKeyEvent(ImGuiKey key, bool down)
{
ImGuiNative.AddKeyEvent(Handle, key, down ? (byte)1 : (byte)0);
}
public unsafe void AddMouseButtonEvent(int button, bool down)
{
ImGuiNative.AddMouseButtonEvent(Handle, button, down ? (byte)1 : (byte)0);
}
public unsafe void AddMousePosEvent(float x, float y)
{
ImGuiNative.AddMousePosEvent(Handle, x, y);
}
public unsafe void AddMouseViewportEvent(uint id)
{
ImGuiNative.AddMouseViewportEvent(Handle, id);
}
public unsafe void AddMouseWheelEvent(float whX, float whY)
{
ImGuiNative.AddMouseWheelEvent(Handle, whX, whY);
}
public unsafe void ClearInputCharacters()
{
ImGuiNative.ClearInputCharacters(Handle);
}
public unsafe void ClearInputKeys()
{
ImGuiNative.ClearInputKeys(Handle);
}
public unsafe void Destroy()
{
ImGuiNative.Destroy(Handle);
}
public unsafe void SetAppAcceptingEvents(bool acceptingEvents)
{
ImGuiNative.SetAppAcceptingEvents(Handle, acceptingEvents ? (byte)1 : (byte)0);
}
public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex)
{
ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
}
public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode)
{
ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, (int)(-1));
}
}
// DISCARDED: AddInputCharacter
// DISCARDED: AddInputCharactersUTF8
// DISCARDED: AddInputCharacterUTF16