mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-26 13:05:03 +00:00
Xcursor types.
This commit is contained in:
parent
10112da976
commit
52043d5f74
|
@ -38,6 +38,11 @@ namespace OpenTK.Platform.X11
|
|||
using Display = System.IntPtr;
|
||||
using XPointer = System.IntPtr;
|
||||
|
||||
using XcursorBool = System.Int32;
|
||||
using XcursorUInt = System.UInt32;
|
||||
using XcursorDim = System.UInt32;
|
||||
using XcursorPixel = System.UInt32;
|
||||
|
||||
// Randr and Xrandr
|
||||
using Bool = System.Boolean;
|
||||
using XRRScreenConfiguration = System.IntPtr; // opaque datatype
|
||||
|
@ -579,6 +584,47 @@ XF86VidModeGetGammaRampSize(
|
|||
|
||||
#region X11 Structures
|
||||
|
||||
#region Xcursor
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
unsafe struct XcursorImage
|
||||
{
|
||||
XcursorUInt version;
|
||||
XcursorDim size;
|
||||
XcursorDim width;
|
||||
XcursorDim height;
|
||||
XcursorDim xhot;
|
||||
XcursorDim yhot;
|
||||
XcursorUInt delay;
|
||||
XcursorPixel* pixels;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
unsafe struct XcursorImages
|
||||
{
|
||||
int nimage;
|
||||
XcursorImage **images;
|
||||
char *name;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
unsafe struct XcursorCursors
|
||||
{
|
||||
Display *dpy;
|
||||
int refcount;
|
||||
int ncursor;
|
||||
Cursor *cursors;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
unsafe struct XcursorAnimate
|
||||
{
|
||||
XcursorCursors *cursors;
|
||||
int sequence;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region internal class XVisualInfo
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
|
Loading…
Reference in a new issue