pub enum ScrollbarMode {
Visible,
Hidden,
Auto,
}Expand description
When a scrolling node’s bars are drawn. Spelled by the scrollbar row
(crate::schema::SCROLLBARS, in this order).
Variants§
Visible
The stock bar: drawn whenever the content overflows.
Hidden
No thumb is drawn and no track takes the press. The wheel, the
keyboard, reveal and the caret still scroll the node — a list
drawing its own indicator, or one whose bar would sit on a border.
Auto
The bar shows while the scroll state is changing — the offset or
the content’s extent moved since the last frame, the pointer is on
its track, or a thumb is being dragged — and for a second after,
then fades out over a quarter of one. A node first seen shows its
bar the same second. What an overlay bar does on macOS. Needs the
driver’s clock (Core::set_time); without one it is Visible,
since a fade with no clock could never end.
Implementations§
Source§impl ScrollbarMode
impl ScrollbarMode
Sourcepub const ALL: [ScrollbarMode; 3]
pub const ALL: [ScrollbarMode; 3]
Every mode, in the scrollbar row’s order: what a binding that
spells modes as numbers indexes (C’s KUI_SCROLLBAR_* are these
plus one).
Trait Implementations§
Source§impl Clone for ScrollbarMode
impl Clone for ScrollbarMode
Source§fn clone(&self) -> ScrollbarMode
fn clone(&self) -> ScrollbarMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScrollbarMode
Source§impl Debug for ScrollbarMode
impl Debug for ScrollbarMode
Source§impl Default for ScrollbarMode
impl Default for ScrollbarMode
Source§fn default() -> ScrollbarMode
fn default() -> ScrollbarMode
impl Eq for ScrollbarMode
Source§impl PartialEq for ScrollbarMode
impl PartialEq for ScrollbarMode
impl StructuralPartialEq for ScrollbarMode
Auto Trait Implementations§
impl Freeze for ScrollbarMode
impl RefUnwindSafe for ScrollbarMode
impl Send for ScrollbarMode
impl Sync for ScrollbarMode
impl Unpin for ScrollbarMode
impl UnsafeUnpin for ScrollbarMode
impl UnwindSafe for ScrollbarMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.