pub struct EditorScrollbarConfig {
pub enabled: bool,
pub style: EditorScrollbarStyle,
}Expand description
Enables or disables editor-owned scrollbars and selects their style.
§Examples
use ailloli_ui_editor::EditorScrollbarConfig;
let config = EditorScrollbarConfig::default();
assert!(config.enabled);
assert_eq!(config.style.thickness, 6.0);Fields§
§enabled: boolWhether the adapter should paint editor-owned scrollbars.
style: EditorScrollbarStyleVisual scrollbar metrics and colors.
Trait Implementations§
Source§impl Clone for EditorScrollbarConfig
impl Clone for EditorScrollbarConfig
Source§fn clone(&self) -> EditorScrollbarConfig
fn clone(&self) -> EditorScrollbarConfig
Returns a copy 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 EditorScrollbarConfig
impl Debug for EditorScrollbarConfig
Source§impl Default for EditorScrollbarConfig
Enables scrollbars with EditorScrollbarStyle::default.
impl Default for EditorScrollbarConfig
Enables scrollbars with EditorScrollbarStyle::default.
Source§impl PartialEq for EditorScrollbarConfig
impl PartialEq for EditorScrollbarConfig
impl Copy for EditorScrollbarConfig
impl StructuralPartialEq for EditorScrollbarConfig
Auto Trait Implementations§
impl Freeze for EditorScrollbarConfig
impl RefUnwindSafe for EditorScrollbarConfig
impl Send for EditorScrollbarConfig
impl Sync for EditorScrollbarConfig
impl Unpin for EditorScrollbarConfig
impl UnwindSafe for EditorScrollbarConfig
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