public override void Draw(RenderTarget target) { _background.UpdateGeometry(); _fill.UpdateGeometry(); target.Draw(_background); target.Draw(_fill); }
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; }
public override void Draw(RenderTarget target) { _image.UpdateGeometry(); target.Draw(_image); }
public override void Draw(RenderTarget target) { _body.UpdateGeometry(); target.Draw(_body); }