コード例 #1
0
 public ChildProxyAdapter(IChildProxyImplementor 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 uint GetChildrenCount_cb(IntPtr inst)
 {
     try {
         IChildProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IChildProxyImplementor;
         uint __result;
         __result = __obj.ChildrenCount;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #3
0
 static IntPtr GetChildByIndex_cb(IntPtr inst, uint index)
 {
     try {
         IChildProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IChildProxyImplementor;
         GLib.Object            __result;
         __result = __obj.GetChildByIndex(index);
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #4
0
 static IntPtr GetChildByName_cb(IntPtr inst, IntPtr name)
 {
     try {
         IChildProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IChildProxyImplementor;
         GLib.Object            __result;
         __result = __obj.GetChildByName(GLib.Marshaller.Utf8PtrToString(name));
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }