CPF/CPF.ReoGrid/CellTypes/ICellBody.cs

52 lines
860 B
C#
Raw Permalink Normal View History

2024-06-24 10:15:59 +08:00
using System;
using CPF.Drawing;
using CPF.ReoGrid.Events;
using CPF.ReoGrid.Interaction;
using CPF.ReoGrid.Rendering;
namespace CPF.ReoGrid.CellTypes
{
public interface ICellBody
{
void OnSetup(Cell cell);
Rect Bounds { get; set; }
void OnBoundsChanged();
bool AutoCaptureMouse();
bool OnMouseDown(CellMouseEventArgs e);
bool OnMouseMove(CellMouseEventArgs e);
bool OnMouseUp(CellMouseEventArgs e);
bool OnMouseEnter(CellMouseEventArgs e);
bool OnMouseLeave(CellMouseEventArgs e);
void OnMouseWheel(CellMouseEventArgs e);
bool OnKeyDown(KeyCode e);
bool OnKeyUp(KeyCode e);
void OnPaint(CellDrawingContext dc);
bool OnStartEdit();
bool DisableWhenCellReadonly { get; }
object OnEndEdit(object data);
void OnGotFocus();
void OnLostFocus();
object OnSetData(object data);
ICellBody Clone();
}
}