Struct pipewire_wrapper::spa::type_::RegionRef
source · #[repr(transparent)]pub struct RegionRef { /* private fields */ }
Implementations§
source§impl RegionRef
impl RegionRef
pub fn position(&self) -> &PointRef
pub fn position_mut(&mut self) -> &mut PointRef
pub fn size(&self) -> &RectangleRef
pub fn size_mut(&mut self) -> &mut RectangleRef
pub fn set_value(&mut self, x: i32, y: i32, width: u32, height: u32)
pub fn new(position: PointRef, size: RectangleRef) -> Self
Trait Implementations§
source§impl From<(PointRef, RectangleRef)> for RegionRef
impl From<(PointRef, RectangleRef)> for RegionRef
source§fn from(value: (PointRef, RectangleRef)) -> Self
fn from(value: (PointRef, RectangleRef)) -> Self
Converts to this type from the input type.
source§impl From<RegionRef> for spa_region
impl From<RegionRef> for spa_region
source§impl From<spa_region> for RegionRef
impl From<spa_region> for RegionRef
source§fn from(value: spa_region) -> Self
fn from(value: spa_region) -> Self
Converts to this type from the input type.
source§impl RawWrapper for RegionRef
impl RawWrapper for RegionRef
§type CType = spa_region
type CType = spa_region
External type
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
impl Copy for RegionRef
Auto Trait Implementations§
impl RefUnwindSafe for RegionRef
impl Send for RegionRef
impl Sync for RegionRef
impl Unpin for RegionRef
impl UnwindSafe for RegionRef
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