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.
36 lines
966 B
C#
36 lines
966 B
C#
using System;
|
|
using Gwen.Control;
|
|
|
|
namespace Gwen.ControlInternal
|
|
{
|
|
/// <summary>
|
|
/// ComboBox arrow.
|
|
/// </summary>
|
|
public class DownArrow : Base
|
|
{
|
|
private readonly ComboBox m_ComboBox;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DownArrow"/> class.
|
|
/// </summary>
|
|
/// <param name="parent">Parent control.</param>
|
|
public DownArrow(ComboBox parent)
|
|
: base(parent) // or Base?
|
|
{
|
|
MouseInputEnabled = false;
|
|
SetSize(15, 15);
|
|
|
|
m_ComboBox = parent;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Renders the control using specified skin.
|
|
/// </summary>
|
|
/// <param name="skin">Skin to use.</param>
|
|
protected override void Render(Skin.Base skin)
|
|
{
|
|
skin.DrawComboBoxArrow(this, m_ComboBox.IsHovered, m_ComboBox.IsDepressed, m_ComboBox.IsOpen, m_ComboBox.IsDisabled);
|
|
}
|
|
}
|
|
}
|