[−][src]Struct pushrod_widgets::system_widgets::base_widget::BaseWidget
Base Widget.
Trait Implementations
impl Default for BaseWidget
[src]
fn default() -> BaseWidget
[src]
impl Widget for BaseWidget
[src]
Implementation for drawing a BaseWidget
, with the Widget
trait objects applied.
fn properties(&mut self) -> &mut WidgetProperties
[src]
fn widget_name(&self) -> String
[src]
fn draw(
&mut self,
c: &mut Canvas<Window>,
_t: &mut TextureCache
) -> Option<&Texture>
[src]
&mut self,
c: &mut Canvas<Window>,
_t: &mut TextureCache
) -> Option<&Texture>
This is a BaseWidget
that is used as a standard blank Widget
.
- PROPERTY_MAIN_COLOR: the
Color
of the body of theWidget
- PROPERTY_BORDER_WIDTH: the width of the border to draw
- PROPERTY_BORDER_COLOR: the
Color
of the border.
fn handle_event(&mut self, _e: PushrodEvent) -> Option<PushrodEvent>
[src]
fn build_layout(&mut self) -> Vec<Box<dyn Widget>>
[src]
fn constructed_layout_ids(&mut self, _ids: Vec<u32>)
[src]
fn invalidate(&mut self)
[src]
fn invalidated(&mut self) -> bool
[src]
fn hide(&mut self)
[src]
fn show(&mut self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for BaseWidget
impl !Send for BaseWidget
impl !Sync for BaseWidget
impl Unpin for BaseWidget
impl UnwindSafe for BaseWidget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,