1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-19 09:45:54 -04:00
OpenDiablo2/OpenDiablo2.Common/Interfaces/IButton.cs

25 lines
601 B
C#
Raw Normal View History

2018-11-26 18:18:23 -05:00
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenDiablo2.Common.Interfaces
{
public delegate void OnActivateDelegate();
public delegate void OnToggleDelegate(bool isToggled);
public interface IButton : IDisposable
{
OnActivateDelegate OnActivate { get; set; }
bool Enabled { get; set; }
Point Location { get; set; }
OnToggleDelegate OnToggle { get; set; }
string Text { get; set; }
void Update();
void Render();
}
}