Xcursor types.

This commit is contained in:
Fraser Waters 2014-02-22 12:54:11 +00:00 committed by thefiddler
parent 10112da976
commit 52043d5f74

View file

@ -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)]