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/TreeToggleButton.cs

41 lines
1 KiB
C#
Raw Normal View History

using System;
using Gwen.Control;
namespace Gwen.ControlInternal
{
/// <summary>
/// Tree node toggle button (the little plus sign).
/// </summary>
public class TreeToggleButton : Button
{
/// <summary>
/// Initializes a new instance of the <see cref="TreeToggleButton"/> class.
/// </summary>
/// <param name="parent">Parent control.</param>
public TreeToggleButton(Base parent)
: base(parent)
{
IsToggle = true;
IsTabable = false;
}
/// <summary>
/// Renders the focus overlay.
/// </summary>
/// <param name="skin">Skin to use.</param>
protected override void RenderFocus(Skin.Base skin)
{
}
/// <summary>
/// Renders the control using specified skin.
/// </summary>
/// <param name="skin">Skin to use.</param>
protected override void Render(Skin.Base skin)
{
skin.DrawTreeButton(this, ToggleState);
}
}
}