pub struct BBox {
pub x: u16,
pub y: u16,
pub w: u16,
pub h: u16,
}
Expand description
A bounding box representing the area that a widget may occupy. A
bounding box always describes a rectangular area. The origin [x=0,
y=0] is typically assumed to reside in the upper left corner of the
screen, but it is really up to the individual Renderer
to make
do with whatever is provided.
Fields§
§x: u16
The x-coordinate of the bounding box.
y: u16
The y-coordinate of the bounding box.
w: u16
The width of the bounding box.
h: u16
The height of the bounding box.
Trait Implementations§
source§impl PartialEq for BBox
impl PartialEq for BBox
impl Copy for BBox
impl Eq for BBox
impl StructuralPartialEq for BBox
Auto Trait Implementations§
impl RefUnwindSafe for BBox
impl Send for BBox
impl Sync for BBox
impl Unpin for BBox
impl UnwindSafe for BBox
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