gdk.c.types

Undocumented in source.

Public Imports

cairo.c.types
public import cairo.c.types;
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.
glib.c.types
public import glib.c.types;
Undocumented in source.
gobject.c.types
public import gobject.c.types;
Undocumented in source.
pango.c.types
public import pango.c.types;
Undocumented in source.

Members

Aliases

AnchorHints
alias AnchorHints = GdkAnchorHints
Undocumented in source.
AxisFlags
alias AxisFlags = GdkAxisFlags
Undocumented in source.
AxisUse
alias AxisUse = GdkAxisUse
Undocumented in source.
ByteOrder
alias ByteOrder = GdkByteOrder
Undocumented in source.
CrossingMode
alias CrossingMode = GdkCrossingMode
Undocumented in source.
CursorType
alias CursorType = GdkCursorType
Undocumented in source.
DevicePadFeature
alias DevicePadFeature = GdkDevicePadFeature
Undocumented in source.
DeviceToolType
alias DeviceToolType = GdkDeviceToolType
Undocumented in source.
DeviceType
alias DeviceType = GdkDeviceType
Undocumented in source.
DragAction
alias DragAction = GdkDragAction
Undocumented in source.
DragCancelReason
alias DragCancelReason = GdkDragCancelReason
Undocumented in source.
DragProtocol
alias DragProtocol = GdkDragProtocol
Undocumented in source.
EventMask
alias EventMask = GdkEventMask
Undocumented in source.
EventType
alias EventType = GdkEventType
Undocumented in source.
FilterReturn
alias FilterReturn = GdkFilterReturn
Undocumented in source.
FrameClockPhase
alias FrameClockPhase = GdkFrameClockPhase
Undocumented in source.
FullscreenMode
alias FullscreenMode = GdkFullscreenMode
Undocumented in source.
GDK_BUTTON_MIDDLE
alias GDK_BUTTON_MIDDLE = BUTTON_MIDDLE
Undocumented in source.
GDK_BUTTON_PRIMARY
alias GDK_BUTTON_PRIMARY = BUTTON_PRIMARY
Undocumented in source.
GDK_BUTTON_SECONDARY
alias GDK_BUTTON_SECONDARY = BUTTON_SECONDARY
Undocumented in source.
GDK_CURRENT_TIME
alias GDK_CURRENT_TIME = CURRENT_TIME
Undocumented in source.
GDK_EVENT_PROPAGATE
alias GDK_EVENT_PROPAGATE = EVENT_PROPAGATE
Undocumented in source.
GDK_EVENT_STOP
alias GDK_EVENT_STOP = EVENT_STOP
Undocumented in source.
GDK_MAX_TIMECOORD_AXES
alias GDK_MAX_TIMECOORD_AXES = MAX_TIMECOORD_AXES
Undocumented in source.
GDK_PARENT_RELATIVE
alias GDK_PARENT_RELATIVE = PARENT_RELATIVE
Undocumented in source.
GDK_PRIORITY_REDRAW
alias GDK_PRIORITY_REDRAW = PRIORITY_REDRAW
Undocumented in source.
GLError
alias GLError = GdkGLError
Undocumented in source.
GdkAtom
alias GdkAtom = _GdkAtom*

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

GdkEventFunc
alias GdkEventFunc = void function(GdkEvent* event, void* data)

Specifies the type of function passed to gdk_event_handler_set() to handle all GDK events.

GdkFilterFunc
alias GdkFilterFunc = GdkFilterReturn function(GdkXEvent* xevent, GdkEvent* event, void* data)

Specifies the type of function used to filter native events before they are converted to GDK events.

GdkSeatGrabPrepareFunc
alias GdkSeatGrabPrepareFunc = void function(GdkSeat* seat, GdkWindow* window, void* userData)

Type of the callback used to set up @window so it can be grabbed. A typical action would be ensuring the window is visible, although there's room for other initialization actions.

GdkWindowChildFunc
alias GdkWindowChildFunc = int function(GdkWindow* window, void* userData)

A function of this type is passed to gdk_window_invalidate_maybe_recurse(). It gets called for each child of the window to determine whether to recursively invalidate it or now.

GdkWindowInvalidateHandlerFunc
alias GdkWindowInvalidateHandlerFunc = void function(GdkWindow* window, cairo_region_t* region)

Whenever some area of the window is invalidated (directly in the window or in a child window) this gets called with @region in the coordinate space of @window. You can use @region to just keep track of the dirty region, or you can actually change @region in case you are doing display tricks like showing a child in multiple places.

GdkXEvent
alias GdkXEvent = void

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

GrabOwnership
alias GrabOwnership = GdkGrabOwnership
Undocumented in source.
GrabStatus
alias GrabStatus = GdkGrabStatus
Undocumented in source.
Gravity
alias Gravity = GdkGravity
Undocumented in source.
InputMode
alias InputMode = GdkInputMode
Undocumented in source.
InputSource
alias InputSource = GdkInputSource
Undocumented in source.
ModifierIntent
alias ModifierIntent = GdkModifierIntent
Undocumented in source.
ModifierType
alias ModifierType = GdkModifierType
Undocumented in source.
NotifyType
alias NotifyType = GdkNotifyType
Undocumented in source.
OwnerChange
alias OwnerChange = GdkOwnerChange
Undocumented in source.
PropMode
alias PropMode = GdkPropMode
Undocumented in source.
PropertyState
alias PropertyState = GdkPropertyState
Undocumented in source.
ScrollDirection
alias ScrollDirection = GdkScrollDirection
Undocumented in source.
SeatCapabilities
alias SeatCapabilities = GdkSeatCapabilities
Undocumented in source.
SettingAction
alias SettingAction = GdkSettingAction
Undocumented in source.
Status
alias Status = GdkStatus
Undocumented in source.
SubpixelLayout
alias SubpixelLayout = GdkSubpixelLayout
Undocumented in source.
TouchpadGesturePhase
alias TouchpadGesturePhase = GdkTouchpadGesturePhase
Undocumented in source.
VisibilityState
alias VisibilityState = GdkVisibilityState
Undocumented in source.
VisualType
alias VisualType = GdkVisualType
Undocumented in source.
WMDecoration
alias WMDecoration = GdkWMDecoration
Undocumented in source.
WMFunction
alias WMFunction = GdkWMFunction
Undocumented in source.
WindowAttributesType
alias WindowAttributesType = GdkWindowAttributesType
Undocumented in source.
WindowEdge
alias WindowEdge = GdkWindowEdge
Undocumented in source.
WindowHints
alias WindowHints = GdkWindowHints
Undocumented in source.
WindowState
alias WindowState = GdkWindowState
Undocumented in source.
WindowType
alias WindowType = GdkWindowType
Undocumented in source.
WindowTypeHint
alias WindowTypeHint = GdkWindowTypeHint
Undocumented in source.
WindowWindowClass
alias WindowWindowClass = GdkWindowWindowClass
Undocumented in source.

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_grab(), gdk_pointer_grab() and gdk_keyboard_grab() 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_move(). See gtk_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_get_modifier_mask() 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_CONTROL_MASK and %GDK_MOD2_MASK, 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_property_change().

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
Undocumented in source.
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_TOUCHPAD_GESTURE_PHASE_BEGIN, followed by 0 or several events with phase %GDK_TOUCHPAD_GESTURE_PHASE_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_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_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_parse_geometry() 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.

Manifest constants

BUTTON_MIDDLE
enum BUTTON_MIDDLE;

The middle button.

BUTTON_PRIMARY
enum BUTTON_PRIMARY;

The primary button. This is typically the left mouse button, or the right button in a left-handed setup.

BUTTON_SECONDARY
enum BUTTON_SECONDARY;

The secondary button. This is typically the right mouse button, or the left button in a left-handed setup.

CURRENT_TIME
enum CURRENT_TIME;

Represents the current time, and can be used anywhere a time is expected.

EVENT_PROPAGATE
enum EVENT_PROPAGATE;

Use this macro as the return value for continuing the propagation of an event handler.

EVENT_STOP
enum EVENT_STOP;

Use this macro as the return value for stopping the propagation of an event handler.

MAX_TIMECOORD_AXES
enum MAX_TIMECOORD_AXES;
Undocumented in source.
PARENT_RELATIVE
enum PARENT_RELATIVE;

A special value, indicating that the background for a window should be inherited from the parent window.

PRIORITY_REDRAW
enum PRIORITY_REDRAW;

This is the priority that the idle handler processing window updates is given in the [GLib Main Loop][glib-The-Main-Event-Loop].

Structs

GdkAppLaunchContext
struct GdkAppLaunchContext
Undocumented in source.
GdkColor
struct GdkColor
Undocumented in source.
GdkCursor
struct GdkCursor
Undocumented in source.
GdkDevice
struct GdkDevice
Undocumented in source.
GdkDeviceManager
struct GdkDeviceManager
Undocumented in source.
GdkDevicePad
struct GdkDevicePad
Undocumented in source.
GdkDevicePadInterface
struct GdkDevicePadInterface
Undocumented in source.
GdkDeviceTool
struct GdkDeviceTool
Undocumented in source.
GdkDisplay
struct GdkDisplay
Undocumented in source.
GdkDisplayManager
struct GdkDisplayManager
Undocumented in source.
GdkDragContext
struct GdkDragContext
Undocumented in source.
GdkDrawingContext
struct GdkDrawingContext
Undocumented in source.
GdkDrawingContextClass
struct GdkDrawingContextClass
Undocumented in source.
GdkEvent
struct GdkEvent
Undocumented in source.
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_BUTTON_PRESS, %GDK_2BUTTON_PRESS, %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE,

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_SOURCE_TABLET_PAD interaction with tactile sensors.

GdkEventPadButton
struct GdkEventPadButton

Generated during %GDK_SOURCE_TABLET_PAD button presses and releases.

GdkEventPadGroupMode
struct GdkEventPadGroupMode

Generated during %GDK_SOURCE_TABLET_PAD 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
Undocumented in source.
GdkEventSetting
struct GdkEventSetting

Generated when a setting is modified.

GdkEventTouch
struct GdkEventTouch

Used for touch events. @type field will be one of %GDK_TOUCH_BEGIN, %GDK_TOUCH_UPDATE, %GDK_TOUCH_END or %GDK_TOUCH_CANCEL.

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
Undocumented in source.
GdkFrameClockClass
struct GdkFrameClockClass
Undocumented in source.
GdkFrameClockPrivate
struct GdkFrameClockPrivate
Undocumented in source.
GdkFrameTimings
struct GdkFrameTimings
Undocumented in source.
GdkGLContext
struct GdkGLContext
Undocumented in source.
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_set_geometry_hints(). #GtkWindow then sets the hints on the #GdkWindow it creates.

GdkKeymap
struct GdkKeymap
Undocumented in source.
GdkKeymapKey
struct GdkKeymapKey

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

GdkMonitor
struct GdkMonitor
Undocumented in source.
GdkMonitorClass
struct GdkMonitorClass
Undocumented in source.
GdkPoint
struct GdkPoint

Defines the x and y coordinates of a point.

GdkRGBA
struct GdkRGBA
Undocumented in source.
GdkRectangle
struct GdkRectangle

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

GdkScreen
struct GdkScreen
Undocumented in source.
GdkSeat
struct GdkSeat
Undocumented in source.
GdkTimeCoord
struct GdkTimeCoord

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

GdkVisual
struct GdkVisual
Undocumented in source.
GdkWindow
struct GdkWindow
Undocumented in source.
GdkWindowAttr
struct GdkWindowAttr

Attributes to use for a newly-created window.

GdkWindowClass
struct GdkWindowClass
Undocumented in source.
GdkWindowRedirect
struct GdkWindowRedirect
Undocumented in source.
GdkX11Window
struct GdkX11Window
Undocumented in source.
GdkX11WindowClass
struct GdkX11WindowClass
Undocumented in source.
_GdkAtom
struct _GdkAtom
Undocumented in source.

Meta