pub struct ReplayLayout {
pub control_bar_height: f32,
pub btn_size: f32,
pub small_button_size: f32,
pub btn_spacing: f32,
pub progress_bar_height: f32,
pub progress_bar_width: Option<f32>,
pub padding: f32,
pub speed_dropdown_width: f32,
pub date_display_width: f32,
}Expand description
Layout configuration for replay controls
Fields§
§control_bar_height: f32Height of the replay control bar
btn_size: f32Button size
Small button size (for step btns)
btn_spacing: f32Spacing between btns
progress_bar_height: f32Progress bar height
progress_bar_width: Option<f32>Progress bar width (if fixed, None for flexible)
padding: f32Padding inside the control bar
speed_dropdown_width: f32Speed dropdown width
date_display_width: f32Date display width
Trait Implementations§
Source§impl Clone for ReplayLayout
impl Clone for ReplayLayout
Source§fn clone(&self) -> ReplayLayout
fn clone(&self) -> ReplayLayout
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 ReplayLayout
impl Debug for ReplayLayout
Auto Trait Implementations§
impl Freeze for ReplayLayout
impl RefUnwindSafe for ReplayLayout
impl Send for ReplayLayout
impl Sync for ReplayLayout
impl Unpin for ReplayLayout
impl UnsafeUnpin for ReplayLayout
impl UnwindSafe for ReplayLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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