pub struct RadarScope { /* private fields */ }Expand description
Radar screen: range rings, a rotating beam with a fading wedge and blips that light up as the beam passes.
§Example
use ratatui::{buffer::Buffer, layout::Rect, widgets::Widget};
use tui_chart::{Blip, RadarScope};
let scope = RadarScope::new([Blip::new(0.1, 0.6), Blip::new(0.7, 0.3)]).phase(0.2);
let area = Rect::new(0, 0, 40, 20);
let mut buf = Buffer::empty(area);
scope.render(area, &mut buf);Implementations§
Source§impl RadarScope
impl RadarScope
Source§impl RadarScope
impl RadarScope
Trait Implementations§
Source§impl Clone for RadarScope
impl Clone for RadarScope
Source§impl Debug for RadarScope
impl Debug for RadarScope
Source§impl Default for RadarScope
impl Default for RadarScope
Source§impl Themed for RadarScope
Available on crate feature theme only.
impl Themed for RadarScope
Available on crate feature
theme only.Source§fn apply_theme(self, theme: &Theme) -> Self
fn apply_theme(self, theme: &Theme) -> Self
Return
self styled from theme. Explicit per-item colors set on the
widget should keep winning over the theme.Source§fn themed(self, provider: &impl ThemeProvider) -> Self
fn themed(self, provider: &impl ThemeProvider) -> Self
Apply the theme produced by any
ThemeProvider.Source§impl Widget for &RadarScope
impl Widget for &RadarScope
Auto Trait Implementations§
impl Forget for RadarScope
impl Freeze for RadarScope
impl Move for RadarScope
impl RefUnwindSafe for RadarScope
impl Send for RadarScope
impl Sync for RadarScope
impl Unpin for RadarScope
impl UnsafeUnpin for RadarScope
impl UnwindSafe for RadarScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more