Esempio n. 1
0
        public override void preroll(PrerollContext context, Matrix3 matrix)
        {
            Rect child_paint_bounds = Rect.zero;

            this.prerollChildren(context, matrix, ref child_paint_bounds);

            if (this._elevation == 0)
            {
                this.paintBounds = this._path.getBounds();
            }
            else
            {
                Rect bounds = this._path.getBounds();
                Rect outset = bounds.outset(20.0f, 20.0f);
                this.paintBounds = outset;
            }
        }