gdk.c.types

Undocumented in source.

Public Imports

cairo.c.types
public import cairo.c.types;
gdkpixbuf.c.types
public import gdkpixbuf.c.types;
gio.c.types
public import gio.c.types;
glib.c.types
public import glib.c.types;
gobject.c.types
public import gobject.c.types;
pango.c.types
public import pango.c.types;

Members

Aliases

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 Event.handlerSet 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 Window.invalidateMaybeRecurse. 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).

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 gdk.DragContext to indicate what the destination should do with the dropped data.

GdkDragCancelReason
enum GdkDragCancelReason

Used in gdk.DragContext to the reason of a cancelled DND operation.

GdkDragProtocol
enum GdkDragProtocol

Used in gdk.DragContext 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 gdk.FrameClock

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 gdk.GLContext

GdkGrabOwnership
enum GdkGrabOwnership

Defines how device grabs interact with other devices.

GdkGrabStatus
enum GdkGrabStatus

Returned by 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 Window.move. See 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 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_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

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 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 gtk.Window if you call 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; 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.

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.

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

GdkColor
struct GdkColor

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.

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.

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 Window.setGeometryHints. gtk.Window then sets the hints on the gdk.Window it creates.

GdkKeymapKey
struct GdkKeymapKey

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

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

GdkTimeCoord
struct GdkTimeCoord

A GdkTimeCoord stores a single event in a motion history.

GdkWindowAttr
struct GdkWindowAttr

Attributes to use for a newly-created window.

GdkWindowClass
struct GdkWindowClass

Undocumented in source.