Exemplo n.º 1
0
 public void RemoveConnection(Connection connection)
 {
     OnConnectionRemoval(connection);
     Target.RemoveConnection(connection);
     DestroyHelper.Destroy(connection);
     //Object.DestroyImmediate(connection, true);
 }
Exemplo n.º 2
0
 public Pixbuf(byte[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn)
     : base(IntPtr.Zero)
 {
     if (GetType () != typeof (Pixbuf)) {
         throw new InvalidOperationException ("Can't override this constructor.");
     }
     DestroyHelper helper = new DestroyHelper (data, destroy_fn);
     Raw = gdk_pixbuf_new_from_data(data, (int) colorspace, has_alpha, bits_per_sample, width, height, rowstride, helper.Handler, IntPtr.Zero);
 }
Exemplo n.º 3
0
        public void RemoveNode(Node node)
        {
            //Do not trust Unity.
            OnNodeRemoval(node);
            Target.RemoveNode(node);
            DestroyHelper.Destroy(node);
            //Object.DestroyImmediate(node, true);

            //TODO: Expand Undo Functionality.
            //Undo.DestroyObjectImmediate(node);
        }
 private void OnDestroy()
 {
     //Debug.Log("YOLO!");
     //Do not trust Unity.
     Disconnect();
     foreach (Instruction connectionModifier in _instructions)
     {
         DestroyHelper.Destroy(connectionModifier);
     }
     //DestroyImmediate(connectionModifier, true);
     _instructions.Clear();
     Graph.RemoveConnection(this);
 }
        private void OnDestroy()
        {
            foreach (var connection in _connections)
            {
                DestroyHelper.Destroy(connection);
            }
            //DestroyImmediate(connection, true);
            foreach (var node in _nodes)
            {
                DestroyHelper.Destroy(node);
            }
            //DestroyImmediate(node, true);

            _connections.Clear();
            _nodes.Clear();
        }
Exemplo n.º 6
0
 public Pixbuf(byte[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn)
     : base(IntPtr.Zero)
 {
     if (GetType () != typeof (Pixbuf)) {
         throw new InvalidOperationException ("Can't override this constructor.");
     }
     DestroyHelper helper = new DestroyHelper (data, destroy_fn);
     Raw = gdk_pixbuf_new_from_data(data, (int) colorspace, has_alpha, bits_per_sample, width, height, rowstride, helper.Handler, IntPtr.Zero);
 }
Exemplo n.º 7
0
 static extern IntPtr gdk_pixbuf_new_from_data(byte[] data, int colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, DestroyHelper.NativeDelegate destroy_fn, IntPtr destroy_fn_data);
Exemplo n.º 8
0
 public void RemoveConnectionModifier(Instruction instruction)
 {
     instruction.Connection.RemoveInstruction(instruction);
     DestroyHelper.Destroy(instruction);
     //Object.DestroyImmediate(connectionModifier, true);
 }