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/UpDownButton_Up.cs
Gered 10e057953e initial commit
Contains changes from "gwen-dotnet" removing dependancies on Windows,
which ultimately means certain features (e.g. file load/save dialogs)
do not work. Those classes still exist, but the code has been commented
out.
2013-03-28 18:47:01 -04:00

31 lines
787 B
C#

using System;
using Gwen.Control;
namespace Gwen.ControlInternal
{
/// <summary>
/// Numeric up arrow.
/// </summary>
public class UpDownButton_Up : Button
{
/// <summary>
/// Initializes a new instance of the <see cref="UpDownButton_Up"/> class.
/// </summary>
/// <param name="parent">Parent control.</param>
public UpDownButton_Up(Base parent)
: base(parent)
{
SetSize(7, 7);
}
/// <summary>
/// Renders the control using specified skin.
/// </summary>
/// <param name="skin">Skin to use.</param>
protected override void Render(Skin.Base skin)
{
skin.DrawNumericUpDownButton(this, IsDepressed, true);
}
}
}