File NativePanel.cs
File List > LemonUI > LemonUI > Menus > NativePanel.cs
Go to the documentation of this file
using LemonUI.Elements;
using System.Drawing;
namespace LemonUI.Menus
{
public abstract class NativePanel
{
#region Properties
public virtual bool Visible { get; set; } = true;
public virtual bool Clickable { get; } = false;
public ScaledTexture Background { get; } = new ScaledTexture("commonmenu", "gradient_bgd");
#endregion
#region Functions
public virtual void Recalculate(PointF position, float width)
{
Background.Position = position;
}
public virtual void Process()
{
Background.Draw();
}
#endregion
}
}