LayoutFarm.RenderBoxes.HitChain.OffsetTestPoint C# (CSharp) Method

OffsetTestPoint() public method

public OffsetTestPoint ( int dx, int dy ) : void
dx int
dy int
return void
        public void OffsetTestPoint(int dx, int dy)
        {
            testPointX += dx;
            testPointY += dy;
        }
        public void ClearAll()

Usage Example

Example #1
0
        public override bool HitTestCore(HitChain hitChain)
        {
            int testX;
            int testY;
            hitChain.GetTestPoint(out testX, out testY);
            GridCell cell = GetGridItemByPosition(testX, testY);
            if (cell != null && cell.HasContent)
            {
                hitChain.OffsetTestPoint(-cell.X, -cell.Y);
                var renderE = cell.ContentElement as RenderElement;
                if (renderE != null)
                {
                    renderE.HitTestCore(hitChain);
                }

                hitChain.OffsetTestPoint(cell.X, cell.Y);
                return true;
            }
            return false;
        }
All Usage Examples Of LayoutFarm.RenderBoxes.HitChain::OffsetTestPoint