[][src]Struct solstice_2d::Graphics2DLock

#[must_use]pub struct Graphics2DLock<'a, 's> {
    pub transforms: Transforms,
    // some fields omitted
}

Fields

transforms: Transforms

Implementations

impl<'a, 's> Graphics2DLock<'a, 's>[src]

pub fn clear<C: Into<[f32; 4]>>(&mut self, color: C)[src]

pub fn set_shader(&mut self, shader: &'s mut Shader2D)[src]

pub fn remove_active_shader(&mut self)[src]

pub fn set_canvas(&mut self, canvas: &'s Canvas)[src]

pub fn unset_canvas(&mut self)[src]

pub fn set_color<C: Into<[f32; 4]>>(&mut self, color: C)[src]

pub fn line(&mut self, x1: f32, y1: f32, x2: f32, y2: f32)[src]

pub fn lines<P: Into<Point>, I: IntoIterator<Item = P>>(&mut self, points: I)[src]

pub fn image<G, T>(&mut self, geometry: G, texture: T) where
    G: Geometry,
    T: Texture + Copy
[src]

pub fn image_with_transform<G, T>(
    &mut self,
    geometry: G,
    texture: T,
    transform: Transform
) where
    G: Geometry,
    T: Texture + Copy
[src]

pub fn image_with_color<G, T, C>(&mut self, geometry: G, texture: T, color: C) where
    G: Geometry,
    T: Texture + Copy,
    C: Into<[f32; 4]>, 
[src]

pub fn image_with_transform_and_color<G, T, C>(
    &mut self,
    geometry: G,
    texture: T,
    transform: Transform,
    color: C
) where
    G: Geometry,
    T: Texture + Copy,
    C: Into<[f32; 4]>, 
[src]

pub fn draw<G: Geometry>(&mut self, draw_mode: DrawMode, geometry: G)[src]

pub fn draw_with_transform<G>(
    &mut self,
    draw_mode: DrawMode,
    geometry: G,
    transform: Transform
) where
    G: Geometry
[src]

pub fn draw_with_color<G, C>(
    &mut self,
    draw_mode: DrawMode,
    geometry: G,
    color: C
) where
    G: Geometry,
    C: Into<[f32; 4]>, 
[src]

pub fn draw_with_transform_and_color<G, C>(
    &mut self,
    draw_mode: DrawMode,
    geometry: G,
    transform: Transform,
    color: C
) where
    G: Geometry,
    C: Into<[f32; 4]>, 
[src]

pub fn print<S: AsRef<str>>(
    &mut self,
    font: FontId,
    text: S,
    x: f32,
    y: f32,
    scale: f32
)
[src]

Trait Implementations

impl<'_, '_> Drop for Graphics2DLock<'_, '_>[src]

Auto Trait Implementations

impl<'a, 's> RefUnwindSafe for Graphics2DLock<'a, 's>

impl<'a, 's> Send for Graphics2DLock<'a, 's>

impl<'a, 's> Sync for Graphics2DLock<'a, 's>

impl<'a, 's> Unpin for Graphics2DLock<'a, 's>

impl<'a, 's> !UnwindSafe for Graphics2DLock<'a, 's>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,