Пример #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);
 }