コード例 #1
0
 public ScrollableAdapter(IScrollableImplementor 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 bool GetBorder_cb(IntPtr inst, IntPtr border)
 {
     try {
         IScrollableImplementor __obj = GLib.Object.GetObject(inst, false) as IScrollableImplementor;
         bool __result;
         __result = __obj.GetBorder(Gtk.Border.New(border));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }