mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
Clean up surface methods
This commit is contained in:
parent
b6ae224952
commit
0fa0b37086
2 changed files with 7 additions and 10 deletions
|
@ -163,7 +163,6 @@ namespace Greenshot.Base.Interfaces
|
|||
|
||||
void SendMessageEvent(object source, SurfaceMessageTyp messageType, string message);
|
||||
void ResizeCanvas(int left, int right, int top, int bottom);
|
||||
void RecordElementMoved();
|
||||
void ApplyBitmapEffect(IEffect effect);
|
||||
void RemoveCursor();
|
||||
bool HasCursor { get; }
|
||||
|
|
|
@ -972,6 +972,13 @@ namespace Greenshot.Editor.Drawing
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the canvas to a new size using the given bounds.
|
||||
/// </summary>
|
||||
/// <param name="left"></param>
|
||||
/// <param name="right"></param>
|
||||
/// <param name="top"></param>
|
||||
/// <param name="bottom"></param>
|
||||
public void ResizeCanvas(int left, int right, int top, int bottom)
|
||||
{
|
||||
var resizeEffect = new ResizeCanvasEffect(left, right, top, bottom);
|
||||
|
@ -1433,15 +1440,6 @@ namespace Greenshot.Editor.Drawing
|
|||
}
|
||||
}
|
||||
|
||||
public void RecordElementMoved()
|
||||
{
|
||||
if (!_isSurfaceMoveMadeUndoable)
|
||||
{
|
||||
_isSurfaceMoveMadeUndoable = true;
|
||||
selectedElements.MakeBoundsChangeUndoable(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This event handler is called when the surface is double clicked.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue