mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +08:00
29 lines
828 B
C#
29 lines
828 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace CPF.Skia
|
|
{
|
|
internal class Xlib
|
|
{
|
|
private const string libX11 = "libX11";
|
|
|
|
public const int None = 0;
|
|
public const int True = 1;
|
|
public const int False = 0;
|
|
|
|
[DllImport(libX11)]
|
|
public extern static IntPtr XOpenDisplay(string display_name);
|
|
[DllImport(libX11)]
|
|
public extern static int XFree(IntPtr data);
|
|
[DllImport(libX11)]
|
|
public extern static int XDefaultScreen(IntPtr display);
|
|
[DllImport(libX11)]
|
|
public extern static IntPtr XRootWindow(IntPtr display, int screen);
|
|
[DllImport(libX11)]
|
|
public extern static IntPtr XCreatePixmap(IntPtr display, IntPtr d, uint width, uint height, uint depth);
|
|
[DllImport(libX11)]
|
|
public extern static IntPtr XFreePixmap(IntPtr display, IntPtr pixmap);
|
|
}
|
|
}
|