pub struct CamLayout {
pub center: Vec2,
pub radius: f32,
}Expand description
Position + size of the circular webcam bubble within the composed
frame. All coordinates are NDC — (-1, -1) bottom-left,
(1, 1) top-right.
Fields§
§center: Vec2Centre of the circle in NDC.
radius: f32Radius in NDC units. The default 0.18 makes the bubble
roughly 18% of the viewport’s shorter side, matching the
Screen Studio convention.
Implementations§
Source§impl CamLayout
impl CamLayout
Sourcepub const BOTTOM_RIGHT: Self
pub const BOTTOM_RIGHT: Self
Bottom-right corner with a 24 px-equivalent NDC margin
(~0.05 in [-1, 1] space) and a radius of 0.18 (~18% of
viewport).
Sourcepub const BOTTOM_LEFT: Self
pub const BOTTOM_LEFT: Self
Bottom-left variant — the current default. Mirrors the
Screen Studio bottom-left cam placement convention; flip to
Self::BOTTOM_RIGHT for right-handed presenters.
Trait Implementations§
impl Copy for CamLayout
impl StructuralPartialEq for CamLayout
Auto Trait Implementations§
impl Freeze for CamLayout
impl RefUnwindSafe for CamLayout
impl Send for CamLayout
impl Sync for CamLayout
impl Unpin for CamLayout
impl UnsafeUnpin for CamLayout
impl UnwindSafe for CamLayout
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().