[][src]Struct pushrod_render::render::widget::BaseWidget

pub struct BaseWidget { /* fields omitted */ }

This is an example top-level Widget object that is used to draw a background and a border of specified colors. COLOR_BASE determines the background fill color, and the COLOR_BORDER determines the color of the border. The width of the border is controlled by the get_config().border_width property.

Methods

impl BaseWidget[src]

Base top-level implementation of the BaseWidget, which other classes can extend.

pub fn new(x: i32, y: i32, w: u32, h: u32) -> Self[src]

Constructs a new base widget, given the points of origin and size.

Trait Implementations

impl Widget for BaseWidget[src]

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

fn get_config(&mut self) -> &mut WidgetConfig[src]

This function is a macro-created getter function that returns the Widget's configuration object. This code is auto-generated using the default_widget_property_impl!() macro.

fn get_system_properties(&mut self) -> &mut HashMap<i32, String>[src]

This function is a macro-created getter function that returns the Widget's system properties. This code is auto-generated using the default_widget_property_impl!() macro.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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