#[non_exhaustive]pub struct CaptureRequest {
pub include_tree: bool,
pub include_screenshot: bool,
pub max_nodes: usize,
pub max_depth: usize,
pub window: Option<u64>,
pub include_menu_bar: bool,
}Expand description
Parameters for Backend::capture.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.include_tree: boolWalk the accessibility tree.
include_screenshot: boolCapture window pixels.
max_nodes: usizeMaximum raw nodes to visit.
max_depth: usizeMaximum depth to visit.
window: Option<u64>Capture the window with this WindowInfo::id instead of the focused or main window.
Backends that cannot honor it must fail rather than capture another window.
Also walk the app’s menu bar when it lives outside the window (macOS). Its nodes follow
the window’s, with parent: None on the menu bar itself. Counts toward max_nodes.
Implementations§
Trait Implementations§
Source§impl Clone for CaptureRequest
impl Clone for CaptureRequest
impl Copy for CaptureRequest
Source§impl Debug for CaptureRequest
impl Debug for CaptureRequest
impl Eq for CaptureRequest
Source§impl PartialEq for CaptureRequest
impl PartialEq for CaptureRequest
impl StructuralPartialEq for CaptureRequest
Auto Trait Implementations§
impl Forget for CaptureRequest
impl Freeze for CaptureRequest
impl RefUnwindSafe for CaptureRequest
impl Send for CaptureRequest
impl Sync for CaptureRequest
impl Unpin for CaptureRequest
impl UnsafeUnpin for CaptureRequest
impl UnwindSafe for CaptureRequest
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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