Struct egui::style::WidgetVisuals[][src]

pub struct WidgetVisuals {
    pub bg_fill: Color32,
    pub bg_stroke: Stroke,
    pub corner_radius: f32,
    pub fg_stroke: Stroke,
    pub expansion: f32,
}

bg = background, fg = foreground.

Fields

bg_fill: Color32

Background color of widget.

bg_stroke: Stroke

For surrounding rectangle of things that need it, like buttons, the box of the checkbox, etc. Should maybe be called frame_stroke.

corner_radius: f32

Button frames etc.

fg_stroke: Stroke

Stroke and text color of the interactive part of a component (button text, slider grab, check-mark, …).

expansion: f32

Make the frame this much larger.

Implementations

impl WidgetVisuals[src]

pub fn text_color(&self) -> Color32[src]

impl WidgetVisuals[src]

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

Trait Implementations

impl Clone for WidgetVisuals[src]

impl Copy for WidgetVisuals[src]

impl Debug for WidgetVisuals[src]

impl PartialEq<WidgetVisuals> for WidgetVisuals[src]

impl StructuralPartialEq for WidgetVisuals[src]

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