[][src]Struct gui::BBox

pub struct BBox {
    pub x: u16,
    pub y: u16,
    pub w: u16,
    pub h: u16,
}

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

impl Clone for BBox[src]

impl Copy for BBox[src]

impl Debug for BBox[src]

impl Default for BBox[src]

impl Eq for BBox[src]

impl Hash for BBox[src]

impl PartialEq<BBox> for BBox[src]

impl StructuralEq for BBox[src]

impl StructuralPartialEq for BBox[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.