예제 #1
0
        public static Surface CreateSurface(Gdk.Drawable d)
        {
            d.GetSize(out var width, out var height);
            var surface = new XlibSurface(GdkUtils.GetXDisplay(d.Display),
                                          GdkUtils.GetXid(d),
                                          GdkUtils.GetXVisual(d.Visual),
                                          width, height);

            return(surface);
        }
예제 #2
0
        public static Surface CreateSurface(Gdk.Drawable d)
        {
            int width, height;

            d.GetSize(out width, out height);
            XlibSurface surface = new XlibSurface(GdkUtils.GetXDisplay(d.Display),
                                                  (IntPtr)GdkUtils.GetXid(d),
                                                  GdkUtils.GetXVisual(d.Visual),
                                                  width, height);

            return(surface);
        }