Struct egui_dock::Style

source ·
pub struct Style {
Show 36 fields pub dock_area_padding: Option<Margin>, pub default_inner_margin: Margin, pub border_color: Color32, pub border_width: f32, pub selection_color: Color32, pub separator_width: f32, pub separator_extra: f32, pub separator_color_idle: Color32, pub separator_color_hovered: Color32, pub separator_color_dragged: Color32, pub tab_bar_background_color: Color32, pub tab_bar_height: f32, pub tab_outline_color: Color32, pub hline_color: Color32, pub hline_below_active_tab_name: bool, pub tab_rounding: Rounding, pub tab_background_color: Color32, pub tab_text_color_unfocused: Color32, pub tab_text_color_focused: Color32, pub tab_text_color_active_unfocused: Color32, pub tab_text_color_active_focused: Color32, pub tabs_are_draggable: bool, pub expand_tabs: bool, pub close_tab_color: Color32, pub close_tab_active_color: Color32, pub close_tab_background_color: Color32, pub show_close_buttons: bool, pub add_tab_align: TabAddAlign, pub add_tab_color: Color32, pub add_tab_active_color: Color32, pub add_tab_background_color: Color32, pub show_add_buttons: bool, pub show_add_popup: bool, pub show_context_menu: bool, pub tab_include_scrollarea: bool, pub tab_hover_name: bool,
}
Expand description

Specifies the look and feel of egui_dock.

See StyleBuilder for fields details.

Fields§

§dock_area_padding: Option<Margin>§default_inner_margin: Margin§border_color: Color32§border_width: f32§selection_color: Color32§separator_width: f32§separator_extra: f32§separator_color_idle: Color32§separator_color_hovered: Color32§separator_color_dragged: Color32§tab_bar_background_color: Color32§tab_bar_height: f32§tab_outline_color: Color32

The outline around the active tab name.

§hline_color: Color32

The line separating the tab name area from the tab content area

§hline_below_active_tab_name: bool

If true, show the hline below the active tabs name. If false, show the active tab as merged with the tab ui area. Default: false.

§tab_rounding: Rounding§tab_background_color: Color32§tab_text_color_unfocused: Color32§tab_text_color_focused: Color32§tab_text_color_active_unfocused: Color32§tab_text_color_active_focused: Color32§tabs_are_draggable: bool§expand_tabs: bool§close_tab_color: Color32§close_tab_active_color: Color32§close_tab_background_color: Color32§show_close_buttons: bool§add_tab_align: TabAddAlign§add_tab_color: Color32§add_tab_active_color: Color32§add_tab_background_color: Color32§show_add_buttons: bool§show_add_popup: bool§show_context_menu: bool§tab_include_scrollarea: bool§tab_hover_name: bool

Implementations§

Trait Implementations§

source§

impl Clone for Style

source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Style

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Style

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> SerializableAny for Twhere T: 'static + Any + Clone + Send + Sync,