Table of Contents

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

true if this instance is attached; otherwise, false.

IsEmpty

Gets a value indicating whether this instance is empty.

public bool IsEmpty { get; }

Property Value

bool

true if 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

true if 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

true if this instance is rendering; otherwise, false.

LayoutBound

Absolute layout rectangle cooridnate for renderable

public RectangleF LayoutBound { get; set; }

Property Value

RectangleF

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

IRenderHost

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

host IRenderHost

The 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

host IRenderHost

The target.

Returns

bool

OnDetach()

Called when [detach].

protected virtual void OnDetach()

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

OnLayoutBoundChanged(RectangleF)

protected virtual void OnLayoutBoundChanged(RectangleF layoutBound)

Parameters

layoutBound RectangleF

Render(RenderContext2D)

Renders the specified context.

public abstract void Render(RenderContext2D context)

Parameters

context RenderContext2D

The context.

SetAffectsRender<T>(ref T, T)

protected bool SetAffectsRender<T>(ref T backingField, T value)

Parameters

backingField T
value T

Returns

bool

Type Parameters

T

Events

InvalidateRender

Occurs when [on invalidate renderer].

public event EventHandler<EventArgs>? InvalidateRender

Event Type

EventHandler<EventArgs>