Namespace
Gdk – 4.0
The GTK toolkit
Dependencies
GObject—2.0 | The base type system library |
Browse documentation | |
Gio—2.0 | GObject Interfaces and Objects, Networking, IPC, and I/O |
Browse documentation | |
GdkPixbuf—2.0 | Image data loading |
Browse documentation | |
cairo—1.0 | A 2D graphics library with support for multiple output devices |
Browse documentation | |
Pango—1.0 | Text shaping and rendering |
Browse documentation |
Related libraries
GdkWayland | GDK Wayland Backend |
Browse documentation | |
GdkX11 | GDK X11 Backend |
Browse documentation |
Classes
AppLaunchContext | Handles launching an application in a graphical context. |
ButtonEvent | An event related to a button on a pointer device. |
CairoContext | Represents the platform-specific draw context. |
CicpParams | Contains the parameters that define a colorstate with cicp parameters. since: 4.16 |
Clipboard | Represents data shared between applications or inside an application. |
ContentDeserializer | Deserializes content received via inter-application data transfers. |
ContentProvider | Provides content for the clipboard or for drag-and-drop operations in a number of formats. |
ContentSerializer | Serializes content for inter-application data transfers. |
CrossingEvent | An event caused by a pointing device moving between surfaces. |
Cursor | Used to create and destroy cursors. |
DeleteEvent | An event related to closing a top-level surface. |
Device | Represents an input device, such as a keyboard, mouse or touchpad. |
DeviceTool | A physical tool associated to a |
Display | A representation of a workstation. |
DisplayManager | Offers notification when displays appear or disappear. |
DmabufTexture | A since: 4.14 |
DmabufTextureBuilder | Constructs since: 4.14 |
DNDEvent | An event related to drag and drop operations. |
Drag | Represents the source of an ongoing DND operation. |
DrawContext | Base class for objects implementing different rendering methods. |
Drop | Represents the target of an ongoing DND operation. |
Event | Represents windowing system events. |
FocusEvent | An event related to a keyboard focus change. |
FrameClock | Tells the application when to update and repaint a surface. |
GLContext | Represents a platform-specific OpenGL draw context. |
GLTexture | A |
GLTextureBuilder | Constructs since: 4.12 |
GrabBrokenEvent | An event related to a broken windowing system grab. |
KeyEvent | An event related to a key-based device. |
MemoryTexture | A |
MemoryTextureBuilder | Constructs since: 4.16 |
Monitor | Represents the individual outputs that are associated with a |
MotionEvent | An event related to a pointer or touch device motion. |
PadEvent | An event related to a pad-based device. |
ProximityEvent | An event related to the proximity of a tool to a device. |
ScrollEvent | An event related to a scrolling motion. |
Seat | Represents a collection of input devices that belong to a user. |
Snapshot | Base type for snapshot operations. |
Surface | Represents a rectangular region on the screen. |
Texture | Refers to pixel data in various forms. |
TouchEvent | An event related to a touch-based device. |
TouchpadEvent | An event related to a gesture on a touchpad device. |
VulkanContext | Represents the platform-specific Vulkan draw context. deprecated: 4.14 |
Interfaces
DevicePad | An interface for tablet pad devices. |
DragSurface | A surface that is used during DND. |
Paintable | An interface for content that can be painted. |
Popup | A surface that is attached to another surface. |
Toplevel | A freestanding toplevel surface. |
Structs
ColorState | Provides information to interpret colors and pixels in a variety of ways. since: 4.16 |
ContentFormats | Used to advertise and negotiate the format of content. |
ContentFormatsBuilder | Creates |
DmabufFormats | Provides information about supported DMA buffer formats. since: 4.14 |
DragSurfaceSize | Contains information that is useful to compute the size of a drag surface. since: 4.12 |
EventSequence | An opaque type representing a sequence of related events. |
FileList | An opaque type representing a list of files. since: 4.6 |
FrameTimings | Holds timing information for a single frame of the application’s displays. |
KeymapKey | Represents a hardware key that can be mapped to a keyval. |
PopupLayout | Contains information that is necessary position a |
Rectangle | Represents a rectangle. |
RGBA | Represents a color, in a way that is compatible with cairo’s notion of color. |
TextureDownloader | Used to download the contents of a since: 4.10 |
TimeCoord | Stores a single event in a motion history. |
ToplevelLayout | Contains information that is necessary to present a sovereign window on screen. |
ToplevelSize | Contains information that is useful to compute the size of a toplevel. |
Enumerations
AxisUse | Defines how device axes are interpreted by GTK. |
CicpRange | The values of this enumeration describe whether image data uses the full range of 8-bit values. since: 4.16 |
CrossingMode | Specifies the crossing mode for enter and leave events. |
DevicePadFeature | A pad feature. |
DeviceToolType | Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc. |
DragCancelReason | Used in |
EventType | Specifies the type of the event. |
FullscreenMode | Indicates which monitor a surface should span over when in fullscreen mode. |
Gravity | Defines the reference point of a surface and is used in |
InputSource | An enumeration describing the type of an input device in general terms. |
KeyMatch | Describes how well an event matches a given keyval and modifiers. |
MemoryFormat | Describes formats that image data can have in memory. |
NotifyType | Specifies the kind of crossing for enter and leave events. |
ScrollDirection | Specifies the direction for scroll events. |
ScrollRelativeDirection | Used in scroll events, to announce the direction relative to physical motion. since: 4.20 |
ScrollUnit | Specifies the unit of scroll deltas. since: 4.8 |
SubpixelLayout | This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out. |
SurfaceEdge | Determines a surface edge or corner. |
TitlebarGesture | The kind of title bar gesture to emit with since: 4.4 |
TouchpadGesturePhase | Specifies the current state of a touchpad gesture. |
Bitfields
AnchorHints | Positioning hints for aligning a surface relative to a rectangle. |
AxisFlags | Flags describing the current capabilities of a device/tool. |
DragAction | Used in |
FrameClockPhase | Used to represent the different paint clock phases that can be requested. |
GLAPI | The list of the different APIs that GdkGLContext can potentially support. since: 4.6 |
ModifierType | Flags to indicate the state of modifier keys and mouse buttons in events. |
PaintableFlags | Flags about a paintable object. |
SeatCapabilities | Flags describing the seat capabilities. |
ToplevelCapabilities | Reflects what features a since: 4.20 |
ToplevelState | Specifies the state of a toplevel surface. |
Error Domains
DmabufError | Error enumeration for since: 4.14 |
GLError | Error enumeration for |
TextureError | Possible errors that can be returned by since: 4.6 |
VulkanError | Error enumeration for |
Callbacks
ContentDeserializeFunc | The type of a function that can be registered with gdk_content_register_deserializer(). |
ContentSerializeFunc | The type of a function that can be registered with gdk_content_register_serializer(). |
CursorGetTextureCallback | The type of callback used by a dynamic |
Functions
cairo_draw_from_gl | Draws GL content onto a cairo context. deprecated: 4.6 |
cairo_rectangle | Adds the given rectangle to the current path of |
cairo_region | Adds the given region to the current path of |
cairo_region_create_from_surface | Creates region that covers the area where the given |
cairo_set_source_pixbuf | Sets the given pixbuf as the source pattern for deprecated: 4.20 |
cairo_set_source_rgba | Sets the specified |
content_deserialize_async | Reads content from the given input stream and deserialize it, asynchronously. |
content_deserialize_finish | Finishes a content deserialization operation. |
content_register_deserializer | Registers a function to deserialize object of a given type. |
content_register_serializer | Registers a function to serialize objects of a given type. |
content_serialize_async | Serialize content and write it to the given output stream, asynchronously. |
content_serialize_finish | Finishes a content serialization operation. |
events_get_angle | Returns the relative angle from |
events_get_center | Returns the point halfway between the events’ positions. |
events_get_distance | Returns the distance between the event locations. |
intern_mime_type | Canonicalizes the given mime type and interns the result. |
keyval_convert_case | Obtains the upper- and lower-case versions of the keyval |
keyval_from_name | Converts a key name to a key value. |
keyval_is_lower | Returns true if the given key value is in lower case. |
keyval_is_upper | Returns true if the given key value is in upper case. |
keyval_name | Converts a key value into a symbolic name. |
keyval_to_lower | Converts a key value to lower case, if applicable. |
keyval_to_unicode | Converts from a GDK key symbol to the corresponding Unicode character. |
keyval_to_upper | Converts a key value to upper case, if applicable. |
pango_layout_get_clip_region | Obtains a clip region which contains the areas where the given ranges of text would be drawn. |
pango_layout_line_get_clip_region | Obtains a clip region which contains the areas where the given ranges of text would be drawn. |
pixbuf_get_from_surface | Transfers image data from a deprecated: 4.12 |
pixbuf_get_from_texture | Creates a new pixbuf from deprecated: 4.12 |
set_allowed_backends | Sets a list of backends that GDK should try to use. |
unicode_to_keyval | Converts from a Unicode character to a key symbol. |