pub enum ScrollbarSetting {
Shown,
Hidden,
Themed(Arc<JsonValue>),
ThemeValue(ScrollbarThemeValue),
}Expand description
Which scroll bar a scroll view or list shows (scrollbar).
Variants§
Shown
Its scroll bar (true, the default): the platform’s indicator, or
the app’s built-in bar once the app set a theme for every view
(nsh/base’s Scrollbar.setTheme).
Hidden
None (false).
Themed(Arc<JsonValue>)
The app’s built-in bar drawn as this theme says (an object): the
ScrollbarTheme of nsh/base, which reads it.
ThemeValue(ScrollbarThemeValue)
The app’s built-in bar drawn as this theme says, as Rust gave it: a
value of the theme type of the UI set that makes bars, with its
maker (nsh_base::ScrollbarTheme converts into this).
Trait Implementations§
Source§impl Clone for ScrollbarSetting
impl Clone for ScrollbarSetting
Source§impl Debug for ScrollbarSetting
impl Debug for ScrollbarSetting
Source§impl Default for ScrollbarSetting
impl Default for ScrollbarSetting
Source§impl From<bool> for ScrollbarSetting
impl From<bool> for ScrollbarSetting
Source§impl IntoReactive<ScrollbarSetting> for ScrollbarSetting
impl IntoReactive<ScrollbarSetting> for ScrollbarSetting
Source§fn into_reactive(self) -> Reactive<ScrollbarSetting>
fn into_reactive(self) -> Reactive<ScrollbarSetting>
As a
Reactive.Source§impl IntoReactive<ScrollbarSetting> for bool
impl IntoReactive<ScrollbarSetting> for bool
Source§fn into_reactive(self) -> Reactive<ScrollbarSetting>
fn into_reactive(self) -> Reactive<ScrollbarSetting>
As a
Reactive.Source§impl PartialEq for ScrollbarSetting
impl PartialEq for ScrollbarSetting
impl StructuralPartialEq for ScrollbarSetting
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollbarSetting
impl !Send for ScrollbarSetting
impl !Sync for ScrollbarSetting
impl !UnwindSafe for ScrollbarSetting
impl Forget for ScrollbarSetting
impl Freeze for ScrollbarSetting
impl Move for ScrollbarSetting
impl Unpin for ScrollbarSetting
impl UnsafeUnpin for ScrollbarSettingwhere
*const ArcInner<Value> is !null: UnsafeUnpin,
PhantomData<ArcInner<Value>>: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
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