[][src]Trait coffee::graphics::IntoQuad

pub trait IntoQuad {
    fn into_quad(self, x_unit: f32, y_unit: f32) -> Quad;
}

Turn a type into a quad.

Most methods accept generic types that can be turned into quads. This allows you to use your own quad-based type.

Required methods

fn into_quad(self, x_unit: f32, y_unit: f32) -> Quad

Turns the implementor into a quad.

x_unit and y_unit are conversion factors for the source field. Use them to convert absolute resource coordinates into relative coordinates.

Loading content...

Implementors

impl IntoQuad for Quad[src]

impl IntoQuad for Sprite[src]

Loading content...