enum Gdk::AxisUse

Overview

Defines how device axes are interpreted by GTK.

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.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/gdk.cr

Enum Members

Ignore = 0_u32

the axis is ignored.

X = 1_u32

the axis is used as the x axis.

Y = 2_u32

the axis is used as the y axis.

DeltaX = 3_u32

the axis is used as the scroll x delta

DeltaY = 4_u32

the axis is used as the scroll y delta

Pressure = 5_u32

the axis is used for pressure information.

Xtilt = 6_u32

the axis is used for x tilt information.

Ytilt = 7_u32

the axis is used for y tilt information.

Wheel = 8_u32

the axis is used for wheel information.

Distance = 9_u32

the axis is used for pen/tablet distance information

Rotation = 10_u32

the axis is used for pen rotation information

Slider = 11_u32

the axis is used for pen slider information

Last = 12_u32

a constant equal to the numerically highest axis value.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def delta_x? #

[View source]
def delta_y? #

[View source]
def distance? #

[View source]
def ignore? #

[View source]
def last? #

[View source]
def pressure? #

[View source]
def rotation? #

[View source]
def slider? #

[View source]
def wheel? #

[View source]
def x? #

[View source]
def xtilt? #

[View source]
def y? #

[View source]
def ytilt? #

[View source]