public static void ContextSetShapeRenderer(Pango.Context context, Pango.CairoShapeRendererFunc func) { PangoSharp.CairoShapeRendererFuncWrapper func_wrapper = new PangoSharp.CairoShapeRendererFuncWrapper (func); IntPtr data; GLib.DestroyNotify dnotify; if (func == null) { data = IntPtr.Zero; dnotify = null; } else { data = (IntPtr) GCHandle.Alloc (func_wrapper); dnotify = GLib.DestroyHelper.NotifyHandler; } pango_cairo_context_set_shape_renderer(context == null ? IntPtr.Zero : context.Handle, func_wrapper.NativeDelegate, data, dnotify); }
public static void ContextSetShapeRenderer(Pango.Context context, Pango.CairoShapeRendererFunc func) { PangoSharp.CairoShapeRendererFuncWrapper func_wrapper = new PangoSharp.CairoShapeRendererFuncWrapper(func); IntPtr data; GLib.DestroyNotify dnotify; if (func == null) { data = IntPtr.Zero; dnotify = null; } else { data = (IntPtr)GCHandle.Alloc(func_wrapper); dnotify = GLib.DestroyHelper.NotifyHandler; } pango_cairo_context_set_shape_renderer(context == null ? IntPtr.Zero : context.Handle, func_wrapper.NativeDelegate, data, dnotify); }