mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
24 lines
487 B
C#
24 lines
487 B
C#
using Eto.Forms;
|
|
|
|
namespace NAPS2.EtoForms.Widgets;
|
|
|
|
public interface IListView<T> : Util.ISelectable<T> where T : notnull
|
|
{
|
|
Control Control { get; }
|
|
|
|
ContextMenu? ContextMenu { get; set; }
|
|
|
|
Eto.Drawing.Size ImageSize { get; set; }
|
|
|
|
event EventHandler SelectionChanged;
|
|
|
|
event EventHandler ItemClicked;
|
|
|
|
event EventHandler<DropEventArgs> Drop;
|
|
|
|
void SetItems(IEnumerable<T> items);
|
|
|
|
void ApplyDiffs(ListViewDiffs<T> diffs);
|
|
|
|
void RegenerateImages();
|
|
} |