pub struct Draw2D {}

Implementations

Draws the mask

Draws the given rectangle

Draws the given rectangle

Blend the given rectangle

Draws the outline of a given rectangle

Draws a circle

Draws a circle with a border of a given size

Draws a rounded rect

Blends a rounded rect

Draws a rounded rect with a border

Draws the given rectangle

Draws a text aligned inside a rect

Blends a text aligned inside a rect and blends it with the existing background

Draws the given text

Returns the size of the given text

Copies rect from the source frame into the dest frame

Blends rect from the source frame into the dest frame

Blends rect from the source frame into the dest frame and honors the safe rect

Scale a chunk to the destination size

Smoothstep for f64

Mixes two colors based on v

Draw hover help

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.