Package org.gnome.gdk
package org.gnome.gdk
The low-level library used by GTK to interact with the windowing system for graphics and input devices
The following native libraries are required and will be loaded: libgtk-4.1
For namespace-global declarations, refer to the Gdk
class documentation.
-
ClassDescriptionPositioning hints for aligning a surface relative to a rectangle.
GdkAppLaunchContext
handles launching an application in a graphical context.AppLaunchContext.Builder<B extends AppLaunchContext.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Flags describing the current capabilities of a device/tool.Defines how device axes are interpreted by GTK.An event related to a button on a pointer device.GdkCairoContext
is an object representing the platform-specific draw context.CairoContext.Builder<B extends CairoContext.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The CairoContextImpl type represents a native instance of the abstract CairoContext class.TheGdkCicpParams
struct contains the parameters that define a colorstate according to the ITU-T H.273 specification.CicpParams.Builder<B extends CicpParams.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The values of this enumeration describe whether image data uses the full range of 8-bit values.TheGdkClipboard
object represents data shared between applications or inside an application.Clipboard.Builder<B extends Clipboard.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallback
callback.AGdkColorState
object provides the information to interpret colors and pixels in a variety of ways.Functional interface declaration of theContentDeserializeFunc
callback.AGdkContentDeserializer
is used to deserialize content received via inter-application data transfers.ContentDeserializer.Builder<B extends ContentDeserializer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.TheGdkContentFormats
structure is used to advertise and negotiate the format of content.AGdkContentFormatsBuilder
is an auxiliary struct used to create newGdkContentFormats
, and should not be kept around.AGdkContentProvider
is used to provide content for the clipboard or for drag-and-drop operations in a number of formats.ContentProvider.Builder<B extends ContentProvider.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theContentChangedCallback
callback.Class structure forGdkContentProvider
.Functional interface declaration of theContentSerializeFunc
callback.AGdkContentSerializer
is used to serialize content for inter-application data transfers.ContentSerializer.Builder<B extends ContentSerializer.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.An event caused by a pointing device moving between surfaces.Specifies the crossing mode for enter and leave events.GdkCursor
is used to create and destroy cursors.Cursor.Builder<B extends Cursor.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theCursorGetTextureCallback
callback.An event related to closing a top-level surface.TheGdkDevice
object represents an input device, such as a keyboard, a mouse, or a touchpad.Device.Builder<B extends Device.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theChangedCallback
callback.The DeviceImpl type represents a native instance of the abstract Device class.Functional interface declaration of theToolChangedCallback
callback.GdkDevicePad
is an interface implemented by devices of typeInputSource.TABLET_PAD
The DevicePadImpl type represents a native instance of the DevicePad interface.A pad feature.A physical tool associated to aGdkDevice
.DeviceTool.Builder<B extends DeviceTool.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Indicates the specific type of tool being used being a tablet.GdkDisplay
objects are the GDK representation of a workstation.Display.Builder<B extends Display.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theClosedCallback
callback.Functional interface declaration of theOpenedCallback
callback.Functional interface declaration of theSeatAddedCallback
callback.Functional interface declaration of theSeatRemovedCallback
callback.Functional interface declaration of theSettingChangedCallback
callback.A singleton object that offers notification when displays appear or disappear.DisplayManager.Builder<B extends DisplayManager.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theDisplayOpenedCallback
callback.Error enumeration forGdkDmabufTexture
.TheGdkDmabufFormats
struct provides information about supported DMA buffer formats.AGdkTexture
representing a DMA buffer.DmabufTexture.Builder<B extends DmabufTexture.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.GdkDmabufTextureBuilder
is a builder used to constructTexture
objects from DMA buffers.DmabufTextureBuilder.Builder<B extends DmabufTextureBuilder.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.An event related to drag and drop operations.TheGdkDrag
object represents the source of an ongoing DND operation.Drag.Builder<B extends Drag.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theCancelCallback
callback.Functional interface declaration of theDndFinishedCallback
callback.The DragImpl type represents a native instance of the abstract Drag class.Functional interface declaration of theDropPerformedCallback
callback.Used inGdkDrop
andGdkDrag
to indicate the actions that the destination can and should do with the dropped data.Used inGdkDrag
to the reason of a cancelled DND operation.AGdkDragSurface
is an interface for surfaces used during DND.Functional interface declaration of theComputeSizeCallback
callback.The DragSurfaceImpl type represents a native instance of the DragSurface interface.TheGdkDragSurfaceInterface
implementation is private to GDK.TheGdkDragSurfaceSize
struct contains information that is useful to compute the size of a drag surface.Base class for objects implementing different rendering methods.DrawContext.Builder<B extends DrawContext.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The DrawContextImpl type represents a native instance of the abstract DrawContext class.TheGdkDrop
object represents the target of an ongoing DND operation.Drop.Builder<B extends Drop.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The DropImpl type represents a native instance of the abstract Drop class.GdkEvent
s are immutable data structures, created by GDK to represent windowing system events.The EventImpl type represents a native instance of the abstract Event class.GdkEventSequence
is an opaque type representing a sequence of related touch events.Specifies the type of the event.An opaque type representing a list of files.An event related to a keyboard focus change.AGdkFrameClock
tells the application when to update and repaint a surface.Functional interface declaration of theAfterPaintCallback
callback.Functional interface declaration of theBeforePaintCallback
callback.FrameClock.Builder<B extends FrameClock.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theFlushEventsCallback
callback.The FrameClockImpl type represents a native instance of the abstract FrameClock class.Functional interface declaration of theLayoutCallback
callback.Functional interface declaration of thePaintCallback
callback.Functional interface declaration of theResumeEventsCallback
callback.Functional interface declaration of theUpdateCallback
callback.Used to represent the different paint clock phases that can be requested.AGdkFrameTimings
object holds timing information for a single frame of the application’s displays.Indicates which monitor a surface should span over when in fullscreen mode.Constants and functions that are declared in the global Gdk namespace.The list of the different APIs that GdkGLContext can potentially support.GdkGLContext
is an object representing a platform-specific OpenGL draw context.GLContext.Builder<B extends GLContext.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The GLContextImpl type represents a native instance of the abstract GLContext class.Error enumeration forGdkGLContext
.A GdkTexture representing a GL texture object.GLTexture.Builder<B extends GLTexture.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.GdkGLTextureBuilder
is a builder used to constructTexture
objects from GL textures.GLTextureBuilder.Builder<B extends GLTextureBuilder.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.An event related to a broken windowing system grab.Defines the reference point of a surface and is used inGdkPopupLayout
.An enumeration describing the type of an input device in general terms.An event related to a key-based device.AGdkKeymapKey
is a hardware key that can be mapped to a keyval.Describes how well an event matches a given keyval and modifiers.GdkMemoryFormat
describes formats that image data can have in memory.AGdkTexture
representing image data in memory.MemoryTexture.Builder<B extends MemoryTexture.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.GdkMemoryTextureBuilder
is a builder used to constructTexture
objects from system memory provided viaGLib.Bytes
.MemoryTextureBuilder.Builder<B extends MemoryTextureBuilder.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Flags to indicate the state of modifier keys and mouse buttons in events.GdkMonitor
objects represent the individual outputs that are associated with aGdkDisplay
.Monitor.Builder<B extends Monitor.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theInvalidateCallback
callback.An event related to a pointer or touch device motion.Specifies the kind of crossing for enter and leave events.An event related to a pad-based device.GdkPaintable
is a simple interface used by GTK to represent content that can be painted.Functional interface declaration of theInvalidateContentsCallback
callback.Functional interface declaration of theInvalidateSizeCallback
callback.The PaintableImpl type represents a native instance of the Paintable interface.The list of functions that can be implemented for theGdkPaintable
interface.Flags about a paintable object.AGdkPopup
is a surface that is attached to another surface.Popup.Builder<B extends Builder<B>>The PopupImpl type represents a native instance of the Popup interface.TheGdkPopupLayout
struct contains information that is necessary position aPopup
relative to its parent.An event related to the proximity of a tool to a device.AGdkRectangle
data type for representing rectangles.AGdkRGBA
is used to represent a color, in a way that is compatible with cairo’s notion of color.Specifies the direction for scroll events.An event related to a scrolling motion.Specifies the unit of scroll deltas.TheGdkSeat
object represents a collection of input devices that belong to a user.Seat.Builder<B extends Seat.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theDeviceAddedCallback
callback.Functional interface declaration of theDeviceRemovedCallback
callback.The SeatImpl type represents a native instance of the abstract Seat class.Functional interface declaration of theToolAddedCallback
callback.Functional interface declaration of theToolRemovedCallback
callback.Flags describing the seat capabilities.Base type for snapshot operations.Snapshot.Builder<B extends Snapshot.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The SnapshotImpl type represents a native instance of the abstract Snapshot class.This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.AGdkSurface
is a rectangular region on the screen.Surface.Builder<B extends Surface.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theEnterMonitorCallback
callback.Functional interface declaration of theEventCallback
callback.Functional interface declaration of theLayoutCallback
callback.Functional interface declaration of theLeaveMonitorCallback
callback.Functional interface declaration of theRenderCallback
callback.The SurfaceImpl type represents a native instance of the abstract Surface class.Determines a surface edge or corner.GdkTexture
is the basic element used to refer to pixel data.Texture.Builder<B extends Texture.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.The TextureImpl type represents a native instance of the abstract Texture class.TheGdkTextureDownloader
is used to download the contents of aTexture
.Possible errors that can be returned byGdkTexture
constructors.AGdkTimeCoord
stores a single event in a motion history.The kind of title bar gesture to emit withToplevel.titlebarGesture(org.gnome.gdk.TitlebarGesture)
.AGdkToplevel
is a freestanding toplevel surface.Toplevel.Builder<B extends Builder<B>>Functional interface declaration of theComputeSizeCallback
callback.The ToplevelImpl type represents a native instance of the Toplevel interface.TheGdkToplevelLayout
struct contains information that is necessary to present a sovereign window on screen.TheGdkToplevelSize
struct contains information that is useful to compute the size of a toplevel.Specifies the state of a toplevel surface.An event related to a touch-based device.An event related to a gesture on a touchpad device.Specifies the current state of a touchpad gesture.Deprecated.VulkanContext.Builder<B extends VulkanContext.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.Functional interface declaration of theImagesUpdatedCallback
callback.The VulkanContextImpl type represents a native instance of the abstract VulkanContext class.Error enumeration forGdkVulkanContext
.