[−][src]Trait coffee::graphics::IntoQuad
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.