Struct peach::render::Graphics [−][src]
pub struct Graphics { /* fields omitted */ }
Implementations
impl Graphics
[src]
impl Graphics
[src]pub fn save(&mut self)
[src]
pub fn restore(&mut self)
[src]
pub fn fill<C>(&mut self, color: C) where
C: Into<Color>,
[src]
C: Into<Color>,
pub fn no_fill(&mut self)
[src]
pub fn stroke_weight(&mut self, weight: f32)
[src]
pub fn stroke<C>(&mut self, color: C) where
C: Into<Color>,
[src]
C: Into<Color>,
pub fn no_stroke(&mut self)
[src]
pub fn anchor_mode(&mut self, mode: AnchorMode)
[src]
pub fn rotate(&mut self, angle: Angle)
[src]
pub fn translate<V>(&mut self, by: V) where
V: Into<Vector>,
[src]
V: Into<Vector>,
pub fn rect<P, S>(&mut self, position: P, size: S) where
P: Into<Point>,
S: Into<Size>,
[src]
P: Into<Point>,
S: Into<Size>,
pub fn square<P>(&mut self, position: P, size: Scalar) where
P: Into<Point>,
[src]
P: Into<Point>,
Auto Trait Implementations
impl RefUnwindSafe for Graphics
impl Send for Graphics
impl Sync for Graphics
impl Unpin for Graphics
impl UnwindSafe for Graphics
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]