Exemple #1
0
        public static TPixel XAllocParsedColorByName(IntPtr x11display, TInt screenNumber, [MarshalAs(UnmanagedType.LPStr)] string colorname)
        {
            if (x11display == IntPtr.Zero)
            {
                return((TPixel)1);
            }

            Lib.XColor tmp = new Lib.XColor();
            Lib.XParseColor(x11display, Lib.XDefaultColormap(x11display, screenNumber), colorname, ref tmp);
            Lib.XAllocColor(x11display, Lib.XDefaultColormap(x11display, screenNumber), ref tmp);
            return(tmp.pixel);
        }
Exemple #2
0
 public extern static IntPtr XCreatePixmapCursor(IntPtr x11display, IntPtr cursorPixmap, IntPtr cursorPixmap2, ref Lib.XColor cursorColor, ref Lib.XColor cursorColor2, TInt i, TInt i2);