Type Aliases
The following type aliases are available globally.
-
The type of a function that can be registered with
gdk_content_register_deserializer()
.When the function gets called to operate on content, it can call functions on the
deserializer
object to obtain the mime type, input stream, user data, etc. for its operation.Declaration
Swift
public typealias ContentDeserializeFunc = GdkContentDeserializeFunc
-
The type of a function that can be registered with
gdk_content_register_serializer()
.When the function gets called to operate on content, it can call functions on the
serializer
object to obtain the mime type, output stream, user data, etc. for its operation.Declaration
Swift
public typealias ContentSerializeFunc = GdkContentSerializeFunc
-
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.
Declaration
Swift
public typealias AxisUse = GdkAxisUse
-
Specifies the crossing mode for enter and leave events.
Declaration
Swift
public typealias CrossingMode = GdkCrossingMode
-
A pad feature.
Declaration
Swift
public typealias DevicePadFeature = GdkDevicePadFeature
-
Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.
Declaration
Swift
public typealias DeviceToolType = GdkDeviceToolType
-
Used in
GdkDrag
to the reason of a cancelled DND operation.Declaration
Swift
public typealias DragCancelReason = GdkDragCancelReason
-
Specifies the type of the event.
Declaration
Swift
public typealias EventType = GdkEventType
-
Indicates which monitor a surface should span over when in fullscreen mode.
Declaration
Swift
public typealias FullscreenMode = GdkFullscreenMode
-
Error enumeration for
GdkGLContext
.Declaration
Swift
public typealias GLError = GdkGLError
-
Defines the reference point of a surface and is used in
GdkPopupLayout
.Declaration
Swift
public typealias Gravity = GdkGravity
-
An enumeration describing the type of an input device in general terms.
Declaration
Swift
public typealias InputSource = GdkInputSource
-
Describes how well an event matches a given keyval and modifiers.
GdkKeyMatch
values are returned by [methodGdk.KeyEvent.matches
].Declaration
Swift
public typealias KeyMatch = GdkKeyMatch
-
GdkMemoryFormat
describes a format that bytes can have in memory.It describes formats by listing the contents of the memory passed to it. So GDK_MEMORY_A8R8G8B8 will be 1 byte (8 bits) of alpha, followed by a byte each of red, green and blue. It is not endian-dependent, so CAIRO_FORMAT_ARGB32 is represented by different
GdkMemoryFormats
on architectures with different endiannesses.Its naming is modelled after VkFormat (see https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html`VkFormat` for details).
Declaration
Swift
public typealias MemoryFormat = GdkMemoryFormat
-
Specifies the kind of crossing for enter and leave events.
See the X11 protocol specification of LeaveNotify for full details of crossing event generation.
Declaration
Swift
public typealias NotifyType = GdkNotifyType
-
Specifies the direction for scroll events.
Declaration
Swift
public typealias ScrollDirection = GdkScrollDirection
-
This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.
Declaration
Swift
public typealias SubpixelLayout = GdkSubpixelLayout
-
Determines a surface edge or corner.
Declaration
Swift
public typealias SurfaceEdge = GdkSurfaceEdge
-
Specifies the current state of a touchpad gesture.
All gestures are guaranteed to begin with an event with phase
GDK_TOUCHPAD_GESTURE_PHASE_BEGIN
, followed by 0 or several events with phaseGDK_TOUCHPAD_GESTURE_PHASE_UPDATE
.A finished gesture may have 2 possible outcomes, an event with phase
GDK_TOUCHPAD_GESTURE_PHASE_END
will be emitted when the gesture is considered successful, this should be used as the hint to perform any permanent changes.Cancelled gestures may be so for a variety of reasons, due to hardware or the compositor, or due to the gesture recognition layers hinting the gesture did not finish resolutely (eg. a 3rd finger being added during a pinch gesture). In these cases, the last event will report the phase
GDK_TOUCHPAD_GESTURE_PHASE_CANCEL
, this should be used as a hint to undo any visible/permanent changes that were done throughout the progress of the gesture.Declaration
Swift
public typealias TouchpadGesturePhase = GdkTouchpadGesturePhase
-
Error enumeration for
GdkVulkanContext
.Declaration
Swift
public typealias VulkanError = GdkVulkanError
-
Undocumented
Declaration
Swift
public typealias GdkXEvent = _GdkXEvent