#[repr(C)]pub struct vsl_rect {
pub x: c_int,
pub y: c_int,
pub width: c_int,
pub height: c_int,
}Expand description
The VSLRect structure represents a rectangle region of a frame and is used to define cropping regions for sub-frames.
Fields§
§x: c_intThe left-most pixel offset for the rectangle.
y: c_intThe top-most pixel offset for the rectangle.
width: c_intThe width in pixels of the rectangle. The end position is x+width.
height: c_intThe height in pixels of the rectangle. The end position is y+height.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for vsl_rect
impl RefUnwindSafe for vsl_rect
impl Send for vsl_rect
impl Sync for vsl_rect
impl Unpin for vsl_rect
impl UnwindSafe for vsl_rect
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