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§
Auto Trait Implementations§
impl Forget for ObsDisplayCreationData
impl Freeze for ObsDisplayCreationData
impl Move for ObsDisplayCreationData
impl RefUnwindSafe for ObsDisplayCreationData
impl Send for ObsDisplayCreationDatawhere
Sendable<gs_window>: Send,
impl Sync for ObsDisplayCreationDatawhere
Sendable<gs_window>: Sync,
impl Unpin for ObsDisplayCreationData
impl UnsafeUnpin 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