Enum gdk::AxisUse [−][src]
#[non_exhaustive]
pub enum AxisUse {
Ignore,
X,
Y,
Pressure,
Xtilt,
Ytilt,
Wheel,
Distance,
Rotation,
Slider,
Last,
// some variants omitted
}Expand description
An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.
Note that the X and Y axes are not really needed; pointer devices report their location via the x/y members of events regardless. Whether X and Y are present as axes depends on the GDK backend.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
the axis is ignored.
the axis is used as the x axis.
the axis is used as the y axis.
the axis is used for pressure information.
the axis is used for x tilt information.
the axis is used for y tilt information.
the axis is used for wheel information.
the axis is used for pen/tablet distance information. (Since: 3.22)
the axis is used for pen rotation information. (Since: 3.22)
the axis is used for pen slider information. (Since: 3.22)
a constant equal to the numerically highest axis value.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>Value type checker.
Get the contained value from a Value. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for AxisUseimpl UnwindSafe for AxisUseBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.