pub struct CompositionObject {
pub object_id: u16,
pub window_id: u8,
pub cropped_flag: u8,
pub x: u16,
pub y: u16,
pub crop_x: u16,
pub crop_y: u16,
pub crop_width: u16,
pub crop_height: u16,
}Expand description
Composition object reference within a presentation.
Fields§
§object_id: u16Object ID reference
window_id: u8Window ID reference
cropped_flag: u8Cropping flag (bit 7 = has cropping)
x: u16Horizontal position within window
y: u16Vertical position within window
crop_x: u16Cropping horizontal position (if cropped_flag set)
crop_y: u16Cropping vertical position (if cropped_flag set)
crop_width: u16Cropping width (if cropped_flag set)
crop_height: u16Cropping height (if cropped_flag set)
Implementations§
Source§impl CompositionObject
impl CompositionObject
Sourcepub fn has_cropping(&self) -> bool
pub fn has_cropping(&self) -> bool
Check if this object has cropping enabled.
Trait Implementations§
Source§impl Clone for CompositionObject
impl Clone for CompositionObject
Source§fn clone(&self) -> CompositionObject
fn clone(&self) -> CompositionObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompositionObject
Source§impl Debug for CompositionObject
impl Debug for CompositionObject
Source§impl Default for CompositionObject
impl Default for CompositionObject
Source§fn default() -> CompositionObject
fn default() -> CompositionObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompositionObject
impl RefUnwindSafe for CompositionObject
impl Send for CompositionObject
impl Sync for CompositionObject
impl Unpin for CompositionObject
impl UnsafeUnpin for CompositionObject
impl UnwindSafe for CompositionObject
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