#[non_exhaustive]pub enum ScrollBarStyle {
Default,
FluentOverlay,
}Expand description
The scrollbar style to use in the webview.
§Platform-specific
- Windows: This option must be given the same value for all webviews that target the same data directory.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
The scrollbar style to use in the webview.
FluentOverlay
Fluent UI style overlay scrollbars. Windows Only
Requires WebView2 Runtime version 125.0.2535.41 or higher, does nothing on older versions, see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/?tabs=dotnetcsharp#10253541
Trait Implementations§
Source§impl Clone for ScrollBarStyle
impl Clone for ScrollBarStyle
Source§fn clone(&self) -> ScrollBarStyle
fn clone(&self) -> ScrollBarStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollBarStyle
impl Debug for ScrollBarStyle
Source§impl Default for ScrollBarStyle
impl Default for ScrollBarStyle
Source§fn default() -> ScrollBarStyle
fn default() -> ScrollBarStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScrollBarStyle
impl<'de> Deserialize<'de> for ScrollBarStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScrollBarStyle
impl PartialEq for ScrollBarStyle
Source§impl Serialize for ScrollBarStyle
impl Serialize for ScrollBarStyle
impl StructuralPartialEq for ScrollBarStyle
Auto Trait Implementations§
impl Freeze for ScrollBarStyle
impl RefUnwindSafe for ScrollBarStyle
impl Send for ScrollBarStyle
impl Sync for ScrollBarStyle
impl Unpin for ScrollBarStyle
impl UnwindSafe for ScrollBarStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more