예제 #1
0
 public DevicePadAdapter(IDevicePadImplementor 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 int GetFeatureGroup_cb(IntPtr inst, int feature, int idx)
 {
     try {
         IDevicePadImplementor __obj = GLib.Object.GetObject(inst, false) as IDevicePadImplementor;
         int __result;
         __result = __obj.GetFeatureGroup((Gdk.DevicePadFeature)feature, idx);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #3
0
 static int GetGroupNModes_cb(IntPtr inst, int group)
 {
     try {
         IDevicePadImplementor __obj = GLib.Object.GetObject(inst, false) as IDevicePadImplementor;
         int __result;
         __result = __obj.GetGroupNModes(group);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }