Delegate PaintView
- Namespace
- CADability
- Assembly
- CADability.dll
Handler for the paint events of a view (e.g. PaintBackgroundEvent or PaintSelectEvent), registered via SetPaintHandler(DrawingAspect, PaintView). The view calls it during its paint cycle after the model has been drawn, so that actions can draw additional objects (selection, feedback, active objects) with the paint engine of the view.
public delegate void PaintView(Rectangle Extent, IView View, IPaintTo3D PaintTo3D)
Parameters
ExtentRectangleThe clip rectangle of the paint event in client coordinates of the canvas
ViewIViewThe view that is being painted
PaintTo3DIPaintTo3DThe paint engine of the view, already set up with the projection of the view
Constructors
PaintView(object, nint)
public PaintView(object @object, nint method)
Parameters
Methods
BeginInvoke(Rectangle, IView, IPaintTo3D, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(Rectangle Extent, IView View, IPaintTo3D PaintTo3D, AsyncCallback callback, object @object)
Parameters
ExtentRectangleViewIViewPaintTo3DIPaintTo3DcallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Invoke(Rectangle, IView, IPaintTo3D)
public virtual void Invoke(Rectangle Extent, IView View, IPaintTo3D PaintTo3D)
Parameters
ExtentRectangleViewIViewPaintTo3DIPaintTo3D