gdk.c.types

C types for gdk3 library

Public Imports

gid.basictypes
public import gid.basictypes;
Undocumented in source.
gdkpixbuf.c.types
public import gdkpixbuf.c.types;
Undocumented in source.
gio.c.types
public import gio.c.types;
Undocumented in source.
pango.c.types
public import pango.c.types;
Undocumented in source.
cairo.c.types
public import cairo.c.types;
Undocumented in source.

Members

Aliases

GdkAtom
alias GdkAtom = GdkAtom_st*

An opaque type representing a string as an index into a table of strings on the X server.

GdkXEvent
alias GdkXEvent = void

Used to represent native events (XEvents for the X11 backend, MSGs for Win32).

Enums

GdkAnchorHints
enum GdkAnchorHints

Positioning hints for aligning a window relative to a rectangle.

GdkAxisFlags
enum GdkAxisFlags

Flags describing the current capabilities of a device/tool.

GdkAxisUse
enum GdkAxisUse

An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK+ understands.

GdkByteOrder
enum GdkByteOrder

A set of values describing the possible byte-orders for storing pixel values in memory.

GdkCrossingMode
enum GdkCrossingMode

Specifies the crossing mode for #GdkEventCrossing.

GdkCursorType
enum GdkCursorType

Predefined cursors.

GdkDevicePadFeature
enum GdkDevicePadFeature

A pad feature.

GdkDeviceToolType
enum GdkDeviceToolType

Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.

GdkDeviceType
enum GdkDeviceType

Indicates the device type. See aboveGdkDeviceManager.description for more information about the meaning of these device types.

GdkDragAction
enum GdkDragAction

Used in #GdkDragContext to indicate what the destination should do with the dropped data.

GdkDragCancelReason
enum GdkDragCancelReason

Used in #GdkDragContext to the reason of a cancelled DND operation.

GdkDragProtocol
enum GdkDragProtocol

Used in #GdkDragContext to indicate the protocol according to which DND is done.

GdkEventMask
enum GdkEventMask

A set of bit-flags to indicate which events a window is to receive. Most of these masks map onto one or more of the #GdkEventType event types above.

GdkEventType
enum GdkEventType

Specifies the type of the event.

GdkFilterReturn
enum GdkFilterReturn

Specifies the result of applying a #GdkFilterFunc to a native event.

GdkFrameClockPhase
enum GdkFrameClockPhase

#GdkFrameClockPhase is used to represent the different paint clock phases that can be requested. The elements of the enumeration correspond to the signals of #GdkFrameClock.

GdkFullscreenMode
enum GdkFullscreenMode

Indicates which monitor (in a multi-head setup) a window should span over when in fullscreen mode.

GdkGLError
enum GdkGLError

Error enumeration for #GdkGLContext.

GdkGrabOwnership
enum GdkGrabOwnership

Defines how device grabs interact with other devices.

GdkGrabStatus
enum GdkGrabStatus

Returned by gdk.device.Device.grab, gdk.global.pointerGrab and gdk.global.keyboardGrab to indicate success or the reason for the failure of the grab attempt.

GdkGravity
enum GdkGravity

Defines the reference point of a window and the meaning of coordinates passed to gtk.window.Window.move. See gtk.window.Window.move and the "implementation notes" section of the Extended Window Manager Hints

specification for more details.

GdkInputMode
enum GdkInputMode

An enumeration that describes the mode of an input device.

GdkInputSource
enum GdkInputSource

An enumeration describing the type of an input device in general terms.

GdkModifierIntent
enum GdkModifierIntent

This enum is used with gdk.keymap.Keymap.getModifierMask in order to determine what modifiers the currently used windowing system backend uses for particular purposes. For example, on X11/Windows, the Control key is used for invoking menu shortcuts (accelerators), whereas on Apple computers it’s the Command key (which correspond to gdk.types.ModifierType.ControlMask and gdk.types.ModifierType.Mod2Mask, respectively).

GdkModifierType
enum GdkModifierType

A set of bit-flags to indicate the state of modifier keys and mouse buttons in various event types. Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.

GdkNotifyType
enum GdkNotifyType

Specifies the kind of crossing for #GdkEventCrossing.

GdkOwnerChange
enum GdkOwnerChange

Specifies why a selection ownership was changed.

GdkPropMode
enum GdkPropMode

Describes how existing data is combined with new data when using gdk.global.propertyChange.

GdkPropertyState
enum GdkPropertyState

Specifies the type of a property change for a #GdkEventProperty.

GdkScrollDirection
enum GdkScrollDirection

Specifies the direction for #GdkEventScroll.

GdkSeatCapabilities
enum GdkSeatCapabilities

Flags describing the seat capabilities.

GdkSettingAction
enum GdkSettingAction

Specifies the kind of modification applied to a setting in a #GdkEventSetting.

GdkStatus
enum GdkStatus
GdkSubpixelLayout
enum GdkSubpixelLayout

This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.

GdkTouchpadGesturePhase
enum GdkTouchpadGesturePhase

Specifies the current state of a touchpad gesture. All gestures are guaranteed to begin with an event with phase gdk.types.TouchpadGesturePhase.Begin, followed by 0 or several events with phase gdk.types.TouchpadGesturePhase.Update.

GdkVisibilityState
enum GdkVisibilityState

Specifies the visiblity status of a window for a #GdkEventVisibility.

GdkVisualType
enum GdkVisualType

A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.

GdkWMDecoration
enum GdkWMDecoration

These are hints originally defined by the Motif toolkit. The window manager can use them when determining how to decorate the window. The hint must be set before mapping the window.

GdkWMFunction
enum GdkWMFunction

These are hints originally defined by the Motif toolkit. The window manager can use them when determining the functions to offer for the window. The hint must be set before mapping the window.

GdkWindowAttributesType
enum GdkWindowAttributesType

Used to indicate which fields in the #GdkWindowAttr struct should be honored. For example, if you filled in the “cursor” and “x” fields of #GdkWindowAttr, pass “@GDK_WA_X | @GDK_WA_CURSOR” to gdk.window.Window.new_. Fields in #GdkWindowAttr not covered by a bit in this enum are required; for example, the @width/@height, @wclass, and @window_type fields are required, they have no corresponding flag in #GdkWindowAttributesType.

GdkWindowEdge
enum GdkWindowEdge

Determines a window edge or corner.

GdkWindowHints
enum GdkWindowHints

Used to indicate which fields of a #GdkGeometry struct should be paid attention to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and @GDK_HINT_USER_SIZE is significant, though they don't directly refer to #GdkGeometry fields. @GDK_HINT_USER_POS will be set automatically by #GtkWindow if you call gtk.window.Window.move. @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE should be set if the user specified a size/position using a --geometry command-line argument; gtk.window.Window.parseGeometry automatically sets these flags.

GdkWindowState
enum GdkWindowState

Specifies the state of a toplevel window.

GdkWindowType
enum GdkWindowType

Describes the kind of window.

GdkWindowTypeHint
enum GdkWindowTypeHint

These are hints for the window manager that indicate what type of function the window has. The window manager can use this when determining decoration and behaviour of the window. The hint must be set before mapping the window.

GdkWindowWindowClass
enum GdkWindowWindowClass

@GDK_INPUT_OUTPUT windows are the standard kind of window you might expect. Such windows receive events and are also displayed on screen. @GDK_INPUT_ONLY windows are invisible; they are usually placed above other windows in order to trap or filter the events. You can’t draw on @GDK_INPUT_ONLY windows.

Structs

GdkAppLaunchContext
struct GdkAppLaunchContext

GdkAppLaunchContext is an implementation of #GAppLaunchContext that handles launching an application in a graphical context. It provides startup notification and allows to launch applications on a specific screen or workspace.

GdkColor
struct GdkColor

A #GdkColor is used to describe a color, similar to the XColor struct used in the X11 drawing API.

GdkCursor
struct GdkCursor

A #GdkCursor represents a cursor. Its contents are private.

GdkDevice
struct GdkDevice

The #GdkDevice object represents a single input device, such as a keyboard, a mouse, a touchpad, etc.

GdkDeviceManager
struct GdkDeviceManager

In addition to a single pointer and keyboard for user interface input, GDK contains support for a variety of input devices, including graphics tablets, touchscreens and multiple pointers/keyboards interacting simultaneously with the user interface. Such input devices often have additional features, such as sub-pixel positioning information and additional device-dependent information.

GdkDevicePad
struct GdkDevicePad

#GdkDevicePad is an interface implemented by devices of type gdk.types.InputSource.TabletPad, it allows querying the features provided by the pad device.

GdkDevicePadInterface
struct GdkDevicePadInterface
GdkDeviceTool
struct GdkDeviceTool
GdkDisplay
struct GdkDisplay

#GdkDisplay objects purpose are two fold:

GdkDisplayManager
struct GdkDisplayManager

The purpose of the #GdkDisplayManager singleton object is to offer notification when displays appear or disappear or the default display changes.

GdkDragContext
struct GdkDragContext
GdkDrawingContext
struct GdkDrawingContext

#GdkDrawingContext is an object that represents the current drawing state of a #GdkWindow.

GdkDrawingContextClass
struct GdkDrawingContextClass
GdkEventAny
struct GdkEventAny

Contains the fields which are common to all event structs. Any event pointer can safely be cast to a pointer to a #GdkEventAny to access these fields.

GdkEventButton
struct GdkEventButton

Used for button press and button release events. The @type field will be one of gdk.types.EventType.ButtonPress, gdk.types.EventType._2buttonPress, gdk.types.EventType._3buttonPress or gdk.types.EventType.ButtonRelease,

GdkEventConfigure
struct GdkEventConfigure

Generated when a window size or position has changed.

GdkEventCrossing
struct GdkEventCrossing

Generated when the pointer enters or leaves a window.

GdkEventDND
struct GdkEventDND

Generated during DND operations.

GdkEventExpose
struct GdkEventExpose

Generated when all or part of a window becomes visible and needs to be redrawn.

GdkEventFocus
struct GdkEventFocus

Describes a change of keyboard focus.

GdkEventGrabBroken
struct GdkEventGrabBroken

Generated when a pointer or keyboard grab is broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again. Note that implicit grabs (which are initiated by button presses) can also cause #GdkEventGrabBroken events.

GdkEventKey
struct GdkEventKey

Describes a key press or key release event.

GdkEventMotion
struct GdkEventMotion

Generated when the pointer moves.

GdkEventOwnerChange
struct GdkEventOwnerChange

Generated when the owner of a selection changes. On X11, this information is only available if the X server supports the XFIXES extension.

GdkEventPadAxis
struct GdkEventPadAxis

Generated during gdk.types.InputSource.TabletPad interaction with tactile sensors.

GdkEventPadButton
struct GdkEventPadButton

Generated during gdk.types.InputSource.TabletPad button presses and releases.

GdkEventPadGroupMode
struct GdkEventPadGroupMode

Generated during gdk.types.InputSource.TabletPad mode switches in a group.

GdkEventProperty
struct GdkEventProperty

Describes a property change on a window.

GdkEventProximity
struct GdkEventProximity

Proximity events are generated when using GDK’s wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user’s finger has moved in or out of contact with a touch screen.

GdkEventScroll
struct GdkEventScroll

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

GdkEventSelection
struct GdkEventSelection

Generated when a selection is requested or ownership of a selection is taken over by another client application.

GdkEventSequence
struct GdkEventSequence
GdkEventSetting
struct GdkEventSetting

Generated when a setting is modified.

GdkEventTouch
struct GdkEventTouch

Used for touch events. @type field will be one of gdk.types.EventType.TouchBegin, gdk.types.EventType.TouchUpdate, gdk.types.EventType.TouchEnd or gdk.types.EventType.TouchCancel.

GdkEventTouchpadPinch
struct GdkEventTouchpadPinch

Generated during touchpad swipe gestures.

GdkEventTouchpadSwipe
struct GdkEventTouchpadSwipe

Generated during touchpad swipe gestures.

GdkEventVisibility
struct GdkEventVisibility

Generated when the window visibility status has changed.

GdkEventWindowState
struct GdkEventWindowState

Generated when the state of a toplevel window changes.

GdkFrameClock
struct GdkFrameClock

A #GdkFrameClock tells the application when to update and repaint a window. This may be synced to the vertical refresh rate of the monitor, for example. Even when the frame clock uses a simple timer rather than a hardware-based vertical sync, the frame clock helps because it ensures everything paints at the same time (reducing the total number of frames). The frame clock can also automatically stop painting when it knows the frames will not be visible, or scale back animation framerates.

GdkFrameClockClass
struct GdkFrameClockClass
GdkFrameClockPrivate
struct GdkFrameClockPrivate
GdkFrameTimings
struct GdkFrameTimings

A #GdkFrameTimings object holds timing information for a single frame of the application’s displays. To retrieve #GdkFrameTimings objects, use gdk.frame_clock.FrameClock.getTimings or gdk.frame_clock.FrameClock.getCurrentTimings. The information in #GdkFrameTimings is useful for precise synchronization of video with the event or audio streams, and for measuring quality metrics for the application’s display, such as latency and jitter.

GdkGLContext
struct GdkGLContext

#GdkGLContext is an object representing the platform-specific OpenGL drawing context.

GdkGeometry
struct GdkGeometry

The #GdkGeometry struct gives the window manager information about a window’s geometry constraints. Normally you would set these on the GTK+ level using gtk.window.Window.setGeometryHints. #GtkWindow then sets the hints on the #GdkWindow it creates.

GdkKeymap
struct GdkKeymap

A #GdkKeymap defines the translation from keyboard state (including a hardware key, a modifier mask, and active keyboard group) to a keyval. This translation has two phases. The first phase is to determine the effective keyboard group and level for the keyboard state; the second phase is to look up the keycode/group/level triplet in the keymap and see what keyval it corresponds to.

GdkKeymapKey
struct GdkKeymapKey

A #GdkKeymapKey is a hardware key that can be mapped to a keyval.

GdkMonitor
struct GdkMonitor

GdkMonitor objects represent the individual outputs that are associated with a #GdkDisplay. GdkDisplay has APIs to enumerate monitors with gdk.display.Display.getNMonitors and gdk.display.Display.getMonitor, and to find particular monitors with gdk.display.Display.getPrimaryMonitor or gdk.display.Display.getMonitorAtWindow.

GdkMonitorClass
struct GdkMonitorClass
GdkPoint
struct GdkPoint

Defines the x and y coordinates of a point.

GdkRGBA
struct GdkRGBA

A #GdkRGBA is used to represent a (possibly translucent) color, in a way that is compatible with cairo’s notion of color.

GdkRectangle
struct GdkRectangle

Defines the position and size of a rectangle. It is identical to #cairo_rectangle_int_t.

GdkScreen
struct GdkScreen

#GdkScreen objects are the GDK representation of the screen on which windows can be displayed and on which the pointer moves. X originally identified screens with physical screens, but nowadays it is more common to have a single #GdkScreen which combines several physical monitors (see gdk.screen.Screen.getNMonitors).

GdkSeat
struct GdkSeat

The #GdkSeat object represents a collection of input devices that belong to a user.

GdkTimeCoord
struct GdkTimeCoord

A #GdkTimeCoord stores a single event in a motion history.

GdkVisual
struct GdkVisual

A #GdkVisual contains information about a particular visual.

GdkWindow
struct GdkWindow
GdkWindowAttr
struct GdkWindowAttr

Attributes to use for a newly-created window.

GdkWindowClass
struct GdkWindowClass
GdkWindowRedirect
struct GdkWindowRedirect

Unions

GdkEvent
union GdkEvent

A #GdkEvent contains a union of all of the event types, and allows access to the data fields in a number of ways.