1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace PaintDotNet.Measurement
- {
- public interface IDocumentWorkspace
- {
- Document GetDocument();
- IAppWorkspace GetAppWorkspace();
- Selection GetSelection();
- Layer GetActiveLayer();
- int GetActiveLayerIndex();
- void SetActiveLayerIndex(int value);
- bool Focused();
- PointF DocumentToClient(PointF pointF);
- void Focus();
- Surface BorrowScratchSurface(string v);
- void ReturnScratchSurface(Surface scratchSurface);
- PointF GetDocumentScrollPositionF();
- RectangleF GetVisibleDocumentRectangleF();
- void SetDocumentScrollPositionF(PointF newScroll);
- void SetStaticToolData(Type type, object data);
- object GetStaticToolData(Type type);
- void UpdateStatusBarToToolHelpText(Tool tool);
- void Update();
- SurfaceBoxRendererList GetRendererList();
- Tool GetTool();
- void SetStatus(string statusText, ImageResource statusIcon);
- object FindForm();
- Control GetThis();
- void InvalidateFromTool(bool v);
- void PerformDocumentMouseMove(StylusEventArgs stylusEventArgs);
- void PerformDocumentMouseMove(MouseEventArgs mouseEventArgs);
- Point UnscalePoint(Point stylusLoc);
- PointF UnscalePoint(PointF stylusLocF);
- Point PointToScreenFromTool(Point point);
- double GetRatio();
- Type GetToolType();
- ToolInfo[] GetToolInfos();
- void SetToolFromType(Type toolType);
- void PushNullTool();
- Type PreviousActiveToolType();
- void PopNullTool();
- void SetDocument(Document oldDocument);
- void ExecuteFunction(HistoryFunction deselectFunction);
- UserControl2 GetUserControl();
- void ZoomIn();
- void RecenterView(Point point);
- void ZoomToRectangle(Rectangle zoomTo);
- void ZoomOut();
- bool Visible();
- void SetEnableSelectionOutline(bool enableOutline);
- void ResetOutlineWhiteOpacity();
- void SetDocumentCenterPointF(PointF newCenterPt);
- void SetEnableSelectionTinting(bool v);
- void InvalidateSurface(Rectangle rectangle);
- void UpdateStatusBarToToolHelpText();
- SurfaceBox GetSurfaceBox();
- }
- }
|