pub enum ScrollAxes {
Both,
Horizontal,
Vertical,
}Variants§
Implementations§
Source§impl ScrollAxes
impl ScrollAxes
pub fn as_str(self) -> &'static str
pub fn allows(self, axis: Orientation) -> bool
Sourcepub fn key(self, input: KeyboardInput<'_>) -> Option<ScrollCommand>
pub fn key(self, input: KeyboardInput<'_>) -> Option<ScrollCommand>
Hosts call this only when the viewport itself owns actual focus. Native descendants keep their editing, activation and collection navigation.
Trait Implementations§
Source§impl Clone for ScrollAxes
impl Clone for ScrollAxes
Source§fn clone(&self) -> ScrollAxes
fn clone(&self) -> ScrollAxes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScrollAxes
Source§impl Debug for ScrollAxes
impl Debug for ScrollAxes
Source§impl Default for ScrollAxes
impl Default for ScrollAxes
Source§fn default() -> ScrollAxes
fn default() -> ScrollAxes
Returns the “default value” for a type. Read more
impl Eq for ScrollAxes
Source§impl PartialEq for ScrollAxes
impl PartialEq for ScrollAxes
impl StructuralPartialEq for ScrollAxes
Auto Trait Implementations§
impl Freeze for ScrollAxes
impl RefUnwindSafe for ScrollAxes
impl Send for ScrollAxes
impl Sync for ScrollAxes
impl Unpin for ScrollAxes
impl UnsafeUnpin for ScrollAxes
impl UnwindSafe for ScrollAxes
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