pub struct Region {
pub offset_x: i32,
pub offset_y: i32,
pub width: i32,
pub height: i32,
pub scale: f64,
pub mapping_id: Option<String>,
}Expand description
One absolute-input region, as the compositor described it.
Sizes and offsets are the compositor’s logical pixels. scale is the
scale it reports for the region; it is recorded so doctor can show
it and so a mismatch against the session is visible, but the mapping
deliberately does not divide by it — see place.
Fields§
§offset_x: i32§offset_y: i32§width: i32§height: i32§scale: f64§mapping_id: Option<String>Ties this region to a screencast stream, when the compositor says so. Optional in the protocol, so never relied on for correctness.
Trait Implementations§
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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