using System; namespace Gwen.Control { /// /// Status bar. /// public class StatusBar : Label { /// /// Initializes a new instance of the class. /// /// Parent control. public StatusBar(Base parent) : base(parent) { Height = 22; Dock = Pos.Bottom; Padding = Padding.Two; //Text = "Status Bar"; // [omeg] todo i18n Alignment = Pos.Left | Pos.CenterV; } /// /// Adds a control to the bar. /// /// Control to add. /// Determines whether the control should be added to the right side of the bar. public void AddControl(Base control, bool right) { control.Parent = this; control.Dock = right ? Pos.Right : Pos.Left; } /// /// Renders the control using specified skin. /// /// Skin to use. protected override void Render(Skin.Base skin) { skin.DrawStatusBar(this); } } }