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 |
|
ButtonEvent |
An event related to a button on a pointer device. |
CairoContext |
|
CicpParams |
The since: 4.16 |
Clipboard |
The |
ContentDeserializer |
A |
ContentProvider |
A |
ContentSerializer |
A |
CrossingEvent |
An event caused by a pointing device moving between surfaces. |
Cursor |
|
DeleteEvent |
An event related to closing a top-level surface. |
Device |
The |
DeviceTool |
A physical tool associated to a |
Display |
|
DisplayManager |
A singleton object that offers notification when displays appear or disappear. |
DmabufTexture |
A since: 4.14 |
DmabufTextureBuilder |
since: 4.14 |
DNDEvent |
An event related to drag and drop operations. |
Drag |
The |
DrawContext |
Base class for objects implementing different rendering methods. |
Drop |
The |
Event |
|
FocusEvent |
An event related to a keyboard focus change. |
FrameClock |
A |
GLContext |
|
GLTexture |
A GdkTexture representing a GL texture object. |
GLTextureBuilder |
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 |
since: 4.16 |
Monitor |
|
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 |
The |
Snapshot |
Base type for snapshot operations. |
Surface |
A |
Texture |
|
TouchEvent |
An event related to a touch-based device. |
TouchpadEvent |
An event related to a gesture on a touchpad device. |
VulkanContext |
deprecated: 4.14 |
Interfaces
DevicePad |
|
DragSurface |
A |
Paintable |
|
Popup |
A |
Toplevel |
A |
Structs
ColorState |
A since: 4.16 |
ContentFormats |
The |
ContentFormatsBuilder |
Auxiliary object to create a |
DmabufFormats |
The since: 4.14 |
DragSurfaceSize |
The since: 4.12 |
EventSequence |
|
FileList |
An opaque type representing a list of files. since: 4.6 |
FrameTimings |
A |
KeymapKey |
A |
PopupLayout |
The |
Rectangle |
A |
RGBA |
A |
TextureDownloader |
The since: 4.10 |
TimeCoord |
A |
ToplevelLayout |
The |
ToplevelSize |
The |
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 |
|
NotifyType |
Specifies the kind of crossing for enter and leave events. |
ScrollDirection |
Specifies the direction for scroll events. |
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. |
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 |
The main way to not draw GL content in GTK. 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 |
cairo_set_source_rgba |
Sets the specified |
content_deserialize_async |
Read 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. |
drag_surface_size_get_type | |
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 |
keyval_is_upper |
Returns |
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 |
Convert 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. |
toplevel_size_get_type | |
unicode_to_keyval |
Convert from a Unicode character to a key symbol. |