pub struct ObsDisplayRef { /* private fields */ }
Expand description
§NEVER STORE THIS REF DIRECTLY!!
This is a wrapper around the obs_display struct and contains direct memory references. You should ALWAYS use the context to get to this struct, and as said NEVER store it.
Implementations§
Trait Implementations§
Source§impl Clone for ObsDisplayRef
impl Clone for ObsDisplayRef
Source§fn clone(&self) -> ObsDisplayRef
fn clone(&self) -> ObsDisplayRef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObsDisplayRef
impl Debug for ObsDisplayRef
Source§impl MiscDisplayTrait for ObsDisplayRef
impl MiscDisplayTrait for ObsDisplayRef
fn update_color_space<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_enabled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_enabled<'life0, 'async_trait>(
&'life0 self,
enabled: bool,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_background_color<'life0, 'async_trait>(
&'life0 self,
r: u8,
g: u8,
b: u8,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl ShowHideTrait for ObsDisplayRef
impl ShowHideTrait for ObsDisplayRef
fn show<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn hide<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_visible<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl WindowPositionTrait for ObsDisplayRef
impl WindowPositionTrait for ObsDisplayRef
fn set_render_at_bottom<'life0, 'async_trait>(
&'life0 self,
render_at_bottom: bool,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_render_at_bottom<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_pos<'life0, 'async_trait>(
&'life0 self,
x: i32,
y: i32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pos<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = (i32, i32)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pos_blocking(&self) -> (i32, i32)
fn get_size<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = (u32, u32)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_size_blocking(&self) -> (u32, u32)
fn set_size<'life0, 'async_trait>(
&'life0 self,
width: u32,
height: u32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_scale<'life0, 'async_trait>(
&'life0 self,
scale: f32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_scale<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = f32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for ObsDisplayRef
impl !RefUnwindSafe for ObsDisplayRef
impl Send for ObsDisplayRef
impl Sync for ObsDisplayRef
impl !Unpin for ObsDisplayRef
impl !UnwindSafe for ObsDisplayRef
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