S or /

SourceClass ScrollStyle

from egui import ScrollStyle
class ScrollStyle:

Controls the spacing and visuals of a egui.ScrollArea.

There are three presets to chose from: * egui.ScrollStyle.solid * egui.ScrollStyle.thin * egui.ScrollStyle.floating

Properties§

@property def active_background_opacity(self, /) -> float§
@active_background_opacity.setter def active_background_opacity(self, /, active_background_opacity: float) -> None§
@property def active_handle_opacity(self, /) -> float§
@active_handle_opacity.setter def active_handle_opacity(self, /, active_handle_opacity: float) -> None§
@property def bar_inner_margin(self, /) -> float§
@bar_inner_margin.setter def bar_inner_margin(self, /, bar_inner_margin: float) -> None§
@property def bar_outer_margin(self, /) -> float§
@bar_outer_margin.setter def bar_outer_margin(self, /, bar_outer_margin: float) -> None§
@property def bar_width(self, /) -> float§
@bar_width.setter def bar_width(self, /, bar_width: float) -> None§
@property def content_margin(self, /) -> Margin§
@content_margin.setter def content_margin(self, /, content_margin: Margin) -> None§
@property def dormant_background_opacity(self, /) -> float§
@dormant_background_opacity.setter def dormant_background_opacity(self, /, dormant_background_opacity: float) -> None§
@property def dormant_handle_opacity(self, /) -> float§
@dormant_handle_opacity.setter def dormant_handle_opacity(self, /, dormant_handle_opacity: float) -> None§
@property def fade(self, /) -> ScrollFadeStyle§
@fade.setter def fade(self, /, fade: ScrollFadeStyle) -> None§
@property def floating_allocated_width(self, /) -> float§
@floating_allocated_width.setter def floating_allocated_width(self, /, floating_allocated_width: float) -> None§
@property def floating_width(self, /) -> float§
@floating_width.setter def floating_width(self, /, floating_width: float) -> None§
@property def foreground_color(self, /) -> bool§
@foreground_color.setter def foreground_color(self, /, foreground_color: bool) -> None§
@property def handle_min_length(self, /) -> float§
@handle_min_length.setter def handle_min_length(self, /, handle_min_length: float) -> None§
@property def interact_background_opacity(self, /) -> float§
@interact_background_opacity.setter def interact_background_opacity(self, /, interact_background_opacity: float) -> None§
@property def interact_handle_opacity(self, /) -> float§
@interact_handle_opacity.setter def interact_handle_opacity(self, /, interact_handle_opacity: float) -> None§
@property def is_floating(self, /) -> bool§
@is_floating.setter def is_floating(self, /, is_floating: bool) -> None§

Methods§

Sourcedef allocated_width(self, /) -> float§

Width of a solid vertical scrollbar, or height of a horizontal scroll bar, when it is at its widest.

@staticmethod def default() -> ScrollStyle§
Sourcedef details_ui(self, /, ui: Ui) -> None§
def fade_mut(self, /) -> Any: """ Edit a copy and write it back when the async context exits. """§

Edit a copy and write it back when the async context exits.

Source@staticmethod def floating() -> ScrollStyle§

No scroll bars until you hover the scroll area, at which time they appear faintly, and then expand when you hover the scroll bars.

Source@staticmethod def solid() -> ScrollStyle§

Solid scroll bars that always use up space

Source@staticmethod def thin() -> ScrollStyle§

Thin scroll bars that expand on hover

Sourcedef ui(self, /, ui: Ui) -> None§