mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 11:40:40 -07:00
Moving back to trunk!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
ad265b2c54
commit
8d458998a1
332 changed files with 17647 additions and 9466 deletions
|
@ -32,10 +32,37 @@ namespace Greenshot.Plugin {
|
|||
//public enum HorizontalAlignment {LEFT, CENTER, RIGHT};
|
||||
public enum VerticalAlignment {TOP, CENTER, BOTTOM};
|
||||
|
||||
public enum SurfaceMessageTyp {
|
||||
FileSaved,
|
||||
Error,
|
||||
Info
|
||||
}
|
||||
|
||||
public class SurfaceMessageEventArgs : EventArgs {
|
||||
public SurfaceMessageTyp MessageType {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string Message {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public ISurface Surface {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
public delegate void SurfaceSizeChangeEventHandler(object source);
|
||||
public delegate void SurfaceMessageEventHandler(object source, SurfaceMessageEventArgs eventArgs);
|
||||
|
||||
/// <summary>
|
||||
/// The interface to the Surface object, so Plugins can use it.
|
||||
/// </summary>
|
||||
public interface ISurface {
|
||||
public interface ISurface : IDisposable {
|
||||
event SurfaceSizeChangeEventHandler SurfaceSizeChanged;
|
||||
event SurfaceMessageEventHandler SurfaceMessage;
|
||||
|
||||
/// <summary>
|
||||
/// Get/Set the image to the Surface
|
||||
/// get will give the image as is currently visible
|
||||
|
@ -98,5 +125,10 @@ namespace Greenshot.Plugin {
|
|||
get;
|
||||
set;
|
||||
}
|
||||
string LastSaveFullPath {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
void SendMessageEvent(object source, SurfaceMessageTyp messageType, string message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue