Clean up surface methods

This commit is contained in:
Nathan Brown 2022-08-28 22:25:15 -07:00
commit 0fa0b37086
2 changed files with 7 additions and 10 deletions

View file

@ -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; }

View file

@ -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>