Class RenderCore2D
- Namespace
- HelixToolkit.SharpDX.Core2D
- Assembly
- HelixToolkit.SharpDX.dll
public abstract class RenderCore2D : DisposeObject, IDisposable
- Inheritance
-
RenderCore2D
- Implements
- Derived
- Inherited Members
Properties
IsAttached
Gets or sets a value indicating whether this instance is attached.
public bool IsAttached { get; }
Property Value
- bool
trueif this instance is attached; otherwise,false.
IsEmpty
Gets a value indicating whether this instance is empty.
public bool IsEmpty { get; }
Property Value
- bool
trueif this instance is empty; otherwise,false.
IsMouseOver
Gets or sets a value indicating whether this instance is mouse over.
public bool IsMouseOver { get; set; }
Property Value
- bool
trueif this instance is mouse over; otherwise,false.
IsRendering
Gets or sets a value indicating whether this instance is rendering.
public bool IsRendering { get; set; }
Property Value
- bool
trueif this instance is rendering; otherwise,false.
LayoutBound
Absolute layout rectangle cooridnate for renderable
public RectangleF LayoutBound { get; set; }
Property Value
LayoutClippingBound
Gets or sets the layout clipping bound, includes border.
public RectangleF LayoutClippingBound { get; set; }
Property Value
- RectangleF
The layout clipping bound.
LocalTransform
Gets or sets the local transform. This only transform local position. Same as RenderTransform
public Matrix3x2 LocalTransform { get; set; }
Property Value
- Matrix3x2
The local transform.
RenderHost
public IRenderHost? RenderHost { get; }
Property Value
Transform
Gets or sets the transform. Transform
public Matrix3x2 Transform { get; set; }
Property Value
- Matrix3x2
The transform.
Methods
Attach(IRenderHost)
Attaches the specified host.
public void Attach(IRenderHost host)
Parameters
hostIRenderHostThe host.
Detach()
Detaches this instance.
public void Detach()
InvalidateRenderer()
Invalidates the renderer.
protected void InvalidateRenderer()
OnAttach(IRenderHost)
Called when [attach].
protected virtual bool OnAttach(IRenderHost host)
Parameters
hostIRenderHostThe target.
Returns
OnDetach()
Called when [detach].
protected virtual void OnDetach()
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
OnLayoutBoundChanged(RectangleF)
protected virtual void OnLayoutBoundChanged(RectangleF layoutBound)
Parameters
layoutBoundRectangleF
Render(RenderContext2D)
Renders the specified context.
public abstract void Render(RenderContext2D context)
Parameters
contextRenderContext2DThe context.
SetAffectsRender<T>(ref T, T)
protected bool SetAffectsRender<T>(ref T backingField, T value)
Parameters
backingFieldTvalueT
Returns
Type Parameters
T
Events
InvalidateRender
Occurs when [on invalidate renderer].
public event EventHandler<EventArgs>? InvalidateRender