Skip to main content

VideoWallWindow

Struct VideoWallWindow 

Source
pub struct VideoWallWindow {
    pub pos_x: u16,
    pub pos_y: u16,
    pub width: u16,
    pub height: u16,
    pub raster_w: u16,
    pub raster_h: u16,
}
Expand description

Where a video-wall sink’s window sits, and the picture it was measured against.

The raster travels with the window because only the sender knows what the installer drew against; a sink deriving it from what it happens to be showing would place the window against the wrong picture.

Nothing on the receiving side is guaranteed to check any of this, so VideoWallWindow::validate runs before every send. See crate::Remote::store_video_wall for why that matters.

Fields§

§pos_x: u16

Window origin, horizontal. A multiple of VIDEO_WALL_POS_ALIGN.

§pos_y: u16

Window origin, vertical. No alignment constraint.

§width: u16

Window width. A multiple of VIDEO_WALL_WIDTH_ALIGN, and at least VIDEO_WALL_MIN_SIZE unless it is zero.

§height: u16

Window height, at least VIDEO_WALL_MIN_SIZE unless it is zero. No alignment constraint.

§raster_w: u16

Active picture width the window was measured against.

§raster_h: u16

Active picture height the window was measured against.

Implementations§

Source§

impl VideoWallWindow

Source

pub const fn is_cleared(&self) -> bool

Reports whether this window clears the wall rather than placing one.

Source

pub fn validate(&self) -> Result<(), &'static str>

Checks the geometry the sink is not guaranteed to check itself.

The three alignments follow the sink’s hardware and a live unit reports them over HTTP, so a caller with access to one can read them rather than trust the constants here. The containment rule has no such source: it is checked by the sink’s own HTTP path and by nothing on the mesh path, at any version.

A cleared window passes: zero is the protocol’s word for “clear”, not a window too small to draw.

Trait Implementations§

Source§

impl Clone for VideoWallWindow

Source§

fn clone(&self) -> VideoWallWindow

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for VideoWallWindow

Source§

impl Debug for VideoWallWindow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VideoWallWindow

Source§

fn default() -> VideoWallWindow

Returns the “default value” for a type. Read more
Source§

impl Display for VideoWallWindow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VideoWallWindow

Source§

impl PartialEq for VideoWallWindow

Source§

fn eq(&self, other: &VideoWallWindow) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VideoWallWindow

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.