예제 #1
0
 public CompletionProposalAdapter(ICompletionProposalImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }
예제 #2
0
 static IntPtr GetIcon_cb(IntPtr inst)
 {
     try {
         ICompletionProposalImplementor __obj = GLib.Object.GetObject(inst, false) as ICompletionProposalImplementor;
         Gdk.Pixbuf __result;
         __result = __obj.Icon;
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #3
0
 static IntPtr GetText_cb(IntPtr inst)
 {
     try {
         ICompletionProposalImplementor __obj = GLib.Object.GetObject(inst, false) as ICompletionProposalImplementor;
         string __result;
         __result = __obj.Text;
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #4
0
 static bool Equal_cb(IntPtr inst, IntPtr other)
 {
     try {
         ICompletionProposalImplementor __obj = GLib.Object.GetObject(inst, false) as ICompletionProposalImplementor;
         bool __result;
         __result = __obj.Equal(GtkSource.CompletionProposalAdapter.GetObject(other, false));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #5
0
 static uint Hash_cb(IntPtr inst)
 {
     try {
         ICompletionProposalImplementor __obj = GLib.Object.GetObject(inst, false) as ICompletionProposalImplementor;
         uint __result;
         __result = __obj.Hash();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #6
0
 static IntPtr GetGicon_cb(IntPtr inst)
 {
     try {
         ICompletionProposalImplementor __obj = GLib.Object.GetObject(inst, false) as ICompletionProposalImplementor;
         GLib.IIcon __result;
         __result = __obj.Gicon;
         return(__result == null ? IntPtr.Zero : ((__result is GLib.Object) ? (__result as GLib.Object).Handle : (__result as GLib.IconAdapter).Handle));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }