pub struct VideoLayerHandle { /* private fields */ }Expand description
Thread-safe runtime placement control for one compositor input. Retaining it does not keep the input or compositor alive.
Implementations§
Source§impl VideoLayerHandle
impl VideoLayerHandle
pub fn id(&self) -> VideoInputId
pub fn name(&self) -> Arc<str> ⓘ
pub fn layer(&self) -> Option<VideoLayer>
pub fn set_layer(&self, layer: VideoLayer) -> Result<(), VideoCompositorError>
pub fn set_rect(&self, rect: VideoRect) -> Result<(), VideoCompositorError>
pub fn set_opacity(&self, opacity: f32) -> Result<(), VideoCompositorError>
pub fn set_z_index(&self, z_index: i32) -> Result<(), VideoCompositorError>
pub fn set_visible(&self, visible: bool) -> Result<(), VideoCompositorError>
pub fn set_fit(&self, fit: VideoFit) -> Result<(), VideoCompositorError>
Trait Implementations§
Source§impl Clone for VideoLayerHandle
impl Clone for VideoLayerHandle
Source§fn clone(&self) -> VideoLayerHandle
fn clone(&self) -> VideoLayerHandle
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for VideoLayerHandle
impl !UnwindSafe for VideoLayerHandle
impl Freeze for VideoLayerHandle
impl Send for VideoLayerHandle
impl Sync for VideoLayerHandle
impl Unpin for VideoLayerHandle
impl UnsafeUnpin for VideoLayerHandle
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