static void SetValue_cb(IntPtr inst, IntPtr channel, int value) { try { IColorBalanceImplementor __obj = GLib.Object.GetObject(inst, false) as IColorBalanceImplementor; __obj.SetValue(GLib.Object.GetObject(channel) as Gst.Video.ColorBalanceChannel, value); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ColorBalanceAdapter(IColorBalanceImplementor 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 GetBalanceType_cb(IntPtr inst) { try { IColorBalanceImplementor __obj = GLib.Object.GetObject(inst, false) as IColorBalanceImplementor; Gst.Video.ColorBalanceType __result; __result = __obj.BalanceType; return((int)__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int GetValue_cb(IntPtr inst, IntPtr channel) { try { IColorBalanceImplementor __obj = GLib.Object.GetObject(inst, false) as IColorBalanceImplementor; int __result; __result = __obj.GetValue(GLib.Object.GetObject(channel) as Gst.Video.ColorBalanceChannel); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr ListChannels_cb(IntPtr inst) { try { IColorBalanceImplementor __obj = GLib.Object.GetObject(inst, false) as IColorBalanceImplementor; Gst.Video.ColorBalanceChannel[] __result; __result = __obj.ListChannels(); return(new GLib.List(__result, typeof(Gst.Video.ColorBalanceChannel), false, false) == null ? IntPtr.Zero : new GLib.List(__result, typeof(Gst.Video.ColorBalanceChannel), false, false).Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }