mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-09 11:47:21 -05:00
25 lines
601 B
C#
25 lines
601 B
C#
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();
|
|
}
|
|
}
|