pub struct GraphicsCaptureApi { /* private fields */ }Expand description
Struct Used For Graphics Capture Api
Implementations§
source§impl GraphicsCaptureApi
impl GraphicsCaptureApi
sourcepub fn new<T: WindowsCaptureHandler + Send + 'static>(
item: GraphicsCaptureItem,
callback: T,
capture_cursor: Option<bool>,
draw_border: Option<bool>,
color_format: ColorFormat
) -> Result<Self, Box<dyn Error + Send + Sync>>
pub fn new<T: WindowsCaptureHandler + Send + 'static>( item: GraphicsCaptureItem, callback: T, capture_cursor: Option<bool>, draw_border: Option<bool>, color_format: ColorFormat ) -> Result<Self, Box<dyn Error + Send + Sync>>
Create A New Graphics Capture Api Struct
sourcepub fn stop_capture(self)
pub fn stop_capture(self)
Stop Capture
sourcepub fn is_supported() -> Result<bool, Box<dyn Error + Send + Sync>>
pub fn is_supported() -> Result<bool, Box<dyn Error + Send + Sync>>
Check If Windows Graphics Capture Api Is Supported
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GraphicsCaptureApi
impl !Send for GraphicsCaptureApi
impl !Sync for GraphicsCaptureApi
impl Unpin for GraphicsCaptureApi
impl UnwindSafe for GraphicsCaptureApi
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