Exemplo n.º 1
0
        public void CopyFrom(Relations source)
        {
            ClearAll();

            List <RelationItem> arr = source._items;

            foreach (RelationItem ri in arr)
            {
                RelationItem item = new RelationItem(_owner);
                item.CopyFrom(ri);
                _items.Add(item);
            }
        }
Exemplo n.º 2
0
        public GObject()
        {
            _width           = 0;
            _height          = 0;
            _name            = "";
            _alpha           = 1;
            _rotation        = 0;
            _visible         = true;
            _internalVisible = 1;
            _touchable       = true;



            _relations = new Relations(this);

            _gearDisplay = new GearDisplay(this);
            _gearXY      = new GearXY(this);
            _gearSize    = new GearSize(this);
            gearLook     = new GearLook(this);

            onClick            = new EventListener(this, "onClick");
            onRightClick       = new EventListener(this, "onRightClick");
            onTouchBegin       = new EventListener(this, "onTouchBegin");
            onTouchEnd         = new EventListener(this, "onTouchEnd");
            onRollOver         = new EventListener(this, "onRollOver");
            onRollOut          = new EventListener(this, "onRollOut");
            onAddedToStage     = new EventListener(this, "onAddedToStage");
            onRemovedFromStage = new EventListener(this, "onRemovedFromStage");
            onKeyDown          = new EventListener(this, "onKeyDown");
            onClickLink        = new EventListener(this, "onClickLink");

            onPositionChanged = new EventListener(this, "onPositionChanged");
            onSizeChanged     = new EventListener(this, "onSizeChanged");
            onDragStart       = new EventListener(this, "onDragStart");
            onDragEnd         = new EventListener(this, "onDragEnd");
        }