Table of Contents

Class QuadExtensions

public static class QuadExtensions
Inheritance
QuadExtensions

Methods

Color(ref Quad, Color?)

Set the color for this Quad.

public static ref Quad Color(this ref Quad @this, Color? color)

Parameters

this Quad
color Color?

Returns

Quad

Color(ref Quad, Color?, Color?, Color?, Color?)

Set the color for this Quad.

public static ref Quad Color(this ref Quad @this, Color? color1, Color? color2, Color? color3, Color? color4)

Parameters

this Quad
color1 Color?
color2 Color?
color3 Color?
color4 Color?

Returns

Quad

Position(ref Quad, float3, float3, float3, float3)

Set the position for this Quad.

public static ref Quad Position(this ref Quad @this, float3 p1, float3 p2, float3 p3, float3 p4)

Parameters

this Quad
p1 float3
p2 float3
p3 float3
p4 float3

Returns

Quad

Ref(Quad)

Returns a reference to the previously created Quad visual.
If you need to keep a reference to a long-lived visual, this will allow you to modify or delete the visual at some point in the future.

Important: only use this directly after creating a visual, as it may not be valid beyond that.

public static VisualRef<Quad> Ref(this Quad @this)

Parameters

this Quad

Returns

VisualRef<Quad>

SetDefault(ref Quad)

public static ref Quad SetDefault(this ref Quad @this)

Parameters

this Quad

Returns

Quad