pub struct CaptureRequest {
pub node_id: Option<u64>,
pub scale: f32,
}Expand description
What to draw, and how large.
Fields§
§node_id: Option<u64>The subtree to draw, or the whole document when absent.
Capturing one node is the difference between a test that says “the window is not blank” and one that says “this button’s icon is drawn”, and the second is the one worth writing.
scale: f32Pixel scale, so a small control can be inspected at a useful size.
A 16px icon is a handful of pixels at 1x, and antialiasing dominates them; asking for it at 4x makes “is anything there” answerable without making the threshold a guess.
Trait Implementations§
Source§impl Clone for CaptureRequest
impl Clone for CaptureRequest
Source§fn clone(&self) -> CaptureRequest
fn clone(&self) -> CaptureRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptureRequest
Source§impl Debug for CaptureRequest
impl Debug for CaptureRequest
Source§impl Default for CaptureRequest
impl Default for CaptureRequest
Source§impl<'de> Deserialize<'de> for CaptureRequest
impl<'de> Deserialize<'de> for CaptureRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CaptureRequest
impl PartialEq for CaptureRequest
Source§impl Serialize for CaptureRequest
impl Serialize for CaptureRequest
impl StructuralPartialEq for CaptureRequest
Auto Trait Implementations§
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§
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