Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
            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);
                }
            }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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();
     }
 }
Exemplo n.º 6
0
        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;
 }
Exemplo n.º 8
0
 public void AddArgument(Cdn.FunctionArgument argument)
 {
     cdn_function_add_argument(Handle, argument == null ? IntPtr.Zero : argument.Handle);
 }
Exemplo n.º 9
0
 public ModifyFunctionArgumentExplicit(Wrappers.Function function, Cdn.FunctionArgument argument, bool val) : base(function, argument)
 {
     d_prevVal = argument.Explicit;
     d_newVal  = val;
 }
Exemplo n.º 10
0
 public RemoveFunctionArgument(Wrappers.Function function, Cdn.FunctionArgument argument) : base(function, argument)
 {
 }
Exemplo n.º 11
0
 private void DoArgumentRemoved(Wrappers.Function obj, Cdn.FunctionArgument arg)
 {
     d_treeview.NodeStore.Remove(arg);
 }
Exemplo n.º 12
0
 public ModifyFunctionArgumentName(Wrappers.Function function, Cdn.FunctionArgument argument, string val) : base(function, argument)
 {
     d_prevVal = argument.Name;
     d_newVal  = val;
 }