OffsetCanvasOrigin() 공개 메소드

public OffsetCanvasOrigin ( int dx, int dy ) : void
dx int
dy int
리턴 void
예제 #1
0
        public void Paint(PaintVisitor p)
        {
#if DEBUG
            //if (__aa_dbugId == 5)
            //{

            //}
            dbugCounter.dbugBoxPaintCount++;
#endif
            if (_isVisible)
            {
                //offset

                if (_mayHasViewport)
                {
                    p.OffsetCanvasOrigin(-this.ViewportX, -this.ViewportY);
                    PaintImp(p);
                    p.OffsetCanvasOrigin(this.ViewportX, this.ViewportY);
                }
                else
                {
                    PaintImp(p);
                }
            }
        }
예제 #2
0
        public void Paint(PaintVisitor p)
        {
#if DEBUG
            dbugCounter.dbugBoxPaintCount++;
#endif
            if (this._isVisible)
            {
                //offset 

                if (this.mayHasViewport)
                {
                    p.OffsetCanvasOrigin(-this.ViewportX, -this.ViewportY);
                    PaintImp(p);
                    p.OffsetCanvasOrigin(this.ViewportX, this.ViewportY);
                }
                else
                {
                    PaintImp(p);
                }
            }
        }