Exemplo n.º 1
0
        public static Cairo.Region LayoutLineGetClipRegion(Pango.LayoutLine line, int x_origin, int y_origin, out int index_ranges, int n_ranges)
        {
            IntPtr raw_ret = gdk_pango_layout_line_get_clip_region(line == null ? IntPtr.Zero : line.Handle, x_origin, y_origin, out index_ranges, n_ranges);

            Cairo.Region ret = new Cairo.Region(raw_ret);
            return(ret);
        }
Exemplo n.º 2
0
        public static Cairo.Region RegionCreateFromSurface(Cairo.Surface surface)
        {
            IntPtr raw_ret = gdk_cairo_region_create_from_surface(surface.Handle);

            Cairo.Region ret = new Cairo.Region(raw_ret);
            return(ret);
        }
Exemplo n.º 3
0
        private void InternalEndFrame(Cairo.Region painted, Cairo.Region damage)
        {
            EndFrameNativeDelegate unmanaged = class_abi.BaseOverride <EndFrameNativeDelegate>(this.LookupGType(), "end_frame");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, painted == null ? IntPtr.Zero : painted.Handle, damage == null ? IntPtr.Zero : damage.Handle);
        }
Exemplo n.º 4
0
        private bool InternalTextureFromSurface(Cairo.Surface surface, Cairo.Region region)
        {
            TextureFromSurfaceNativeDelegate unmanaged = class_abi.BaseOverride <TextureFromSurfaceNativeDelegate>(this.LookupGType(), "texture_from_surface");

            if (unmanaged == null)
            {
                return(false);
            }

            bool __result = unmanaged(this.Handle, surface.Handle, region == null ? IntPtr.Zero : region.Handle);

            return(__result);
        }
Exemplo n.º 5
0
        private void InternalEndFrame(Cairo.Region painted, Cairo.Region damage)
        {
            EndFrameNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("end_frame"));
                unmanaged = (EndFrameNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(EndFrameNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, painted == null ? IntPtr.Zero : painted.Handle, damage == null ? IntPtr.Zero : damage.Handle);
        }
Exemplo n.º 6
0
        private bool InternalTextureFromSurface(Cairo.Surface surface, Cairo.Region region)
        {
            TextureFromSurfaceNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("texture_from_surface"));
                unmanaged = (TextureFromSurfaceNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(TextureFromSurfaceNativeDelegate));
            }
            if (unmanaged == null)
            {
                return(false);
            }

            bool __result = unmanaged(this.Handle, surface.Handle, region == null ? IntPtr.Zero : region.Handle);

            return(__result);
        }
Exemplo n.º 7
0
 public Cairo.Status Xor(Cairo.Region other)
 {
     throw null;
 }
Exemplo n.º 8
0
 public Cairo.Status Union(Cairo.Region other)
 {
     throw null;
 }
Exemplo n.º 9
0
 public Cairo.Status Subtract(Cairo.Region other)
 {
     throw null;
 }
Exemplo n.º 10
0
 public Cairo.Status Intersect(Cairo.Region other)
 {
     throw null;
 }
Exemplo n.º 11
0
		public Cairo.Region RegionIntersect(Cairo.Region region) {
			IntPtr raw_ret = gtk_widget_region_intersect(Handle, region == null ? IntPtr.Zero : region.Handle);
			Cairo.Region ret = new Cairo.Region(raw_ret);
			return ret;
		}
Exemplo n.º 12
0
 protected virtual bool OnTextureFromSurface(Cairo.Surface surface, Cairo.Region region)
 {
     return(InternalTextureFromSurface(surface, region));
 }
Exemplo n.º 13
0
 protected virtual void OnEndFrame(Cairo.Region painted, Cairo.Region damage)
 {
     InternalEndFrame(painted, damage);
 }
 void InvokeNative(Gdk.Window window, Cairo.Region region)
 {
     native_cb(window == null ? IntPtr.Zero : window.Handle, region == null ? IntPtr.Zero : region.Handle);
 }
Exemplo n.º 15
0
		public static Cairo.Region LayoutLineGetClipRegion(Pango.LayoutLine line, int x_origin, int y_origin, out int index_ranges, int n_ranges) {
			IntPtr raw_ret = gdk_pango_layout_line_get_clip_region(line == null ? IntPtr.Zero : line.Handle, x_origin, y_origin, out index_ranges, n_ranges);
			Cairo.Region ret = new Cairo.Region(raw_ret);
			return ret;
		}
Exemplo n.º 16
0
 public static void Region(Cairo.Context cr, Cairo.Region region)
 {
     gdk_cairo_region(cr == null ? IntPtr.Zero : cr.Handle, region == null ? IntPtr.Zero : region.Handle);
 }