public void RequestRichText(Gtk.TextBuffer buffer, RichTextReceivedFunc cb) { if (rt_rcvd_marshaler == null) { rt_rcvd_marshaler = new RichTextReceivedFuncNative(RichTextReceivedCallback); } gtk_clipboard_request_rich_text(Handle, buffer == null ? IntPtr.Zero : buffer.Handle, rt_rcvd_marshaler, (IntPtr)GCHandle.Alloc(cb)); }
static extern void gtk_clipboard_request_rich_text(IntPtr raw, IntPtr buffer, RichTextReceivedFuncNative cb, IntPtr user_data);
static extern void gtk_clipboard_request_rich_text(IntPtr raw, IntPtr buffer, RichTextReceivedFuncNative cb, IntPtr user_data);
public void RequestRichText(Gtk.TextBuffer buffer, RichTextReceivedFunc cb) { if (rt_rcvd_marshaler == null) rt_rcvd_marshaler = new RichTextReceivedFuncNative (RichTextReceivedCallback); gtk_clipboard_request_rich_text (Handle, buffer == null ? IntPtr.Zero : buffer.Handle, rt_rcvd_marshaler, (IntPtr) GCHandle.Alloc (cb)); }