Switch to MVP pattern
This commit is contained in:
34
Eve-O-Preview/Thumbnail/Interface/IThumbnail.cs
Normal file
34
Eve-O-Preview/Thumbnail/Interface/IThumbnail.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace EveOPreview.Thumbnails
|
||||
{
|
||||
public interface IThumbnail
|
||||
{
|
||||
IntPtr Id { get; }
|
||||
|
||||
bool IsZoomEnabled { get; set; }
|
||||
bool IsPreviewEnabled { get; set; }
|
||||
bool IsOverlayEnabled { get; set; }
|
||||
|
||||
bool IsPreviewHandle(IntPtr handle);
|
||||
|
||||
void ShowThumbnail();
|
||||
void HideThumbnail();
|
||||
void CloseThumbnail();
|
||||
|
||||
void RegisterShortcut(string shortcut);
|
||||
|
||||
// TODO Turn this into a property
|
||||
void SetLabel(string label);
|
||||
string GetLabel();
|
||||
|
||||
void SetLocation(Point location);
|
||||
Point GetLocation();
|
||||
|
||||
void SetOpacity(double opacity);
|
||||
void SetTopMost(bool topmost);
|
||||
void SetWindowFrames(bool enable);
|
||||
void SetSize(Size size);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user