pub struct BackgroundLayer { /* private fields */ }Expand description
A solid background fill used as the map clear colour.
This is the first small step toward a broader MapLibre-style layer taxonomy: renderers can derive their frame clear colour from the bottom-most scene stack instead of hard-coding a sky colour.
Implementations§
Trait Implementations§
Source§impl Clone for BackgroundLayer
impl Clone for BackgroundLayer
Source§fn clone(&self) -> BackgroundLayer
fn clone(&self) -> BackgroundLayer
Returns a duplicate of the value. Read more
1.0.0 · 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 BackgroundLayer
impl Debug for BackgroundLayer
Source§impl Layer for BackgroundLayer
impl Layer for BackgroundLayer
Source§fn set_visible(&mut self, visible: bool)
fn set_visible(&mut self, visible: bool)
Toggle visibility on or off.
Source§fn set_opacity(&mut self, opacity: f32)
fn set_opacity(&mut self, opacity: f32)
Set the layer opacity. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Borrow the layer as
&mut dyn Any for mutable concrete type access.Auto Trait Implementations§
impl Freeze for BackgroundLayer
impl RefUnwindSafe for BackgroundLayer
impl Send for BackgroundLayer
impl Sync for BackgroundLayer
impl Unpin for BackgroundLayer
impl UnsafeUnpin for BackgroundLayer
impl UnwindSafe for BackgroundLayer
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