Struct egui_dock::StyleBuilder
source · [−]pub struct StyleBuilder { /* private fields */ }
Implementations
sourceimpl StyleBuilder
impl StyleBuilder
pub fn new() -> Self
sourcepub fn with_padding(self, padding: Option<Margin>) -> Self
pub fn with_padding(self, padding: Option<Margin>) -> Self
Sets padding
to indent from the edges of the window. By Default
it’s None
.
sourcepub fn with_border_color(self, border_color: Color32) -> Self
pub fn with_border_color(self, border_color: Color32) -> Self
Sets border_color
for the window of “working area”. By Default
it’s [egui::Color32::BLACK
].
sourcepub fn with_border_width(self, border_width: f32) -> Self
pub fn with_border_width(self, border_width: f32) -> Self
Sets border_width
for the border. By Default
it’s 0.0
.
sourcepub fn with_selection_color(self, selection_color: Color32) -> Self
pub fn with_selection_color(self, selection_color: Color32) -> Self
Sets selection color
for the placing area of the tab where this tab targeted on it. By Default
it’s (0, 191, 255)
(light blue) with 0.5
capacity.
sourcepub fn with_separator_width(self, separator_width: f32) -> Self
pub fn with_separator_width(self, separator_width: f32) -> Self
Sets separator_size
for the rectangle separator between nodes. By Default
it’s 1.0
.
sourcepub fn with_separator_extra(self, separator_extra: f32) -> Self
pub fn with_separator_extra(self, separator_extra: f32) -> Self
Sets separator_extra
it sets limit for the allowed area for the separator offset. By Default
it’s 175.0
.
bigger value > less allowed offset
for the current window size.
sourcepub fn with_separator_color(self, separator_color: Color32) -> Self
pub fn with_separator_color(self, separator_color: Color32) -> Self
Sets separator_color
for the rectangle separator. By Default
it’s [Color32::BLACK
].
sourcepub fn with_tab_bar_background(self, tab_bar_background_color: Color32) -> Self
pub fn with_tab_bar_background(self, tab_bar_background_color: Color32) -> Self
Sets tab_bar_background_color
for the color of tab bar. By Default
it’s [Color32::WHITE
].
sourcepub fn with_tab_outline_color(self, tab_outline_color: Color32) -> Self
pub fn with_tab_outline_color(self, tab_outline_color: Color32) -> Self
Sets tab_outline_color
for the outline color of tabs. By Default
it’s [Color32::BLACK
].
sourcepub fn with_tab_rounding(self, tab_rounding: Rounding) -> Self
pub fn with_tab_rounding(self, tab_rounding: Rounding) -> Self
Sets tab_rounding
for the tab rounding.
sourcepub fn with_tab_background_color(self, tab_background: Color32) -> Self
pub fn with_tab_background_color(self, tab_background: Color32) -> Self
Sets tab_background_color
for the current tab background color.
sourcepub fn with_close_tab_color(self, close_tab_color: Color32) -> Self
pub fn with_close_tab_color(self, close_tab_color: Color32) -> Self
Sets close_tab_color
for the close tab button color.
sourcepub fn with_close_tab_active_color_color(
self,
close_tab_active_color: Color32
) -> Self
pub fn with_close_tab_active_color_color(
self,
close_tab_active_color: Color32
) -> Self
Sets close_tab_active_color
for the active close tab button color.
sourcepub fn with_close_tab_background_color_color(
self,
close_tab_background_color: Color32
) -> Self
pub fn with_close_tab_background_color_color(
self,
close_tab_background_color: Color32
) -> Self
Sets close_tab_background_color
for the background close tab button color.
Shows / Hides the tab close buttons.
Trait Implementations
sourceimpl Default for StyleBuilder
impl Default for StyleBuilder
sourcefn default() -> StyleBuilder
fn default() -> StyleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StyleBuilder
impl Send for StyleBuilder
impl Sync for StyleBuilder
impl Unpin for StyleBuilder
impl UnwindSafe for StyleBuilder
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