[−][src]Struct linfb::shape::Rectangle
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]
fn render(&self) -> Vec<Vec<Option<Color>>>
[src]
fn at(self, x: usize, y: usize) -> PositionedShape where
Self: Sized + 'static,
[src]
Self: Sized + 'static,
impl Debug for Rectangle
[src]
Auto Trait Implementations
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
impl RefUnwindSafe for Rectangle
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,