pub struct PlayerViewGeometry {Show 18 fields
pub total_rect: Rect,
pub controls_rect: Rect,
pub play_rect: Rect,
pub skip_back_rect: Rect,
pub skip_fwd_rect: Rect,
pub step_back_rect: Rect,
pub step_fwd_rect: Rect,
pub mute_rect: Rect,
pub volume_rect: Rect,
pub volume_track_rect: Rect,
pub speed_rect: Rect,
pub aux_rect: Rect,
pub scrubber_track_rect: Rect,
pub scrubber_hit_rect: Rect,
pub elapsed_pos: Pos2,
pub remaining_pos: Pos2,
pub knob_pos: Pos2,
pub corner_radius: f32,
}Expand description
Resolved layout geometry for crate::controls::MacPlayerView controls.
Fields§
§total_rect: RectTotal allocated container rectangle for the player view.
controls_rect: RectBounding rectangle for the controls (floating HUD pod, inline bottom bar, or minimal pill).
play_rect: RectCenter transport play/pause hit rectangle.
skip_back_rect: RectSkip 15s backward hit rectangle.
skip_fwd_rect: RectSkip 15s forward hit rectangle.
step_back_rect: RectFrame step backward hit rectangle.
step_fwd_rect: RectFrame step forward hit rectangle.
mute_rect: RectAudio mute button hit rectangle.
volume_rect: RectAudio volume slider container rectangle.
volume_track_rect: RectAudio volume slider track rectangle.
speed_rect: RectPlayback speed selector hit rectangle.
aux_rect: RectAuxiliary AirPlay / PiP button hit rectangle.
scrubber_track_rect: RectTimeline scrubber track rectangle.
scrubber_hit_rect: RectTimeline scrubber interactive hit area.
elapsed_pos: Pos2Elapsed timecode label origin position.
remaining_pos: Pos2Remaining timecode label origin position.
knob_pos: Pos2Playhead knob center position.
corner_radius: f32Corner radius of the controls container.
Trait Implementations§
Source§impl Clone for PlayerViewGeometry
impl Clone for PlayerViewGeometry
Source§impl Debug for PlayerViewGeometry
impl Debug for PlayerViewGeometry
Source§impl PartialEq for PlayerViewGeometry
impl PartialEq for PlayerViewGeometry
impl StructuralPartialEq for PlayerViewGeometry
Auto Trait Implementations§
impl Forget for PlayerViewGeometry
impl Freeze for PlayerViewGeometry
impl RefUnwindSafe for PlayerViewGeometry
impl Send for PlayerViewGeometry
impl Sync for PlayerViewGeometry
impl Unpin for PlayerViewGeometry
impl UnsafeUnpin for PlayerViewGeometry
impl UnwindSafe for PlayerViewGeometry
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
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> ⓘ
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> ⓘ
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