#[repr(C)]pub enum SizeQueryOp {
LessThan = 0,
GreaterThan = 1,
GreaterOrEqual = 2,
LessOrEqual = 3,
}Expand description
The comparison a SizeQuery performed.
Four variants rather than a greater/smaller bool because the recorded
operator must REPLAY EXACTLY:
window_width_less_than is a strict < while window_width_between’s
lower bound is >=, and collapsing either onto the other misjudges a
resize landing precisely on the queried boundary — the one pixel the app
explicitly said it cares about.
Variants§
LessThan = 0
dim < threshold (window_width_less_than / window_height_less_than)
GreaterThan = 1
dim > threshold (window_width_greater_than / window_height_greater_than)
GreaterOrEqual = 2
dim >= threshold (the lower bound of window_*_between)
LessOrEqual = 3
dim <= threshold (the upper bound of window_*_between)
Trait Implementations§
Source§impl Clone for SizeQueryOp
impl Clone for SizeQueryOp
Source§fn clone(&self) -> SizeQueryOp
fn clone(&self) -> SizeQueryOp
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 SizeQueryOp
Source§impl Debug for SizeQueryOp
impl Debug for SizeQueryOp
impl Eq for SizeQueryOp
Source§impl PartialEq for SizeQueryOp
impl PartialEq for SizeQueryOp
impl StructuralPartialEq for SizeQueryOp
Auto Trait Implementations§
impl Freeze for SizeQueryOp
impl RefUnwindSafe for SizeQueryOp
impl Send for SizeQueryOp
impl Sync for SizeQueryOp
impl Unpin for SizeQueryOp
impl UnsafeUnpin for SizeQueryOp
impl UnwindSafe for SizeQueryOp
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