This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gwen-dotnet/Gwen/ControlInternal/SplitterBar.cs

42 lines
1.1 KiB
C#
Raw Normal View History

using System;
using Gwen.Control;
namespace Gwen.ControlInternal
{
/// <summary>
/// Splitter bar.
/// </summary>
public class SplitterBar : Dragger
{
/// <summary>
/// Initializes a new instance of the <see cref="SplitterBar"/> class.
/// </summary>
/// <param name="parent">Parent control.</param>
public SplitterBar(Base parent)
: base(parent)
{
Target = this;
RestrictToParent = true;
}
/// <summary>
/// Renders the control using specified skin.
/// </summary>
/// <param name="skin">Skin to use.</param>
protected override void Render(Skin.Base skin)
{
if (ShouldDrawBackground)
skin.DrawButton(this, true, false, IsDisabled);
}
/// <summary>
/// Lays out the control's interior according to alignment, padding, dock etc.
/// </summary>
/// <param name="skin">Skin to use.</param>
protected override void Layout(Skin.Base skin)
{
MoveTo(X, Y);
}
}
}