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 |
since: 4.0 |
| ButtonEvent |
An event related to a button on a pointer device. since: 4.0 |
| CairoContext |
since: 4.0 |
| Clipboard |
The since: 4.0 |
| ContentDeserializer |
A since: 4.0 |
| ContentProvider |
A since: 4.0 |
| ContentSerializer |
A since: 4.0 |
| CrossingEvent |
An event caused by a pointing device moving between surfaces. since: 4.0 |
| Cursor |
since: 4.0 |
| DeleteEvent |
An event related to closing a top-level surface. since: 4.0 |
| Device |
The since: 4.0 |
| DeviceTool |
A physical tool associated to a since: 4.0 |
| Display |
since: 4.0 |
| DisplayManager |
A singleton object that offers notification when displays appear or disappear. since: 4.0 |
| DNDEvent |
An event related to drag and drop operations. since: 4.0 |
| Drag |
The since: 4.0 |
| DrawContext |
Base class for objects implementing different rendering methods. since: 4.0 |
| Drop |
The since: 4.0 |
| Event |
since: 4.0 |
| FocusEvent |
An event related to a keyboard focus change. since: 4.0 |
| FrameClock |
A since: 4.0 |
| GLContext |
since: 4.0 |
| GLTexture |
A GdkTexture representing a GL texture object. since: 4.0 |
| GLTextureBuilder |
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 |
| Monitor |
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 |
The since: 4.0 |
| Snapshot |
Base type for snapshot operations. since: 4.0 |
| Surface |
A since: 4.0 |
| Texture |
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 |
since: 4.0 |
Interfaces
| DevicePad |
since: 4.0 |
| DragSurface |
A since: 4.0 |
| Paintable |
since: 4.0 |
| Popup |
A since: 4.0 |
| Toplevel |
A since: 4.0 |
Structs
| ContentFormats |
The since: 4.0 |
| ContentFormatsBuilder |
A since: 4.0 |
| DragSurfaceSize |
The since: 4.12 |
| EventSequence |
since: 4.0 |
| FileList |
An opaque type representing a list of files. since: 4.6 |
| FrameTimings |
A since: 4.0 |
| KeymapKey |
A since: 4.0 |
| PopupLayout |
The since: 4.0 |
| Rectangle |
A since: 4.0 |
| RGBA |
A since: 4.0 |
| TextureDownloader |
The since: 4.10 |
| TimeCoord |
A since: 4.0 |
| ToplevelLayout |
The since: 4.0 |
| ToplevelSize |
The since: 4.0 |
Enumerations
| AxisUse |
Defines how device axes are interpreted by GTK. since: 4.0 |
| 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 |
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 |
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
| 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 |
Functions
| cairo_draw_from_gl |
The main way to not draw GL content in GTK. 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 |
Read 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 since: 4.0 |
| keyval_is_upper |
Returns 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 |
Convert 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 |
Convert from a Unicode character to a key symbol. since: 4.0 |
Function Macros
| DECLARE_INTERNAL_TYPE |
since: 4.0 |