pub struct DrawingSprite<S: DrawSpriteTrait> { /* private fields */ }

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Get the pixel at the given location, but bypassing any bounds check Read more
Set the pixel at the given location, but bypassing any bounds check Read more
Get the size of the target
Get the Pixel Data at the given coordinates
Set the pixel data at the given coordinates to the given Color Will use the current PixelMode
Get The textsheet (A Sprite)
Clear the Sprite With the given Color
Return the PixelMode
Get the Blend Factor Used for alpha calculations
Set the PixelMode
Set the Blend Factor Used for alpha calculations

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
Draw a dotted line
Draw a rectangle with the top left corner at (x, y) and the bottom right corner at (x + w, y + h) (both inclusive) This is the dotted form
Draw the edges of a triangle between the three points This is the dotted form

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Draw text to the screen scale must be >= 1 The textsize will be equal to scale * 8 for the height and scale * 8 * text.len() for the width This will handle \n treating it as a new line, but wont do any newline stuff if it is drawing out of the screen
Draw a line between two points, You don’t need to do anything with the points for it to work, it will swap them it needed.
Draw a rectangle with the top left corner at (x, y) and the bottom right corner at (x + w, y + h) (both inclusive)
Fill a rectangle with the top left corner at (x, y) and the bottom right corner at (x + w, y + h) (both inclusive)
Draw a circle with center (x, y) and raduis r
Fill a circle with center (x, y) and raduis r
Draw the edges of a triangle between the three points
Fill the given triangle
Draw a Sprite with the top left corner at (x, y) the flip arguement will allow fliping of the axis flip: (horizontal, vertical) scale is the scale of the result (must be >= 1)
Draw a chunk of the given Sprite onto the Target coords is the top left corner of the Target o is the Top left corner of the Sprite Chunk and size is the (width, height) of the chunk flip and scale is the same as SpriteTrait::draw_sprite()
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.