Exemplo n.º 1
0
        //---------------------------------------
        public int copy(ZOrderClient zOrderClientSrc)
        {
            _id   = zOrderClientSrc._id;
            _guid = zOrderClientSrc._guid;

            _left   = zOrderClientSrc._left;
            _top    = zOrderClientSrc._top;
            _right  = zOrderClientSrc._right;
            _bottom = zOrderClientSrc._bottom;

            _iZOrder          = zOrderClientSrc._iZOrder;
            _iApparitionOrder = zOrderClientSrc._iApparitionOrder;

            _windowHandle       = zOrderClientSrc._windowHandle;
            _parentWindowHandle = zOrderClientSrc._parentWindowHandle;

            _control            = zOrderClientSrc._control;
            _parent             = zOrderClientSrc._parent;
            _parentParent       = zOrderClientSrc._parentParent;
            _parentParentParent = zOrderClientSrc._parentParentParent;

            _renderingContainer = zOrderClientSrc._renderingContainer;

            _urlType         = zOrderClientSrc._urlType;
            _previousUrlType = zOrderClientSrc._previousUrlType;

            //_clonePB = zOrderClientSrc._clonePB;
            return(0);
        }
Exemplo n.º 2
0
 //---------------------------
 public int setCoordinatesFromZone(ZOrderClient zOrderClient)
 {
     _left   = zOrderClient._left;
     _top    = zOrderClient._top;
     _right  = zOrderClient._right;
     _bottom = zOrderClient._bottom;
     return(0);
 }
Exemplo n.º 3
0
        //----------------------------------------
        public int unionWithZone(ZOrderClient zOrderClient)
        {
            int newLeft  = Math.Min(zOrderClient._left, _left);
            int newRight = Math.Max(zOrderClient._right, _right);

            int newTop    = Math.Min(zOrderClient._top, _top);
            int newBottom = Math.Max(zOrderClient._bottom, _bottom);

            setCoordinates(newLeft, newTop, newRight, newBottom);
            return(0);
        }
Exemplo n.º 4
0
        //----------------------------------------
        public bool isZoneInsideRect(ZOrderClient zOrderClient)
        {
            bool bInsideRect =
                (
                    (zOrderClient._left >= this._left) &&
                    (zOrderClient._right <= this._right) &&
                    (zOrderClient._top >= this._top) &&
                    (zOrderClient._bottom <= this._bottom)
                );

            return(bInsideRect);
        }
Exemplo n.º 5
0
        //----------------------------------------
        public bool isIntersectedWithZone(ZOrderClient zOrderClient)
        {
            //intersectRect = ! (r2.left > r1.right || r2.right < r1.left || r2.top > r1.bottom || r2.bottom < r1.top);
            bool bIntersect = !
                              ((this._left > zOrderClient._right) ||
                               (this._right < zOrderClient._left) ||
                               (this._top > zOrderClient._bottom) ||
                               (this._bottom < zOrderClient._top)
                              );

            return(bIntersect);
        }
Exemplo n.º 6
0
        //----------------------------------------
        public int intersectWithZone(ZOrderClient zOrderClient)
        {
            if (!isIntersectedWithZone(zOrderClient))
            {
                return(setCoordinates(0, 0, 0, 0));
            }

            int newLeft  = Math.Max(zOrderClient._left, _left);
            int newRight = Math.Min(zOrderClient._right, _right);

            int newTop    = Math.Max(zOrderClient._top, _top);
            int newBottom = Math.Min(zOrderClient._bottom, _bottom);

            setCoordinates(newLeft, newTop, newRight, newBottom);
            return(0);
        }