pub struct MapRenderState {
pub layers: Vec<MapLayer>,
pub background_color: (u8, u8, u8, u8),
}Expand description
The complete rendering state for a map (all layers).
Fields§
§layers: Vec<MapLayer>Ordered stack of map layers. The compositor sorts them by
MapLayer::z_index before drawing.
background_color: (u8, u8, u8, u8)RGBA background colour used to fill the framebuffer before any layer is drawn.
Implementations§
Trait Implementations§
Source§impl Clone for MapRenderState
impl Clone for MapRenderState
Source§fn clone(&self) -> MapRenderState
fn clone(&self) -> MapRenderState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapRenderState
impl Debug for MapRenderState
Auto Trait Implementations§
impl Freeze for MapRenderState
impl RefUnwindSafe for MapRenderState
impl Send for MapRenderState
impl Sync for MapRenderState
impl Unpin for MapRenderState
impl UnsafeUnpin for MapRenderState
impl UnwindSafe for MapRenderState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more