Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion XDL_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.20-9
3.4.20-11
8 changes: 8 additions & 0 deletions src/XdlSharp/Generated/XDL.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ public static bool XDL_SetWindowMousePassthroughEvents(Pointer<SDL_Window> windo
return Raw.XDL_SetWindowMousePassthroughEvents(window, enabled ? (byte)1 : (byte)0) != 0;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool XDL_SetWindowInputRegion(Pointer<SDL_Window> window, Pointer<SDL_Rect> 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);
}
}
44 changes: 44 additions & 0 deletions src/XdlSharp/Generated/XDL_ttf.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// <auto-generated />
// 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<TTF_Font> font, float spacing)
{
return Raw.XDL_SetFontCharSpacing(font, spacing) != 0;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool XDL_SetFontFeatures(Pointer<TTF_Font> font, ReadOnlySpan<byte> features)
{
fixed (byte* __features = &MemoryMarshal.GetReference(features))
{
return Raw.XDL_SetFontFeatures(font, __features) != 0;
}
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool XDL_SetFontVariations(Pointer<TTF_Font> font, ReadOnlySpan<byte> 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);
}
}
1 change: 1 addition & 0 deletions tests/native/xdlsharp_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <SDL3_image/SDL_image.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <SDL3_ttf/SDL_textengine.h>
#include <SDL3_ttf/XDL_ttf.h>
#include <SDL3_mixer/SDL_mixer.h>

typedef struct XdlSharpLayout
Expand Down
1 change: 1 addition & 0 deletions tools/XdlSharp.Generator/generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading