Namespace
Gdk – 4.0
The GTK toolkit
Dependencies
| GObject | The base type system library |
| Browse documentation | |
| Cairo | A 2D graphics library with support for multiple output devices |
| Browse documentation | |
| Pango | Text shaping and rendering |
| Browse documentation | |
| GdkWayland | GDK Wayland Backend |
| Browse documentation | |
| GdkX11 | GDK X11 Backend |
| Browse documentation |
Additional documentation
Classes
| AppLaunchContext |
|
| ButtonEvent | An event related to a button on a pointer device. |
| CairoContext |
|
| 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. |
| 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. |
| GrabBrokenEvent | An event related to a broken windowing system grab. |
| KeyEvent | An event related to a key-based device. |
| MemoryTexture | A |
| 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 |
|
Interfaces
| DevicePad |
|
| DragSurface | A |
| Paintable |
|
| Popup | A |
| Toplevel | A |
Structs
| ContentFormats | The |
| ContentFormatsBuilder | A |
| EventSequence |
|
| FrameTimings | A |
| KeymapKey | A |
| PopupLayout | The |
| Rectangle | A |
| RGBA | A |
| TimeCoord | A |
| ToplevelLayout | The |
| ToplevelSize | The |
Enumerations
| AxisUse | Defines how device axes are interpreted by GTK. |
| 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. |
| 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. |
| 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. |
| 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
| GLError | Error enumeration for |
| VulkanError | Error enumeration for |
Callbacks
| ContentDeserializeFunc | The type of a function that can be registered with |
| ContentSerializeFunc | The type of a function that can be registered with |
Functions
| cairo_draw_from_gl | The main way to draw GL content in GTK. |
| 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. |
| 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 |
| pixbuf_get_from_texture | Creates a new pixbuf from |
| 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. |