Struct egui::style::Widgets[][src]

pub struct Widgets {
    pub noninteractive: WidgetVisuals,
    pub inactive: WidgetVisuals,
    pub hovered: WidgetVisuals,
    pub active: WidgetVisuals,
}

Fields

noninteractive: WidgetVisuals

The style of a widget that you cannot interact with.

  • noninteractive.bg_stroke is the outline of windows.
  • noninteractive.bg_fill is the background color of windows.
  • noninteractive.fg_stroke is the normal text color.
inactive: WidgetVisuals

The style of an interactive widget, such as a button, at rest.

hovered: WidgetVisuals

The style of an interactive widget while you hover it.

active: WidgetVisuals

The style of an interactive widget as you are clicking or dragging it.

Implementations

impl Widgets[src]

pub fn style(&self, response: &Response) -> &WidgetVisuals[src]

impl Widgets[src]

pub fn dark() -> Self[src]

pub fn light() -> Self[src]

impl Widgets[src]

pub fn ui(&mut self, ui: &mut Ui)[src]

Trait Implementations

impl Clone for Widgets[src]

impl Debug for Widgets[src]

impl Default for Widgets[src]

impl PartialEq<Widgets> for Widgets[src]

impl StructuralPartialEq for Widgets[src]

Auto Trait Implementations

impl RefUnwindSafe for Widgets

impl Send for Widgets

impl Sync for Widgets

impl Unpin for Widgets

impl UnwindSafe for Widgets

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.