pub struct Style {Show 15 fields
pub padding: Option<Margin>,
pub border_color: Color32,
pub border_width: f32,
pub selection_color: Color32,
pub separator_width: f32,
pub separator_extra: f32,
pub separator_color: Color32,
pub tab_bar_background_color: Color32,
pub tab_outline_color: Color32,
pub tab_rounding: Rounding,
pub tab_background_color: Color32,
pub close_tab_color: Color32,
pub close_tab_active_color: Color32,
pub close_tab_background_color: Color32,
pub show_close_buttons: bool,
}
Expand description
Specifies the look and feel of egui_dock.
Fields
padding: Option<Margin>
border_color: Color32
border_width: f32
selection_color: Color32
separator_width: f32
separator_extra: f32
separator_color: Color32
tab_bar_background_color: Color32
tab_outline_color: Color32
tab_rounding: Rounding
tab_background_color: Color32
close_tab_color: Color32
close_tab_active_color: Color32
close_tab_background_color: Color32
Implementations
sourceimpl Style
impl Style
sourcepub fn from_egui(style: &Style) -> Self
pub fn from_egui(style: &Style) -> Self
Derives relevant fields from egui::Style
and sets the remaining fields to their default values.
Fields overwritten by egui::Style
are:
selection_color
tab_bar_background_color
tab_outline_color
tab_background_color
separator_color
border_color
close_tab_background_color
close_tab_color
close_tab_active_color
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more