[][src]Struct linfb::shape::Rectangle

pub struct Rectangle {
    pub width: usize,
    pub height: usize,
    pub border_width: usize,
    pub border_color: Option<Color>,
    pub fill_color: Option<Color>,
}

Simplest of all shapes, just a rectangle

Fields

width: usize

Width of rectangle including border

height: usize

Height of rectangle including border

border_width: usize

Border width. Builder default is 1, set to 0 to disable borders

border_color: Option<Color>

Border color. Builder default is None (fully transparent)

fill_color: Option<Color>

Fill color. Builder default is None (fully transparent)

Methods

impl Rectangle[src]

pub fn builder() -> RectangleBuilder[src]

Create a default RectangleBuilder

Trait Implementations

impl Shape for Rectangle[src]

impl Debug for Rectangle[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<T> SetParameter for T

impl<T> Downcast for T where
    T: Any
[src]