Table of Contents

Delegate X11EventHook

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll

Represents a method to handle messages directly from the X11 event loop

public delegate bool X11EventHook(nint xevent)

Parameters

xevent nint

A pointer to an Xlib XEvent union to process

Returns

bool

true to let the event continue on; otherwise, false to drop it

Remarks

This callback may modify the event, and should return true if the event should continue to be processed, or false to prevent further processing.

As this is processing an event directly from the X11 event loop, this callback should do the minimum required work and return quickly.

This may only be called (by SDL) from the thread handling the X11 event loop.