Current draw state settings.
Creates a new drawing context.
Creates a new context with absolute transform in point coordinates.
This function assumes the default coordinate system
being centered with x axis pointing to the right
and y axis pointing up.
Returns a drawing context
with origin in the upper left corner
and x axis pointing to the right
and y axis pointing down.
Creates a new drawing context in absolute coordinates.
This function assumes the default coordinate system
being centered with x axis pointing to the right
and y axis pointing up.
Returns a drawing context
with origin in the upper left corner
and x axis pointing to the right
and y axis pointing down.
Moves the current transform to the view coordinate system.
This is usually [0.0, 0.0] in the upper left corner
with the x axis pointing to the right
and the y axis pointing down.
Moves the current transform to the default coordinate system.
This is usually [0.0, 0.0] in the center
with the x axis pointing to the right
and the y axis pointing up.
Stores the current transform as new view.
Computes the current view size.
Appends transform to the current one.
Prepends transform to the current one.
Translate x and y in local coordinates.
Rotate radians in local coordinates.
Orients x axis to look at point locally. Read more
Scales in local coordinates.
Shears in local coordinates.
Rotates degrees in local coordinates.
Translate position in local coordinates.
Orients x axis to look at point locally.
Scales in local coordinates.
Scales in both directions in local coordinates.
Flips vertically in local coordinates.
Flips horizontally in local coordinates.
Flips horizontally and vertically in local coordinates.
Shears in local coordinates.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static