Skip to main content

VideoWallCommand

Struct VideoWallCommand 

Source
pub struct VideoWallCommand {
    pub target: DeviceUid,
    pub pos_x: u16,
    pub pos_y: u16,
    pub width: u16,
    pub height: u16,
    pub raster_w: u16,
    pub raster_h: u16,
    pub op: VideoWallOp,
}
Expand description

Asks one sink to crop its source to a wall window.

This replaces the sink’s window outright: unlike a V2IP device config, no field carries a validity marker, and a zero width or height is the wire spelling of “clear the wall and show the full frame” rather than “unset”.

The opcode belongs to the loadable v2ipwall module rather than MatrixOS, and a wall has no object of its own on the wire: it is a set of sinks each holding one rectangle, one frame each. It is a command with no reply, so nothing here is ever a status readback.

Fields§

§target: DeviceUid

The sink to act on.

§pos_x: u16

Window origin, horizontal.

§pos_y: u16

Window origin, vertical.

§width: u16

Window width.

§height: u16

Window height.

§raster_w: u16

Active picture width the window was authored against, as on VideoWallWindow.

§raster_h: u16

Active picture height the window was authored against.

§op: VideoWallOp

What to do with the window.

Implementations§

Source§

impl VideoWallCommand

Source

pub fn has_window(&self) -> bool

Reports whether the geometry in this command is meaningful.

A revert zeroes the window and raster and the receiver ignores those bytes, so its zeros are not a clear.

Source

pub fn is_cleared(&self) -> bool

Reports a command that clears the wall and shows the full frame.

Trait Implementations§

Source§

impl Clone for VideoWallCommand

Source§

fn clone(&self) -> VideoWallCommand

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 VideoWallCommand

Source§

impl Debug for VideoWallCommand

Source§

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

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

impl Default for VideoWallCommand

Source§

fn default() -> VideoWallCommand

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

impl Display for VideoWallCommand

Source§

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

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

impl Eq for VideoWallCommand

Source§

impl PartialEq for VideoWallCommand

Source§

fn eq(&self, other: &VideoWallCommand) -> 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 VideoWallCommand

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.