mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
42
Gui/UILib/TableCell.cs
Normal file
42
Gui/UILib/TableCell.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Cosmos.System.Graphics;
|
||||
using System.Drawing;
|
||||
|
||||
namespace CMLeonOS.Gui.UILib
|
||||
{
|
||||
internal class TableCell
|
||||
{
|
||||
internal TableCell(string text)
|
||||
{
|
||||
Text = text;
|
||||
}
|
||||
|
||||
internal TableCell(string text, object tag)
|
||||
{
|
||||
Text = text;
|
||||
Tag = tag;
|
||||
}
|
||||
|
||||
internal TableCell(Bitmap image, string text)
|
||||
{
|
||||
Image = image;
|
||||
Text = text;
|
||||
}
|
||||
|
||||
internal TableCell(Bitmap image, string text, object tag)
|
||||
{
|
||||
Image = image;
|
||||
Text = text;
|
||||
Tag = tag;
|
||||
}
|
||||
|
||||
internal Bitmap Image { get; set; }
|
||||
|
||||
internal string Text { get; set; } = string.Empty;
|
||||
|
||||
internal object Tag { get; set; }
|
||||
|
||||
internal Color? BackgroundColourOverride { get; set; } = null;
|
||||
|
||||
internal Color? ForegroundColourOverride { get; set; } = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user