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: Color32Background color of widget.
bg_stroke: StrokeFor surrounding rectangle of things that need it,
like buttons, the box of the checkbox, etc.
Should maybe be called frame_stroke.
corner_radius: f32Button frames etc.
fg_stroke: StrokeStroke and text color of the interactive part of a component (button text, slider grab, check-mark, …).
expansion: f32Make the frame this much larger.
Implementations
impl WidgetVisuals[src]
impl WidgetVisuals[src]pub fn text_color(&self) -> Color32[src]
impl WidgetVisuals[src]
impl WidgetVisuals[src]Trait Implementations
impl Clone for WidgetVisuals[src]
impl Clone for WidgetVisuals[src]fn clone(&self) -> WidgetVisuals[src]
fn clone(&self) -> WidgetVisuals[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for WidgetVisuals[src]
impl Debug for WidgetVisuals[src]impl PartialEq<WidgetVisuals> for WidgetVisuals[src]
impl PartialEq<WidgetVisuals> for WidgetVisuals[src]fn eq(&self, other: &WidgetVisuals) -> bool[src]
fn eq(&self, other: &WidgetVisuals) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &WidgetVisuals) -> bool[src]
fn ne(&self, other: &WidgetVisuals) -> bool[src]This method tests for !=.
impl Copy for WidgetVisuals[src]
impl StructuralPartialEq for WidgetVisuals[src]
Auto Trait Implementations
impl RefUnwindSafe for WidgetVisuals
impl Send for WidgetVisuals
impl Sync for WidgetVisuals
impl Unpin for WidgetVisuals
impl UnwindSafe for WidgetVisuals
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more