[][src]Struct pushrod_widgets::system_widgets::base_widget::BaseWidget

pub struct BaseWidget { /* fields omitted */ }

Base Widget.

Trait Implementations

impl Default for BaseWidget[src]

impl Widget for BaseWidget[src]

Implementation for drawing a BaseWidget, with the Widget trait objects applied.

fn draw(
    &mut self,
    c: &mut Canvas<Window>,
    _t: &mut TextureCache
) -> Option<&Texture>
[src]

This is a BaseWidget that is used as a standard blank Widget.

  • PROPERTY_MAIN_COLOR: the Color of the body of the Widget
  • PROPERTY_BORDER_WIDTH: the width of the border to draw
  • PROPERTY_BORDER_COLOR: the Color of the border.

Auto Trait Implementations

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, 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.