brutal/Brutal.Glfw/Generated/Glfw.Delegates.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

104 lines
4.5 KiB
C#

// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void* GlfwAllocateUnmanagedCallback(ulong size, void* user);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void* GlfwReallocateUnmanagedCallback(void* block, ulong size, void* user);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwDeallocateUnmanagedCallback(void* block, void* user);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwErrorUnmanagedCallback(int errorCode, byte* description);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowPosUnmanagedCallback(GlfwWindowHandle* window, int xPos, int yPos);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowSizeUnmanagedCallback(GlfwWindowHandle* window, int width, int height);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowCloseUnmanagedCallback(GlfwWindowHandle* window);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowRefreshUnmanagedCallback(GlfwWindowHandle* window);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowFocusUnmanagedCallback(GlfwWindowHandle* window, int focused);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowIconifyUnmanagedCallback(GlfwWindowHandle* window, int iconified);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowMaximizeUnmanagedCallback(GlfwWindowHandle* window, int maximized);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwFramebufferSizeUnmanagedCallback(GlfwWindowHandle* window, int width, int height);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwWindowContentScaleUnmanagedCallback(
GlfwWindowHandle* window,
float xScale,
float yScale
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwMouseButtonUnmanagedCallback(
GlfwWindowHandle* window,
int button,
int action,
int mods
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwCursorPosUnmanagedCallback(GlfwWindowHandle* window, double xPos, double yPos);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwCursorEnterUnmanagedCallback(GlfwWindowHandle* window, int entered);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwScrollUnmanagedCallback(GlfwWindowHandle* window, double xOffset, double yOffset);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwScrollDetailUnmanagedCallback(
GlfwWindowHandle* window,
double xOffset,
double yOffset,
int flags
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwTrackpadZoomUnmanagedCallback(GlfwWindowHandle* window, double scale);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwTrackpadRotateUnmanagedCallback(GlfwWindowHandle* window, double angle);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwKeyUnmanagedCallback(
GlfwWindowHandle* window,
int key,
int scancode,
int action,
int mods
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwCharUnmanagedCallback(GlfwWindowHandle* window, uint codePoint);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwCharModsUnmanagedCallback(GlfwWindowHandle* window, uint codePoint, int mods);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwDropUnmanagedCallback(GlfwWindowHandle* window, int pathCount, byte** paths);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void GlfwMonitorUnmanagedCallback(GlfwMonitorHandle* monitor, int @event);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void GlfwJoystickUnmanagedCallback(int joystickId, int @event);
}