Enum AllowedScrollAxis
#[repr(i32)]pub enum AllowedScrollAxis {
XAxis = 1,
YAxis = 2,
AllAxes = 3,
}Expand description
Enumeration for AllowedScrollAxisProperty which sets the axis on which you want to allow a Scroll View node to scroll.
Variants§
XAxis = 1
Allow scrolling only on the x axis.
YAxis = 2
Allow scrolling only on the y axis.
AllAxes = 3
Allow scrolling on both the x and y axes.
Implementations§
§impl AllowedScrollAxis
impl AllowedScrollAxis
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> AllowedScrollAxis
Trait Implementations§
§impl Clone for AllowedScrollAxis
impl Clone for AllowedScrollAxis
§fn clone(&self) -> AllowedScrollAxis
fn clone(&self) -> AllowedScrollAxis
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 more§impl Debug for AllowedScrollAxis
impl Debug for AllowedScrollAxis
§impl Display for AllowedScrollAxis
impl Display for AllowedScrollAxis
§impl PartialEq for AllowedScrollAxis
impl PartialEq for AllowedScrollAxis
§impl VariantConstraint for AllowedScrollAxis
impl VariantConstraint for AllowedScrollAxis
§type DataArg<'a> = AllowedScrollAxis
type DataArg<'a> = AllowedScrollAxis
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = AllowedScrollAxis
type RetArg = AllowedScrollAxis
§fn as_arg(&self) -> <AllowedScrollAxis as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <AllowedScrollAxis as VariantConstraint>::DataArg<'_>
impl Copy for AllowedScrollAxis
impl Eq for AllowedScrollAxis
impl PropertyTypeConstraint for AllowedScrollAxis
impl StructuralPartialEq for AllowedScrollAxis
Auto Trait Implementations§
impl Freeze for AllowedScrollAxis
impl RefUnwindSafe for AllowedScrollAxis
impl Send for AllowedScrollAxis
impl Sync for AllowedScrollAxis
impl Unpin for AllowedScrollAxis
impl UnwindSafe for AllowedScrollAxis
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