EventPadButtonProtocol
public protocol EventPadButtonProtocol
The EventPadButtonProtocol
protocol exposes the methods and properties of an underlying GdkEventPadButton
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see EventPadButton
.
Alternatively, use EventPadButtonRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
Generated during GDK_SOURCE_TABLET_PAD
button presses and releases.
-
Untyped pointer to the underlying
GdkEventPadButton
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkEventPadButton
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventPadButton
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventPadButton>! { get }
-
Required Initialiser for types conforming to
EventPadButtonProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
type
Extension methodthe type of the event (
GDK_PAD_BUTTON_PRESS
orGDK_PAD_BUTTON_RELEASE
).Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set }
-
sendEvent
Extension methodtrue
if the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set }
-
time
Extension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set }
-
group
Extension methodthe pad group the button belongs to. A
GDK_SOURCE_TABLET_PAD
device may have one or more groups containing a set of buttons/rings/strips each.Declaration
Swift
@inlinable var group: guint { get set }
-
button
Extension methodThe pad button that was pressed.
Declaration
Swift
@inlinable var button: guint { get set }
-
mode
Extension methodThe current mode of
group
. Different groups in aGDK_SOURCE_TABLET_PAD
device may have different current modes.Declaration
Swift
@inlinable var mode: guint { get set }