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

GetTestPoint() public method

public GetTestPoint ( int &x, int &y ) : void
x int
y int
return void
        public void GetTestPoint(out int x, out int y)
        {
            x = this.testPointX;
            y = this.testPointY;
        }
        public void SetStartTestPoint(int x, int y)

Usage Example

コード例 #1
0
ファイル: 2_GridLayer.cs プロジェクト: prepare/HTML-Renderer
        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::GetTestPoint