コード例 #1
0
ファイル: Clipboard.cs プロジェクト: Gravecorp/gtk-sharp
 public bool SetWithOwner(TargetEntry[] targets, ClipboardGetFunc get_func, ClipboardClearFunc clear_func, GLib.Object owner)
 {
     ClipboardClearFunc clear_proxy = new ClipboardClearFunc (ClearProxy);
     GtkSharp.ClipboardGetFuncWrapper get_func_wrapper = new GtkSharp.ClipboardGetFuncWrapper (get_func);
     GtkSharp.ClipboardClearFuncWrapper clear_proxy_wrapper = new GtkSharp.ClipboardClearFuncWrapper (clear_proxy);
     bool ret = gtk_clipboard_set_with_owner (Handle, targets, targets.Length, get_func_wrapper.NativeDelegate, clear_proxy_wrapper.NativeDelegate, owner == null ? IntPtr.Zero : owner.Handle);
     SetPersistentData (get_func_wrapper, clear_func, clear_proxy_wrapper);
     return ret;
 }
コード例 #2
0
ファイル: Clipboard.cs プロジェクト: glib-sharp/gtk-sharp
        public bool SetWithOwner(TargetEntry[] targets, ClipboardGetFunc get_func, ClipboardClearFunc clear_func, GLib.Object owner)
        {
            ClipboardClearFunc clear_proxy = new ClipboardClearFunc(ClearProxy);

            GtkSharp.ClipboardGetFuncWrapper   get_func_wrapper    = new GtkSharp.ClipboardGetFuncWrapper(get_func);
            GtkSharp.ClipboardClearFuncWrapper clear_proxy_wrapper = new GtkSharp.ClipboardClearFuncWrapper(clear_proxy);
            bool ret = gtk_clipboard_set_with_owner(Handle, targets, targets.Length, get_func_wrapper.NativeDelegate, clear_proxy_wrapper.NativeDelegate, owner == null ? IntPtr.Zero : owner.Handle);

            SetPersistentData(get_func_wrapper, clear_func, clear_proxy_wrapper);
            return(ret);
        }