示例#1
0
        public override void Draw(RenderTarget target)
        {
            _background.UpdateGeometry();
            _fill.UpdateGeometry();

            target.Draw(_background);
            target.Draw(_fill);
        }
示例#2
0
        public override void OnRefresh()
        {
            base.OnRefresh();

            _outerBody.Size         = (Vector2f)Size;
            _outerBody.BorderRadius = new BorderRadius(10);
            _outerBody.UpdateGeometry();

            _toggle.Radius = (Size.Y / 2) * 0.6f;

            _outerBody.Position = (Vector2f)GlobalPosition;
        }
示例#3
0
 public override void Draw(RenderTarget target)
 {
     _image.UpdateGeometry();
     target.Draw(_image);
 }
示例#4
0
 public override void Draw(RenderTarget target)
 {
     _body.UpdateGeometry();
     target.Draw(_body);
 }