pub struct ObsDisplayRef { /* private fields */ }Expand description
You can use the ObsContext to create this struct. This struct is stored in the
ObsContext itself and the display is removed if every instance of this struct is dropped
(and you have called remove_display on the ObsContext).
Implementations§
Source§impl ObsDisplayRef
impl ObsDisplayRef
Trait Implementations§
Source§impl Clone for ObsDisplayRef
impl Clone for ObsDisplayRef
Source§fn clone(&self) -> ObsDisplayRef
fn clone(&self) -> ObsDisplayRef
Returns a duplicate 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
Source§impl ShowHideTrait for ObsDisplayRef
impl ShowHideTrait for ObsDisplayRef
Source§impl WindowPositionTrait for ObsDisplayRef
impl WindowPositionTrait for ObsDisplayRef
Source§fn set_render_at_bottom(&self, _render_at_bottom: bool) -> Result<(), ObsError>
fn set_render_at_bottom(&self, _render_at_bottom: bool) -> Result<(), ObsError>
If create_child is true, sets whether the window is rendered at the bottom of the Z order. Read more
Source§fn get_render_at_bottom(&self) -> Result<bool, ObsError>
fn get_render_at_bottom(&self) -> Result<bool, ObsError>
Returns true if the window is rendered at the bottom of the Z order.
If create_child was false during creation, this function always returns false.
fn set_pos(&self, x: i32, y: i32) -> Result<(), ObsError>
fn set_size(&self, width: u32, height: u32) -> Result<(), ObsError>
fn get_pos(&self) -> Result<(i32, i32), ObsError>
fn get_size(&self) -> Result<(u32, u32), ObsError>
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