[][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 Copy for BBox[src]

impl PartialEq<BBox> for BBox[src]

impl Default for BBox[src]

impl Clone for BBox[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BBox[src]

impl Debug for BBox[src]

impl Hash for BBox[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for BBox

impl Sync for BBox

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.