pub struct WaveformBarRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub color: [f32; 4],
}Expand description
One waveform bar’s rectangle.
Coordinates use a y-up convention: x/y is the bottom-left
corner; width/height are non-negative.
Fields§
§x: f32Left edge.
y: f32Bottom edge (y-up).
width: f32Bar width — always > 0 when layout.bar_width > 0.
height: f32Bar height — 0 for silence, layout.max_height for |sample| = 1.0.
color: [f32; 4]RGBA color, each component in [0, 1].
Trait Implementations§
Source§impl Clone for WaveformBarRect
impl Clone for WaveformBarRect
Source§fn clone(&self) -> WaveformBarRect
fn clone(&self) -> WaveformBarRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WaveformBarRect
impl Debug for WaveformBarRect
Source§impl PartialEq for WaveformBarRect
impl PartialEq for WaveformBarRect
Source§fn eq(&self, other: &WaveformBarRect) -> bool
fn eq(&self, other: &WaveformBarRect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WaveformBarRect
impl StructuralPartialEq for WaveformBarRect
Auto Trait Implementations§
impl Freeze for WaveformBarRect
impl RefUnwindSafe for WaveformBarRect
impl Send for WaveformBarRect
impl Sync for WaveformBarRect
impl Unpin for WaveformBarRect
impl UnsafeUnpin for WaveformBarRect
impl UnwindSafe for WaveformBarRect
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