pub struct RangeBarLayer { /* private fields */ }Expand description
Layer for rendering range bar charts (candlesticks, box plots, etc.)
Implementations§
Source§impl RangeBarLayer
impl RangeBarLayer
pub fn new() -> Self
pub fn with_config(config: RangeBarConfig) -> Self
pub fn with_style(style: RangeBarStyle) -> Self
Trait Implementations§
Source§impl Debug for RangeBarLayer
impl Debug for RangeBarLayer
Source§impl Default for RangeBarLayer
impl Default for RangeBarLayer
Source§impl Layer for RangeBarLayer
impl Layer for RangeBarLayer
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 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 set_enabled(&mut self, enabled: bool)
fn set_enabled(&mut self, enabled: bool)
Enable or disable the layer
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 RangeBarLayer
impl RefUnwindSafe for RangeBarLayer
impl Send for RangeBarLayer
impl Sync for RangeBarLayer
impl Unpin for RangeBarLayer
impl UnsafeUnpin for RangeBarLayer
impl UnwindSafe for RangeBarLayer
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