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. since: 4.0 |
| ButtonEvent |
An event related to a button on a pointer device. since: 4.0 |
| CairoContext |
Represents the platform-specific draw context. since: 4.0 |
| CicpParams |
Contains the parameters that define a colorstate with cicp parameters. since: 4.16 |
| Clipboard |
Represents data shared between applications or inside an application. since: 4.0 |
| ContentDeserializer |
Deserializes content received via inter-application data transfers. since: 4.0 |
| ContentProvider |
Provides content for the clipboard or for drag-and-drop operations in a number of formats. since: 4.0 |
| ContentSerializer |
Serializes content for inter-application data transfers. since: 4.0 |
| CrossingEvent |
An event caused by a pointing device moving between surfaces. since: 4.0 |
| Cursor |
Used to create and destroy cursors. since: 4.0 |
| DeleteEvent |
An event related to closing a top-level surface. since: 4.0 |
| Device |
Represents an input device, such as a keyboard, mouse or touchpad. since: 4.0 |
| DeviceTool |
A physical tool associated to a since: 4.0 |
| Display |
A representation of a workstation. since: 4.0 |
| DisplayManager |
Offers notification when displays appear or disappear. since: 4.0 |
| DmabufTexture |
A since: 4.14 |
| DmabufTextureBuilder |
Constructs since: 4.14 |
| DNDEvent |
An event related to drag and drop operations. since: 4.0 |
| Drag |
Represents the source of an ongoing DND operation. since: 4.0 |
| DrawContext |
Base class for objects implementing different rendering methods. since: 4.0 |
| Drop |
Represents the target of an ongoing DND operation. since: 4.0 |
| Event |
Represents windowing system events. since: 4.0 |
| FocusEvent |
An event related to a keyboard focus change. since: 4.0 |
| FrameClock |
Tells the application when to update and repaint a surface. since: 4.0 |
| GLContext |
Represents a platform-specific OpenGL draw context. since: 4.0 |
| GLTexture |
A since: 4.0 |
| GLTextureBuilder |
Constructs since: 4.12 |
| GrabBrokenEvent |
An event related to a broken windowing system grab. since: 4.0 |
| KeyEvent |
An event related to a key-based device. since: 4.0 |
| MemoryTexture |
A since: 4.0 |
| MemoryTextureBuilder |
Constructs since: 4.16 |
| Monitor |
Represents the individual outputs that are associated with a since: 4.0 |
| MotionEvent |
An event related to a pointer or touch device motion. since: 4.0 |
| PadEvent |
An event related to a pad-based device. since: 4.0 |
| ProximityEvent |
An event related to the proximity of a tool to a device. since: 4.0 |
| ScrollEvent |
An event related to a scrolling motion. since: 4.0 |
| Seat |
Represents a collection of input devices that belong to a user. since: 4.0 |
| Snapshot |
Base type for snapshot operations. since: 4.0 |
| Surface |
Represents a rectangular region on the screen. since: 4.0 |
| Texture |
Refers to pixel data in various forms. since: 4.0 |
| TouchEvent |
An event related to a touch-based device. since: 4.0 |
| TouchpadEvent |
An event related to a gesture on a touchpad device. since: 4.0 |
| VulkanContext |
Represents the platform-specific Vulkan draw context. deprecated: 4.14 since: 4.0 |
Interfaces
| DevicePad |
An interface for tablet pad devices. since: 4.0 |
| DragSurface |
A surface that is used during DND. since: 4.0 |
| Paintable |
An interface for content that can be painted. since: 4.0 |
| Popup |
A surface that is attached to another surface. since: 4.0 |
| Toplevel |
A freestanding toplevel surface. since: 4.0 |
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. since: 4.0 |
| ContentFormatsBuilder |
Creates since: 4.0 |
| 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. since: 4.0 |
| 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. since: 4.0 |
| KeymapKey |
Represents a hardware key that can be mapped to a keyval. since: 4.0 |
| PopupLayout |
Contains information that is necessary position a since: 4.0 |
| Rectangle |
Represents a rectangle. since: 4.0 |
| RGBA |
Represents a color, in a way that is compatible with cairo’s notion of color. since: 4.0 |
| TextureDownloader |
Used to download the contents of a since: 4.10 |
| TimeCoord |
Stores a single event in a motion history. since: 4.0 |
| ToplevelLayout |
Contains information that is necessary to present a sovereign window on screen. since: 4.0 |
| ToplevelSize |
Contains information that is useful to compute the size of a toplevel. since: 4.0 |
Enumerations
| AxisUse |
Defines how device axes are interpreted by GTK. since: 4.0 |
| 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. since: 4.0 |
| DevicePadFeature |
A pad feature. since: 4.0 |
| DeviceToolType |
Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc. since: 4.0 |
| DragCancelReason |
Used in since: 4.0 |
| EventType |
Specifies the type of the event. since: 4.0 |
| FullscreenMode |
Indicates which monitor a surface should span over when in fullscreen mode. since: 4.0 |
| Gravity |
Defines the reference point of a surface and is used in since: 4.0 |
| InputSource |
An enumeration describing the type of an input device in general terms. since: 4.0 |
| KeyMatch |
Describes how well an event matches a given keyval and modifiers. since: 4.0 |
| MemoryFormat |
Describes formats that image data can have in memory. since: 4.0 |
| NotifyType |
Specifies the kind of crossing for enter and leave events. since: 4.0 |
| ScrollDirection |
Specifies the direction for scroll events. since: 4.0 |
| 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. since: 4.0 |
| SurfaceEdge |
Determines a surface edge or corner. since: 4.0 |
| TitlebarGesture |
The kind of title bar gesture to emit with
since: 4.4 |
| TouchpadGesturePhase |
Specifies the current state of a touchpad gesture. since: 4.0 |
Bitfields
| AnchorHints |
Positioning hints for aligning a surface relative to a rectangle. since: 4.0 |
| AxisFlags |
Flags describing the current capabilities of a device/tool. since: 4.0 |
| DragAction |
Used in since: 4.0 |
| FrameClockPhase |
Used to represent the different paint clock phases that can be requested. since: 4.0 |
| 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. since: 4.0 |
| PaintableFlags |
Flags about a paintable object. since: 4.0 |
| SeatCapabilities |
Flags describing the seat capabilities. since: 4.0 |
| ToplevelState |
Specifies the state of a toplevel surface. since: 4.0 |
Error Domains
| DmabufError |
Error enumeration for since: 4.14 |
| GLError |
Error enumeration for since: 4.0 |
| TextureError |
Possible errors that can be returned by since: 4.6 |
| VulkanError |
Error enumeration for since: 4.0 |
Callbacks
| ContentDeserializeFunc |
The type of a function that can be registered with gdk_content_register_deserializer(). since: 4.0 |
| ContentSerializeFunc |
The type of a function that can be registered with gdk_content_register_serializer(). since: 4.0 |
| CursorGetTextureCallback |
The type of callback used by a dynamic since: 4.0 |
Functions
| cairo_draw_from_gl |
Draws GL content onto a cairo context. deprecated: 4.6 since: 4.0 |
| cairo_rectangle |
Adds the given rectangle to the current path of since: 4.0 |
| cairo_region |
Adds the given region to the current path of since: 4.0 |
| cairo_region_create_from_surface |
Creates region that covers the area where the given
since: 4.0 |
| cairo_set_source_pixbuf |
Sets the given pixbuf as the source pattern for since: 4.0 |
| cairo_set_source_rgba |
Sets the specified since: 4.0 |
| content_deserialize_async |
Reads content from the given input stream and deserialize it, asynchronously. since: 4.0 |
| content_deserialize_finish |
Finishes a content deserialization operation. since: 4.0 |
| content_register_deserializer |
Registers a function to deserialize object of a given type. since: 4.0 |
| content_register_serializer |
Registers a function to serialize objects of a given type. since: 4.0 |
| content_serialize_async |
Serialize content and write it to the given output stream, asynchronously. since: 4.0 |
| content_serialize_finish |
Finishes a content serialization operation. since: 4.0 |
| drag_surface_size_get_type |
since: 4.0 |
| events_get_angle |
Returns the relative angle from since: 4.0 |
| events_get_center |
Returns the point halfway between the events’ positions. since: 4.0 |
| events_get_distance |
Returns the distance between the event locations. since: 4.0 |
| intern_mime_type |
Canonicalizes the given mime type and interns the result. since: 4.0 |
| keyval_convert_case |
Obtains the upper- and lower-case versions of the keyval since: 4.0 |
| keyval_from_name |
Converts a key name to a key value. since: 4.0 |
| keyval_is_lower |
Returns true if the given key value is in lower case. since: 4.0 |
| keyval_is_upper |
Returns true if the given key value is in upper case. since: 4.0 |
| keyval_name |
Converts a key value into a symbolic name. since: 4.0 |
| keyval_to_lower |
Converts a key value to lower case, if applicable. since: 4.0 |
| keyval_to_unicode |
Converts from a GDK key symbol to the corresponding Unicode character. since: 4.0 |
| keyval_to_upper |
Converts a key value to upper case, if applicable. since: 4.0 |
| pango_layout_get_clip_region |
Obtains a clip region which contains the areas where the given ranges of text would be drawn. since: 4.0 |
| pango_layout_line_get_clip_region |
Obtains a clip region which contains the areas where the given ranges of text would be drawn. since: 4.0 |
| pixbuf_get_from_surface |
Transfers image data from a deprecated: 4.12 since: 4.0 |
| pixbuf_get_from_texture |
Creates a new pixbuf from deprecated: 4.12 since: 4.0 |
| set_allowed_backends |
Sets a list of backends that GDK should try to use. since: 4.0 |
| toplevel_size_get_type |
since: 4.0 |
| unicode_to_keyval |
Converts from a Unicode character to a key symbol. since: 4.0 |