[][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 set_shader(&mut self, shader: &'s mut Shader2D)[src]

pub fn remove_active_shader(&mut self)[src]

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

pub fn arc(&mut self, draw_mode: DrawMode, arc: Arc)[src]

pub fn circle(&mut self, draw_mode: DrawMode, circle: Circle)[src]

pub fn ellipse(&mut self, draw_mode: DrawMode, ellipse: Ellipse)[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 rectangle(&mut self, draw_mode: DrawMode, rectangle: Rectangle)[src]

pub fn image<T: Texture + Copy>(&mut self, rectangle: Rectangle, texture: T)[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>,