diff --git a/XDL_VERSION b/XDL_VERSION index 76001f6..40ad1df 100644 --- a/XDL_VERSION +++ b/XDL_VERSION @@ -1 +1 @@ -3.4.20-9 +3.4.20-11 diff --git a/src/XdlSharp/Generated/XDL.g.cs b/src/XdlSharp/Generated/XDL.g.cs index 10c0773..767f366 100644 --- a/src/XdlSharp/Generated/XDL.g.cs +++ b/src/XdlSharp/Generated/XDL.g.cs @@ -20,9 +20,17 @@ public static bool XDL_SetWindowMousePassthroughEvents(Pointer windo return Raw.XDL_SetWindowMousePassthroughEvents(window, enabled ? (byte)1 : (byte)0) != 0; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool XDL_SetWindowInputRegion(Pointer window, Pointer rects, int count) + { + return Raw.XDL_SetWindowInputRegion(window, rects, count) != 0; + } + private static unsafe partial class Raw { [DllImport("XDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern byte XDL_SetWindowMousePassthroughEvents(SDL_Window* window, byte enabled); + [DllImport("XDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern byte XDL_SetWindowInputRegion(SDL_Window* window, SDL_Rect* rects, int count); } } diff --git a/src/XdlSharp/Generated/XDL_ttf.g.cs b/src/XdlSharp/Generated/XDL_ttf.g.cs new file mode 100644 index 0000000..fe25682 --- /dev/null +++ b/src/XdlSharp/Generated/XDL_ttf.g.cs @@ -0,0 +1,44 @@ +// +// Generated by tools/XdlSharp.Generator from the XDL headers. Do not edit. + +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace XdlSharp; + +public static unsafe partial class Xdl +{ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool XDL_SetFontCharSpacing(Pointer font, float spacing) + { + return Raw.XDL_SetFontCharSpacing(font, spacing) != 0; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool XDL_SetFontFeatures(Pointer font, ReadOnlySpan features) + { + fixed (byte* __features = &MemoryMarshal.GetReference(features)) + { + return Raw.XDL_SetFontFeatures(font, __features) != 0; + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool XDL_SetFontVariations(Pointer font, ReadOnlySpan variations) + { + fixed (byte* __variations = &MemoryMarshal.GetReference(variations)) + { + return Raw.XDL_SetFontVariations(font, __variations) != 0; + } + } + + private static unsafe partial class Raw + { + [DllImport("XDL3_ttf", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern byte XDL_SetFontCharSpacing(TTF_Font* font, float spacing); + [DllImport("XDL3_ttf", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern byte XDL_SetFontFeatures(TTF_Font* font, byte* features); + [DllImport("XDL3_ttf", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern byte XDL_SetFontVariations(TTF_Font* font, byte* variations); + } +} diff --git a/tests/native/xdlsharp_layout.c b/tests/native/xdlsharp_layout.c index 46d2817..a9ca0fa 100644 --- a/tests/native/xdlsharp_layout.c +++ b/tests/native/xdlsharp_layout.c @@ -6,6 +6,7 @@ #include #include #include +#include #include typedef struct XdlSharpLayout diff --git a/tools/XdlSharp.Generator/generator.json b/tools/XdlSharp.Generator/generator.json index 0274997..af7ec98 100644 --- a/tools/XdlSharp.Generator/generator.json +++ b/tools/XdlSharp.Generator/generator.json @@ -5,6 +5,7 @@ "SDL3_image/SDL_image.h", "SDL3_ttf/SDL_ttf.h", "SDL3_ttf/SDL_textengine.h", + "SDL3_ttf/XDL_ttf.h", "SDL3_mixer/SDL_mixer.h" ], "libraries": {