Struct ScreenBox
pub struct ScreenBox {
pub min: ScreenPoint,
pub max: ScreenPoint,
}Expand description
Screen-space box in logical map pixels.
Corners may be given in any order, and may extend past the viewport. Rendered queries normalize the corners and clip the box to the viewport, so a box that over-covers the viewport queries everything visible.
Fields§
§min: ScreenPoint§max: ScreenPointImplementations§
§impl ScreenBox
impl ScreenBox
pub const fn new(min: ScreenPoint, max: ScreenPoint) -> ScreenBox
Trait Implementations§
impl Copy for ScreenBox
impl StructuralPartialEq for ScreenBox
Auto Trait Implementations§
impl Freeze for ScreenBox
impl RefUnwindSafe for ScreenBox
impl Send for ScreenBox
impl Sync for ScreenBox
impl Unpin for ScreenBox
impl UnsafeUnpin for ScreenBox
impl UnwindSafe for ScreenBox
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