pub struct Panel {
pub receiver: u16,
pub receiver_x: u32,
pub receiver_y: u32,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub rotation: Rotation,
pub flip_x: bool,
pub flip_y: bool,
}Expand description
One panel, positioned on the wall and assigned to a receiver.
Fields§
§receiver: u16Which receiving card drives this panel.
receiver_x: u32Where the panel’s top-left sits in the receiver’s own pixel space.
receiver_y: u32§x: u32Where the panel’s top-left sits on the logical canvas.
y: u32§width: u32Panel size as it appears on the canvas, after rotation.
height: u32§rotation: Rotation§flip_x: bool§flip_y: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Panel
impl<'de> Deserialize<'de> for Panel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Panel
impl StructuralPartialEq for Panel
Auto Trait Implementations§
impl Freeze for Panel
impl RefUnwindSafe for Panel
impl Send for Panel
impl Sync for Panel
impl Unpin for Panel
impl UnsafeUnpin for Panel
impl UnwindSafe for Panel
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