pub struct TimeAxisLayer { /* private fields */ }Expand description
Layer for rendering time axis
Implementations§
Source§impl TimeAxisLayer
impl TimeAxisLayer
pub fn new() -> Self
Sourcepub fn set_axis_height(&mut self, height: f32)
pub fn set_axis_height(&mut self, height: f32)
Set the height of the time axis
Trait Implementations§
Source§impl Debug for TimeAxisLayer
impl Debug for TimeAxisLayer
Source§impl Default for TimeAxisLayer
impl Default for TimeAxisLayer
Source§impl Layer for TimeAxisLayer
impl Layer for TimeAxisLayer
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 TimeAxisLayer
impl RefUnwindSafe for TimeAxisLayer
impl Send for TimeAxisLayer
impl Sync for TimeAxisLayer
impl Unpin for TimeAxisLayer
impl UnsafeUnpin for TimeAxisLayer
impl UnwindSafe for TimeAxisLayer
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