pub struct BackgroundLayer { /* private fields */ }Expand description
Layer that fills the entire screen rectangle with the theme’s chart_background color.
Implementations§
Trait Implementations§
Source§impl Debug for BackgroundLayer
impl Debug for BackgroundLayer
Source§impl Default for BackgroundLayer
impl Default for BackgroundLayer
Source§impl Layer for BackgroundLayer
impl Layer for BackgroundLayer
Source§fn stage(&self) -> LayerStage
fn stage(&self) -> LayerStage
Rendering stage for the layer. Stages define coarse ordering buckets.
Source§fn update(
&mut self,
_data: &ChartData,
_viewport: &Viewport,
_theme: &ChartTheme,
_style: &ChartStyle,
)
fn update( &mut self, _data: &ChartData, _viewport: &Viewport, _theme: &ChartTheme, _style: &ChartStyle, )
Update the layer with new data Read more
Source§fn set_enabled(&mut self, enabled: bool)
fn set_enabled(&mut self, enabled: bool)
Enable or disable the layer
Source§fn render(
&self,
context: &mut RenderContext,
_render_pass: &mut RenderPass<'_>,
) -> Result<()>
fn render( &self, context: &mut RenderContext, _render_pass: &mut RenderPass<'_>, ) -> Result<()>
Render the layer to the GPU context Read more
Source§fn needs_render(&self) -> bool
fn needs_render(&self) -> bool
Check if the layer needs to be rendered Read more
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Check if the layer is currently enabled
Source§fn clip_rect(&self, viewport: &Viewport) -> Rect
fn clip_rect(&self, viewport: &Viewport) -> Rect
Default clipping rectangle for this layer. Read more
Source§fn get_config(&self) -> Value
fn get_config(&self) -> Value
Get layer configuration as a JSON-serializable value Read more
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