BufferedSurface

Struct BufferedSurface 

Source
pub struct BufferedSurface<U> { /* private fields */ }
Expand description

A thread-safe Surface implementation where changes are buffered before they are committed in batches

Trait Implementations§

Source§

impl<U> Surface<U> for BufferedSurface<U>

Source§

fn clear_shader(&mut self)

Clears the shader
Source§

fn set_rect(&mut self, rect: Rectangle<Virtual>)

Changes the size of the surface
Source§

fn set_shader<T: Shader<U>>(&mut self, shader: T)

Sets the shader for this surface
Source§

impl<U> Visible for BufferedSurface<U>

Source§

fn set_opacity(&mut self, opacity: u8)

Sets the opacity of this surface, where 0 is completely transparent and 255 is completely opaque
Source§

fn set_visible(&mut self, visible: bool)

Sets the visibility of the surface without adjusting the stored opacity

Auto Trait Implementations§

§

impl<U> Freeze for BufferedSurface<U>

§

impl<U> !RefUnwindSafe for BufferedSurface<U>

§

impl<U> Send for BufferedSurface<U>

§

impl<U> Sync for BufferedSurface<U>

§

impl<U> Unpin for BufferedSurface<U>

§

impl<U> !UnwindSafe for BufferedSurface<U>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.