Files
RemSox/RemSox.Kernel/UI/GUI/UIEelements/Control.cs
T

30 lines
598 B
C#

using RemSox.Shared.UI;
using Cosmos.Kernel.System.Keyboard;
using System.Drawing;
namespace RemSox.Kernel.UI.GUI.UIEelements;
public abstract class Control(string type) : UIElement(type)
{
public Color BackgroundColor
{
get;
set => SetProperty(nameof(BackgroundColor), ref field, value);
} = Color.LightGray;
public Size Size
{
get;
set => SetProperty(nameof(Size), ref field, value);
}
public virtual void HandleMouseEvent(MouseEvent mouseEvent)
{
}
public virtual void HandleKeyEvent(KeyEvent keyEvent)
{
}
}