Struct quicksilver::graphics::Draw [−][src]
pub struct Draw { /* fields omitted */ }
A single drawable item, with a transform, a blend color, and a depth
Methods
impl Draw
[src]
impl Draw
pub fn image(image: &Image, position: Vector) -> Draw
[src]
pub fn image(image: &Image, position: Vector) -> Draw
Create a sprite with an image
pub fn shape(shape: Shape) -> Draw
[src]
pub fn shape(shape: Shape) -> Draw
Create a sprite from a given shape
pub fn point(position: Vector) -> Draw
[src]
pub fn point(position: Vector) -> Draw
Create a sprite with a point
pub fn rectangle(rectangle: Rectangle) -> Draw
[src]
pub fn rectangle(rectangle: Rectangle) -> Draw
Create a sprite with a rectangle
pub fn circle(circle: Circle) -> Draw
[src]
pub fn circle(circle: Circle) -> Draw
Create a sprite with a circle
pub fn with_position(self, position: Vector) -> Draw
[src]
pub fn with_position(self, position: Vector) -> Draw
Change the position of a sprite
pub fn with_color(self, color: Color) -> Draw
[src]
pub fn with_color(self, color: Color) -> Draw
Change the color of a sprite
pub fn with_transform(self, transform: Transform) -> Draw
[src]
pub fn with_transform(self, transform: Transform) -> Draw
Change the transform of a sprite
pub fn with_z<T: Scalar>(self, z: T) -> Draw
[src]
pub fn with_z<T: Scalar>(self, z: T) -> Draw
Change the depth of a sprite
Trait Implementations
impl Clone for Draw
[src]
impl Clone for Draw
fn clone(&self) -> Draw
[src]
fn clone(&self) -> Draw
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Draw
[src]
impl Debug for Draw
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drawable for Draw
[src]
impl Drawable for Draw