public Cdn.FunctionArgument Copy() { IntPtr raw_ret = cdn_function_argument_copy(Handle); Cdn.FunctionArgument ret = GLib.Object.GetObject(raw_ret, true) as Cdn.FunctionArgument; return(ret); }
public Cdn.FunctionArgument GetArgument(string name) { IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name); IntPtr raw_ret = cdn_function_get_argument(Handle, native_name); Cdn.FunctionArgument ret = GLib.Object.GetObject(raw_ret) as Cdn.FunctionArgument; GLib.Marshaller.Free(native_name); return(ret); }
public Node(Cdn.FunctionArgument argument) { d_argument = argument; if (d_argument != null) { d_argument.AddNotification("name", OnChanged); d_argument.AddNotification("default-value", OnChanged); d_argument.AddNotification("explicit", OnChanged); } }
public unsafe bool RemoveArgument(Cdn.FunctionArgument argument) { IntPtr error = IntPtr.Zero; bool raw_ret = cdn_function_remove_argument(Handle, argument == null ? IntPtr.Zero : argument.Handle, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
protected virtual void OnArgumentRemoved(Cdn.FunctionArgument argument) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray(2); GLib.Value[] vals = new GLib.Value [2]; vals [0] = new GLib.Value(this); inst_and_params.Append(vals [0]); vals [1] = new GLib.Value(argument); inst_and_params.Append(vals [1]); g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret); foreach (GLib.Value v in vals) { v.Dispose(); } }
private void DoArgumentAdded(Wrappers.Function obj, Cdn.FunctionArgument arg) { Node node = new Node(arg); d_treeview.NodeStore.Remove(d_dummy); d_treeview.NodeStore.Add(node); d_treeview.NodeStore.Add(d_dummy); if (d_selectArgument) { d_treeview.Selection.UnselectAll(); d_treeview.Selection.SelectPath(node.Path); d_treeview.SetCursor(node.Path, d_treeview.GetColumn(0), true); } }
public ModifyFunctionArgumentDefaultValue(Wrappers.Function function, Cdn.FunctionArgument argument, string val) : base(function, argument) { d_prevVal = argument.Optional ? argument.DefaultValue.AsString : null; d_newVal = val; }
public void AddArgument(Cdn.FunctionArgument argument) { cdn_function_add_argument(Handle, argument == null ? IntPtr.Zero : argument.Handle); }
public ModifyFunctionArgumentExplicit(Wrappers.Function function, Cdn.FunctionArgument argument, bool val) : base(function, argument) { d_prevVal = argument.Explicit; d_newVal = val; }
public RemoveFunctionArgument(Wrappers.Function function, Cdn.FunctionArgument argument) : base(function, argument) { }
private void DoArgumentRemoved(Wrappers.Function obj, Cdn.FunctionArgument arg) { d_treeview.NodeStore.Remove(arg); }
public ModifyFunctionArgumentName(Wrappers.Function function, Cdn.FunctionArgument argument, string val) : base(function, argument) { d_prevVal = argument.Name; d_newVal = val; }