コード例 #1
0
ファイル: Control.cs プロジェクト: pzaps/CrossGFX
        public override void Draw(IRenderTarget renderTarget)
        {
            renderTarget.Origin += this.Bounds.Location;
            renderTarget.StartClip(new Rectangle(0, 0, this.Bounds.Width, this.Bounds.Height), 1);

            this.DrawUnder(renderTarget);
            this.DrawMiddle(renderTarget);
            this.DrawOver(renderTarget);

            renderTarget.EndClip();
            renderTarget.Origin -= this.Bounds.Location;

            base.Draw(renderTarget);
        }