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; }
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; } }
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; } }