pub struct ObsDisplayCreationData { /* private fields */ }Implementations§
Source§impl ObsDisplayCreationData
impl ObsDisplayCreationData
pub fn new( window_handle: ObsWindowHandle, x: i32, y: i32, width: u32, height: u32, ) -> Self
pub fn set_format(self, format: GsColorFormat) -> Self
pub fn set_zsformat(self, zsformat: GsZstencilFormat) -> Self
pub fn set_adapter(self, adapter: u32) -> Self
pub fn set_backbuffers(self, backbuffers: u32) -> Self
pub fn set_background_color(self, background_color: u32) -> Self
Sourcepub fn set_create_child(self, should_create: bool) -> Self
pub fn set_create_child(self, should_create: bool) -> Self
If enabled, creating the display will result in a child window being created inside the provided window handle. The display is attached to that child window. This is on by default.
§Platform
This is only applicable on Windows.
Trait Implementations§
Source§impl Clone for ObsDisplayCreationData
impl Clone for ObsDisplayCreationData
Source§fn clone(&self) -> ObsDisplayCreationData
fn clone(&self) -> ObsDisplayCreationData
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 moreAuto Trait Implementations§
impl Freeze for ObsDisplayCreationData
impl RefUnwindSafe for ObsDisplayCreationData
impl Send for ObsDisplayCreationData
impl Sync for ObsDisplayCreationData
impl Unpin for ObsDisplayCreationData
impl UnwindSafe for ObsDisplayCreationData
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