Up: cl-cffi-gtk4 API documentation

Package gdk

GDK is an intermediate layer which isolates GTK from the details of the windowing system. This is the API documentation of a Lisp binding to GDK.

About This Package

General
Displays, Devices, Monitors, and Seats
Paintables
Surfaces, Toplevels, Popups
Draw contexts
Clipboard, Drag and Drop
Application launching
Miscellaneous
Pixbuf, Pango, and Backends interaction

General


Enumerations

Defines the reference point of a surface and is used in the gdk:popup-layout implementation. ...

A mask covering all entries in the gdk:modifier-type enumeration. ...

Flags to indicate the state of modifier keys and mouse buttons in events. ...


GdkRectangle

The gdk:rectangle structure is a data type for representing rectangles. ...

Accessor of the x slot of the gdk:rectangle structure. ...

Accessor of the y slot of the gdk:rectangle structure. ...

Accessor of the width slot of the gdk:rectangle structure. ...

Accessor of the height slot of the gdk:rectangle structure. ...

Returns a gdk:rectangle instance with the initial values given to x, y, width, and height. ...

Copy constructor of a gdk:rectangle structure. ...

Returns true if rect contains the point described by x and y. ...

Checks if the two given rectangles are equal. ...

Calculates the intersection of two rectangles. ...

Calculates the union of two rectangles. ...


GdkRGBA

The gdk:rgba structure is used to represent a (possibly translucent) color, in a way that is compatible with Cairo's notion of color. ...

Accessor of the red slot of the gdk:rgba color. ...

Accessor of the green slot of the gdk:rgba color. ...

Accessor of the blue slot of the gdk:rgba color. ...

Accessor of the alpha slot of the gdk:rgba color. ...

Creates a gdk:rgba color. ...

Makes a copy of a gdk:rgba color. ...

Checks if a RGBA color is transparent. ...

Checks if a RGBA color is transparent. ...

Parses a textual representation of a color, and returns a RGBA instance filling in the red, green, blue and alpha fields. ...

A hash function suitable for using for a hash table that stores RGBA colors. ...

Compares two RGBA colors. ...

Returns a textual specification of color in the form rgb(r,g,b) or rgba(r,g,b,a), where r, g, b and a represent the red, green, blue and alpha values respectively. ...


Key Values

Converts a key value into a symbolic name. ...

Converts a key name to a key value. ...

Obtains the upper-case and lower-case versions of the key value. ...

Converts a key value to upper case, if applicable. ...

Converts a key value to lower case, if applicable. ...

Returns true if the given key value is in upper case. ...

Returns true if the given key value is in lower case. ...

Convert from a GDK key value to the corresponding ISO10646 (Unicode) character. ...

Convert from a ISO10646 character to a GDK key value. ...


GdkDmabufFormats

The gdk:dmabuf-formats structure provides information about supported DMA buffer formats. ...

Returns whether a given format is contained in formats. ...

Returns whether formats1 and formats2 contain the same dmabuf formats, in the same order. ...

Gets the fourcc code and modifier for a format that is contained in formats. ...

Returns the number of formats that the formats object contains. ...


GdkColorState

The gdk:color-state structure provides the information to interpret colors and pixels in a variety of ways. ...

Returns the color state object representing the linear rec2100 color space. ...

Returns the color state object representing the rec2100-pq color space. ...

Returns the color state object representing the sRGB color space. ...

Returns the color state object representing the linearized sRGB color space. ...

Create a gdk:cicp-params object representing the colorstate. ...

Compares two color states for equality. ...


GdkCicpParams

The values of this enumeration describe whether image data uses the full range of 8-bit values. ...

The gdk:cicp-params object contains the parameters that define a colorstate according to the ITU-T H.273 specification. ...

Accessor of the color-primaries slot of the gdk:cicp-params class. ...

Accessor of the matrix-coefficients slot of the gdk:cicp-params class. ...

Accessor of the range slot of the gdk:cicp-params class. ...

Accessor of the transfer-function slot of the gdk:cicp-params class. ...

Creates a new gdk:cicp-params object. ...

Creates a new gdk:color-state object for the Cicp parameters in params. ...

Displays, Devices, Monitors, and Seats


GdkDisplayManager

The purpose of the gdk:display-manager singleton object is to offer notification when displays appear or disappear or the default display changes. ...

Accessor of the default-display slot of the gdk:display-manager class. ...

Gets the gdk:display-manager singleton object. ...

List all currently open displays. ...

Opens a display. ...

Sets a list of backends that GDK should try to use. ...


GdkDisplay

The gdk:display object is the GDK representation of a workstation. ...

Accessor of the composited slot of the gdk:display class. ...

Returns the dma-buf formats that are supported on the display. ...

Accessor of the input-shapes slot of the gdk:display class. ...

Accessor of the rgba slot of the gdk:display class. ...

Returns whether it is possible for a surface to draw outside of the window area. ...

Opens a display named by name. ...

Gets the default display. ...

Gets the name of the display. ...

Returns true if there is an ongoing grab on the device for the display. ...

Emits a short beep on the display. ...

Flushes any requests queued for the windowing system and waits until all requests have been handled. ...

Flushes any requests queued for the windowing system. ...

Closes the connection to the windowing system for the given display. ...

Finds out if the display has been closed. ...

Returns whether surfaces on this display are created with an alpha channel. ...

Returns whether surfaces can reasonably be expected to have their alpha channel drawn correctly on the screen. ...

Returns true if the display supports input shapes. ...

Returns a gdk:app-launch-context object suitable for launching applications on the given display. ...

Indicates to the GUI environment that the application has finished loading, using a given identifier. ...

Returns the default seat object for this display. ...

Returns the list of seats known to the display. ...

Gets the list of monitors associated with the display. ...

Gets the monitor in which the largest area of the surface resides. ...

Gets the clipboard used for copy/paste operations. ...

Gets the clipboard used for the primary selection. ...

Retrieves a desktop-wide setting such as double-click time for the display. ...

Gets the startup notification ID for a Wayland display, or nil if no ID has been defined. ...

Obtains a list of keycode/group/level combinations that will generate keyval. ...

Returns the keyvals bound to keycode. ...

Translates a keycode into a keyval, effective group, and level. ...

Checks that OpenGL is available for display and ensures that it is properly initialized. ...

Creates a new OpenGL context for the display. ...


GdkDeviceTool

Indicates the specific type of tool being used being a tablet. ...

A physical tool associated to a gdk:device object. ...

Accessor of the axes slot of the gdk:device-tool class. ...

Accessor of the hardware-id slot of the gdk:device-tool class. ...

Accessor of the serial slot of the gdk:device-tool class. ...

Accessor of the tool-type slot of the gdk:device-tool class. ...


GdkDevice

An enumeration describing the type of an input device in general terms. ...

An enumeration describing the way in which a device axis (valuator) maps onto the predefined valuator types that GTK understands. ...

Flags describing the current capabilities of a device/tool. ...

The gdk:device object represents a single input device, such as a keyboard, a mouse, a touchpad, etc. ...

Accessor of the caps-lock-state slot of the gdk:device class. ...

Accessor of the direction slot of the gdk:device class. ...

Accessor of the display slot of the gdk:device class. ...

Accessor of the has-bidi-layouts slot of the gdk:device class. ...

Accessor of the has-cursor slot of the gdk:device class. ...

Accessor of the modifier-state slot of the gdk:device class. ...

Accessor of the n-axes slot of the gdk:device class. ...

Accessor of the name slot of the gdk:device class. ...

Accessor of the num-lock-state slot of the gdk:device class. ...

Accessor of the num-touches slot of the gdk:device class. ...

Accessor of the product-id slot of the gdk:device class. ...

Accessor of the scroll-lock-state slot of the gdk:device class. ...

Accessor of the seat slot of the gdk:device class. ...

Accessor of the source slot of the gdk:device class. ...

Accessor of the tool slot of the gdk:device class. ...

Accessor of the vendor-id slot of the gdk:device class. ...

Obtains the surface underneath device, returning the location of the device in xwin and ywin in double precision. ...

Returns the timestamp of the last activity for this device. ...


GdkDevicePad

A pad feature. ...

The gdk:device-pad interface is an interface implemented by devices of :tablet-pad type. ...

Returns the number of groups this pad device has. ...

Returns the number of modes that the group may have. ...

Returns the number of features a tablet pad has. ...

Returns the group the given feature and index belong to, or -1 if feature/index do not exist in pad . ...


GdkMonitor

This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out. ...

The gdk:monitor objects represent the individual outputs that are associated with a gdk:display object. ...

Accessor of the connector slot of the gdk:monitor class. ...

Accessor of the display slot of the gdk:monitor class. ...

Accessor of the geometry slot of the gdk:monitor class. ...

Accessor of the height-mm slot of the gdk:monitor class. ...

Accessor of the manufacturer slot of the gdk:monitor class. ...

Accessor of the model slot of the gdk:monitor class. ...

Accessor of the refresh-rate slot of the gdk:monitor class. ...

Gets the internal scale factor that maps from monitor coordinates to device pixels. ...

Accessor of the scale-factor slot of the gdk:monitor class. ...

Accessor of the subpixel-layout slot of the gdk:monitor class. ...

Accessor of the valid slot of the gdk:monitor class. ...

Accessor of the width-mm slot of the gdk:monitor class. ...

Returns true if the monitor object corresponds to a physical monitor. ...


GdkSeat

Flags describing the seat capabilities. ...

The gdk:seat object represents a collection of input devices that belong to a user. ...

Accessor of the display slot of the gdk:seat class. ...

Returns the capabilities this gdk:seat object currently has. ...

Returns the master device that routes pointer events. ...

Returns the master device that routes keyboard events. ...

Returns the devices that match the given capabilities. ...

Returns all gdk:device-tools objects that are known to the application. ...

Paintables


GdkPaintable

Flags about a gdk:paintable object. ...

Base type for snapshot operations. ...

The gdk:paintable interface is a simple interface used by GDK and GTK to represent objects that can be painted anywhere at any size without requiring any sort of layout. ...

Method called from the gdk:paintable-snapshot function. ...

Method called from the gdk:paintable-current-image function. ...

Method called from the gdk:paintable-flags function. ...

Method called from the gdk:paintable-intrinsic-width function. ...

Method called from the gdk:paintable-intrinsic-height function. ...

Method called from the gdk:paintable-intrinsic-aspect-ratio function. ...

Gets an immutable paintable for the current contents displayed by paintable. ...

Snapshots the given paintable with the given width and height at the current (0,0) offset of the snapshot. ...

Get flags for the paintable. ...

Gets the preferred width the paintable would like to be displayed at. ...

Gets the preferred height the paintable would like to be displayed at. ...

Gets the preferred aspect ratio the paintable would like to be displayed at. ...

Applies the sizing algorithm outlined in https://drafts.csswg.org/css-images-3/default-sizing to the given paintable. ...

Called by implementations of a gdk:paintable subclass to invalidate their contents. ...

Called by implementations of gdk:paintable subclasses to invalidate their size. ...

Returns a paintable that has the given intrinsic size and draws nothing. ...


GdkTexture

The gdk:memory-format enumeration describes a format that bytes can have in memory. ...

The gdk:texture object is the basic element used to refer to pixel data. ...

Accessor of the height slot of the gdk:texture class. ...

Accessor of the width slot of the gdk:texture class. ...

Creates a new texture object representing pixbuf. ...

Creates a new texture by loading an image from a resource. ...

Creates a new texture by loading an image from a file. ...

Creates a new texture by loading an image from a file. ...

Creates a new texture by loading an image from a memory. ...

Downloads the texture into local memory. ...

Store the given texture to the filename as a PNG file. ...

Store the given texture in memory as a PNG file. ...

Store the given texture to the filename as a TIFF file. ...

Store the given texture in memory as a TIFF file. ...

Gets the memory format most closely associated with the data of the texture. ...

A gdk:texture implementation representing image data in memory. ...

Creates a new texture for a blob of image data. ...

A gdk:texture implementation representing a GL texture object. ...

Creates a new texture for an existing GL texture. ...

Releases the GL resources held by a gdk:gl-texture object that was created with the gdk:gl-texture-new function. ...


GdkTextureDownloader

The gdk:texture-downloader structure is used to download the contents of a gdk:texture object. ...

Creates a new texture downloader for texture. ...

Creates a copy of the downloader ...

Downloads the given texture pixels into a g:bytes instance. ...

Downloads the texture into local memory. ...

Sets the color state the downloader will convert the data to. ...

Sets the format the downloader will download. ...

Changes the texture the downloader will download. ...


GdkDmabufTexture

The gdk:dmabuf-texture class is a gdk:texture implementation representing a DMA buffer. ...

The gdk:dmabuf-texture-builder object is a builder used to construct gdk:texture objects from DMA buffers. ...

Accessor of the display slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the fourcc slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the height slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the height slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the n-planes slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the premultiplied slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the update-region slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the update-texture slot of the gdk:dmabuf-texture-builder class. ...

Accessor of the width slot of the gdk:dmabuf-texture-builder class. ...

Create a new texture builder. ...

Surfaces, Toplevels, Popups


Surfaces

The gdk:surface object is a rectangular region on the screen. ...

Accessor of the cursor slot of the gdk:surface class. ...

Accessor of the display slot of the gdk:surface class. ...

Accessor of the frame-clock slot of the gdk:surface class. ...

Accessor of the height slot of the gdk:surface class. ...

Accessor of the mapped slot of the gdk:surface class. ...

Accessor of the scale slot of the gdk:surface class. ...

Accessor of the scale-factor slot of the gdk:surface class. ...

Accessor of the width slot of the gdk:surface class. ...

Creates a new toplevel surface. ...

Creates a new popup surface. ...

Destroys the window system resources associated with surface and decrements reference count of the surface. ...

Check to see if a surface is destroyed. ...

For toplevel surfaces, withdraws them, so they will no longer be known to the window manager. ...

Translates the given coordinates from being relative to the from surface to being relative to the to surface. ...

Emits a short beep associated to surface in the appropriate display, if supported. ...

For optimisation purposes, compositing window managers may like to not draw obscured regions of surfaces, or turn off blending during for these regions. ...

Creates a new OpenGL context matching the framebuffer format to the visual of the surface. ...

Creates a new gdk:cairo-context object for rendering on surface. ...

Creates a new surface that is as compatible as possible with the given surface. ...

Forces a "render" signal emission for surface to be scheduled. ...

Request a layout phase from the frame clock of the surface. ...

Apply the region to the surface for the purpose of event handling. ...

Obtains the current device position in doubles and modifier state. ...

The gdk:surface-device-cursor function retrieves a gdk:cursor pointer for the device currently set on the specified surface, or nil. ...


GdkToplevelSize

The gdk:toplevel-size structure contains information that may be useful for users of gdk:toplevel objects to compute a surface size. ...

Retrieves the bounds the toplevel is placed within. ...

Sets the size the toplevel prefers to be resized to. ...

The minimum size corresponds to the limitations the toplevel can be shrunk to, without resulting in incorrect painting. ...

The shadow width corresponds to the part of the computed surface size that would consist of the shadow margin surrounding the window, would there be any. ...


GdkToplevelLayout

Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc). ...

Create a toplevel layout description. ...

Create a new gdk:toplevel-layout instance and copy the contents of layout into it. ...

Check whether layout and other have identical layout properties. ...

If the layout specifies whether the toplevel should go maximized, the maximized argument is set to true if it should go fullscreen, or false, if it should go unmaximized. ...

If the layout specifies whether the toplevel should go fullscreen, the fullscreen value is set to true if it should go fullscreen, or false, if it should go unfullscreen. ...

Returns the monitor that the layout is fullscreening the surface on. ...

The gdk:toplevel-layout-resizable function returns whether the layout should allow the user to resize the surface. ...


GdkToplevel

Specifies the state of a toplevel surface. ...

Indicates which monitor (in a multi-head setup) a surface should span over when in fullscreen mode. ...

Determines a surface edge or corner. ...

The kind of title bar gesture to emit with the gdk:toplevel-titlebar-gesture function. ...

The gdk:toplevel object is a freestanding toplevel surface. ...

Accessor of the decorated slot of the gdk:toplevel class. ...

Accessor of the deletable slot of the gdk:toplevel class. ...

Accessor of the fullscreen-mode slot of the gdk:toplevel class. ...

Accessor of the icon-list slot of the gdk:toplevel class. ...

Accessor of the modal slot of the gdk:toplevel class. ...

Accessor of the shortcuts-inhibited slot of the gdk:toplevel class. ...

Accessor of the startup-id slot of the gdk:toplevel class. ...

Accessor of the state slot of the gdk:toplevel class. ...

Accessor of the state slot of the gdk:toplevel class. ...

Accessor of the transient-for slot of the gdk:toplevel class. ...

Present toplevel after having processed the gtk:toplevel-layout rules. ...

Asks to minimize the toplevel. ...

Asks to lower the toplevel below other windows. ...

Sets keyboard focus to surface . ...

Asks the windowing system to show the window menu. ...

Returns whether the desktop environment supports tiled window states. ...

Requests that the toplevel inhibit the system shortcuts, asking the desktop environment/windowing system to let all keyboard events reach the surface, as long as it is focused, instead of triggering system actions. ...

Restore default system keyboard shortcuts which were previously requested to be inhibited by the gdk:toplevel-inhibit-system-shortcuts function. ...

Begins an interactive resize operation, for a toplevel surface. ...

Begins an interactive move operation, for a toplevel surface. ...

No description available. ...


GdkPopupLayout

Positioning hints for aligning a surface relative to a rectangle. ...

Popups are positioned relative to their parent surface. ...

Create a popup layout description. ...

Create a new popup layout and copy the contents of layout into it. ...

Check whether layout1 and layout2 have identical layout properties. ...

The gdk:popup-layout-anchor-rect function gets the anchor rectangle. ...

The gdk:popup-layout-rect-anchor function returns the anchor position on the anchor rectangle. ...

The gdk:popup-layout-surface-anchor function returns the anchor position on the popup surface. ...

The gdk:popup-layout-anchor-hints function gets the anchor hints. ...

The gdk:popup-layout-offset function retrieves the offset for the anchor rectangle. ...

The gdk:popup-layout-shadow-width function obtains the shadow widths of the popup layout. ...


GdkPopup

A gdk:popup object is a surface that is attached to another surface, called its "parent", and is positioned relative to it. ...

Accessor of the autohide slot of the gdk:popup class. ...

Accessor of the parent slot of the gdk:popup class. ...

Present popup after having processed the gdk:popup-layout rules. ...

Gets the current popup surface anchor. ...

Gets the current popup surface anchor. ...

Obtains the position of the popup relative to its parent. ...

Obtains the position of the popup relative to its parent. ...

Draw contexts


GdkDrawContext

The gdk:draw-context object is the base object used by contexts implementing different rendering methods, such as the gdk:gl-context context. ...

Accessor of the display slot of the gdk:draw-context class. ...

Accessor of the surface slot of the gdk:draw-context class. ...

Indicates that you are beginning the process of redrawing region on the surface of context. ...

Ends a drawing operation started with the gdk:draw-context-begin-frame function and makes the drawing available on screen. ...

Returns true if context is in the process of drawing to its surface after a call to the gdk:draw-context-begin-frame function and not yet having called the gdk:draw-context-end-frame function. ...

Retrieves the region that is currently in the process of being repainted. ...


GdkGLContext

The list of the different APIs that a gdk:gl-context object can potentially support. ...

The gdk:gl-context object is an object representing the platform specific OpenGL draw context. ...

Accessor of the allowed-apis slot of the gdk:gl-context class. ...

Accessor of the api slot of the gdk:gl-context class. ...

Accessor of the shared-context slot of the gdk:gl-context class. ...

Retrieves the display the GL context is created for. ...

Retrieves the surface used by the GL context. ...

Retrieves the OpenGL version of the GL context. ...

The gdk:gl-context-debug-enabled function retrieves whether debugging is enabled. ...

The gdk:gl-context-forward-compatible function returns whether the GL context should be forward compatible. ...

The gdk:gl-context-uses-es function checks whether the context is using an OpenGL or OpenGL ES profile. ...

Whether the GL context is in legacy mode or not. ...

Realizes the given OpenGL context. ...

Makes the GL context the current one. ...

Retrieves the current GL context. ...

Clears the current GL context. ...


GdkCairoContext

The gdk:cairo-context object is an object representing the platform specific draw context. ...

Retrieves a Cairo context to be used to draw on the gdk:surface object of context. ...

Clipboard, Drag and Drop


Content Formats

The gdk:content-formats structure is used to advertise and negotiate the format of content. ...

Creates a new gdk:content-formats instance from a list of mime types. ...

Creates a new gdk:content-formats instance for a given gtype. ...

Prints the given formats into a human-readable string. ...

Parses the given str into a gdk:content-formats instance and returns the formats. ...

Gets the g:type-t type IDs included in formats. ...

Gets the mime types included in formats. ...

Append all missing types from second to first, in the order they had in second. ...

Checks if first and second have any matching formats. ...

Finds the first g:type-t type ID from first that is also contained in second. ...

Finds the first mime type from first that is also contained in second. ...

Checks if a given gtype is part of the given formats. ...

Checks if a given mime type is part of the given formats. ...

Add g:type-t type IDs for the mime types in formats for which serializers are registered. ...

Add g:type-t type IDs for the mime types in formats for which deserializers are registered. ...

Add mime types for g:type-t type IDs in formats for which serializers are registered. ...

Add mime types for g:type-t type IDs in formats for which deserializers are registered. ...


GdkContentProvider

A gdk:content-provider object is used to provide content for the clipboard in a number of formats. ...

Gets the formats that the content provider can provide its current contents in. ...

Gets the formats that the content provider suggests other applications to store the data in. ...

Creates a content provider that provides the given gvalue. ...


GdkContentSerializer

The gdk:content-serializer object is used to serialize content for inter-application data transfers. ...


GdkContentDeserializer

The gdk:content-deserializer object is used to deserialize content received via inter-application data transfers. ...


Clipboards

The gdk:clipboard object represents data shared between applications or inside an application. ...

Accessor of the content slot of the gdk:clipboard class. ...

Accessor of the display slot of the gdk:clipboard class. ...

Accessor of the formats slot of the gdk:clipboard class. ...

Accessor of the local slot of the gdk:clipboard class. ...

Returns if the clipboard is local. ...

Asynchronously instructs the clipboard to store its contents remotely to preserve them for later usage. ...

Finishes an asynchronous clipboard store started with the gdk:clipboard-store-async function. ...

Asynchronously request the clipboard contents converted to the given gtype. ...

Finishes an asynchronous clipboard read started with the gdk:clipboard-read-value-async function. ...

Asynchronously request the clipboard contents converted to a gdk:pixbuf object. ...

Finishes an asynchronous clipboard read started with the gdk:clipboard-read-texture-async function. ...

Asynchronously request the clipboard contents converted to a string. ...

Finishes an asynchronous clipboard read started with the gdk:clipboard-read-text-async function. ...

Sets a new content provider on clipboard. ...

Sets the clipboard to contain the given value. ...

Sets the clipboard to contain the given gvalue. ...

Puts the given text into the clipboard. ...

Puts the given texture into the clipboard. ...


GdkDrag

Used in the gdk:drag object to the reason of a cancelled DND operation. ...

Used in gdk:drop and gdk:drag objects to indicate the actions that the destination can and should do with the dropped data. ...

The gdk:drag object represents the source of an ongoing DND operation. ...

Accessor of the actions slot of the gdk:drag class. ...

Accessor of the content slot of the gdk:drag class. ...

Accessor of the device slot of the gdk:drag class. ...

Accessor of the display slot of the gdk:drag class. ...

Accessor of the formats slot of the gdk:drag class. ...

Accessor of the selected-action slot of the gdk:drag class. ...

Accessor of the surface slot of the gdk:drag class. ...

Inform GDK if the drop ended successfully. ...

Starts a drag and creates a new drag context for it. ...

Returns the surface on which the drag icon should be rendered during the drag operation. ...

Sets the position of the drag surface that will be kept under the cursor hotspot. ...

Checks if action represents a single action or if it includes multiple flags that can be selected from. ...


GdkDrop

The gdk:drop object represents the target side of an ongoing DND operation. ...

Accessor of the actions slot of the gdk:drop class. ...

Accessor of the device slot of the gdk:drop class. ...

Accessor of the drag slot of the gdk:drop class. ...

Accessor of the formats slot of the gdk:drop class. ...

Accessor of the surface slot of the gdk:drop class. ...

Selects all actions that are potentially supported by the destination. ...

Ends the drag operation after a drop. ...

Asynchronously request the drag operation's contents converted to the given gtype. ...

Finishes an async drop read started with the gdk:drop-read-value-async function. ...


GdkDragSurface

The gdk:drag-surface-size structure contains information that is useful to compute the size of a drag surface. ...

Sets the size the drag surface prefers to be resized to. ...

The gdk:drag-surface interface is an interface for surfaces used during DND. ...

Present the drag surface. ...

Application launching


GdkAppLaunchContext

The gdk:app-launch-context object is an implementation of the g:app-launch-context object that handles launching an application in a graphical context. ...

Accessor of the display slot of the gdk:app-launch-context class. ...

Sets the workspace on which applications will be launched when using this context when running under a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints. ...

Sets the timestamp of context. ...

Sets the icon for applications that are launched with this context. ...

Sets the icon for applications that are launched with this context. ...

Miscellaneous


Events

Represents the current time, and can be used anywhere a time is expected. ...

Use this value as the return value for continuing the propagation of an event handler. ...

Use this value as the return value for stopping the propagation of an event handler. ...

The primary button. ...

The middle button. ...

The secondary button. ...

Specifies the type of a gdk:event instance. ...

Describes how well an event matches a given keyval and modifiers. ...

The gdk:touchpad-gesture-phase enumeration specifies the current state of a touchpad gesture. ...

Specifies the direction for a gdk:scroll-event event. ...

Specifies the crossing mode for enter and leave events. ...

Specifies the unit of scroll deltas. ...

Specifies the kind of crossing for enter and leave events. ...

The gdk:event-sequence structure is an opaque type representing a sequence of related touch events. ...

The base type of an event. ...

An event related to a button on a pointer device. ...

An event related to a scrolling motion. ...

An event related to a pointer or touch device motion. ...

An event related to a key-based device. ...

An event related to a focus change. ...

An event caused by a pointing device moving between surfaces. ...

An event related to a broken windowing system grab. ...

An event related to closing a toplevel surface. ...

An event related to drag and drop operations. ...

An event related to a touch-based device. ...

An event related to a touchpad device. ...

An event related to a pad-based device. ...

An event related to the proximity of a tool to a device. ...

Retrieves the type of the event. ...

Extracts the surface associated with an event. ...

Returns the device of an event. ...

If the event was generated by a device that supports different tools, for example a tablet, this function will return a gdk:device-tool object representing the tool that caused the event. ...

Returns the time stamp from event, if there is one, otherwise returns gdk:+current-time+. ...

Retrieves the display associated to the event. ...

Returns the seat that originated the event. ...

If the event is a touch event, returns the gdk:event-sequence instance to which the event belongs. Otherwise, return nil. ...

Returns the modifier state field of an event. ...

Extract the event surface relative x/y coordinates from an event. ...

Extracts all axis values from an event. ...

Extract the axis value for a particular axis use from an event instance. ...

Returns whether this event is an emulated pointer event, typically from a touch event, as opposed to a real one. ...

This function returns whether an event should trigger a context menu, according to platform conventions. ...

Extract the button number from a button event. ...

Extracts the direction of a scroll event. ...

Extracts the scroll deltas of a scroll event. ...

Check whether a scroll event is a stop scroll event. ...

Extracts the scroll delta unit of a scroll event. ...

Extracts the keyval from a key event. ...

Extracts the keycode from a key event. ...

Extracts the consumed modifiers from a key event. ...

Extracts the layout from a key event. ...

Extracts the shift level from a key event. ...

Extracts whether the key event is for a modifier key. ...

Matches a key event against a keyboard shortcut that is specified as a keyval and modifiers. ...

Gets a keyval and modifier combination that will cause the gdk:key-event-matches function to successfully match the given event. ...

Extracts whether this event is about focus entering or leaving the surface. ...

Extracts whether a touch event is emulating a pointer event. ...

Extracts the crossing mode from a crossing event. ...

Extracts the notify detail from a crossing event. ...

Checks if the event surface is the focus surface. ...

Extracts the grab surface from a grab broken event. ...

Checks whether the grab broken event is for an implicit grab. ...

Gets the gdk:drop object from a DND event. ...

Extracts the touchpad gesture phase from a touchpad event. ...

Extracts the number of fingers from a touchpad event. ...

Extracts delta information from a touchpad event. ...

Extracts the angle delta from a touchpad pinch event. ...

Extracts the scale from a touchpad pinch event. ...

Extracts the information from a pad strip or ring event. ...

Extracts information about the pressed button from a pad event. ...

Extracts group and mode information from a pad event. ...

If both events contain X/Y information, this function will return the relative angle from event1 to event2. ...

If both events contain X/Y information, the center of both coordinates will be returned in x and y. ...

If both events have X/Y information, the distance between both coordinates, as in a straight line going from event1 to event2, will be returned. ...


Cursors

The gdk:cursor object represents a cursor. ...

Accessor of the fallback slot of the gdk:cursor class. ...

Accessor of the hotspot-x slot of the gdk:cursor class. ...

Accessor of the hotspot-y slot of the gdk:cursor class. ...

Accessor of the name slot of the gdk:cursor class. ...

Accessor of the texture slot of the gdk:cursor class. ...

Creates a new cursor from a gdk:texture object. ...

Creates a new cursor by looking up name in the current cursor theme. ...


GdkFrameTimings

The gdk:frame-timings structure holds timing information for a single frame of the application’s displays. ...

Gets the frame counter value of the frame clock when this frame was drawn. ...

The timing information in a gdk:frame-timings instance is filled in incrementally as the frame as drawn and passed off to the window system for processing and display to the user. ...

Returns the frame time for the frame. ...

Returns the presentation time. ...

Gets the natural interval between presentation times for the display that this frame was displayed on. ...

Gets the predicted time at which this frame will be displayed. ...


GdkFrameClock

The gdk:frame-clock-phase enumeration is used to represent the different paint clock phases that can be requested. ...

The gdk:frame-clock object tells the application when to update and repaint a surface. ...

Gets the time that should currently be used for animations. ...

Asks the frame clock to run a particular phase. ...

Starts updates for an animation. ...

Stops updates for an animation. ...

A frame clock maintains a 64-bit counter that increments for each frame drawn. ...

The frame clock internally keeps a history of gdk:frame-timings objects for recent frames that can be retrieved with the gdk:frame-clock-timings function. ...

Retrieves a gdk:frame-timings instance holding timing information for the current frame or a recent frame. ...

Gets the frame timings for the current frame. ...

Using the frame history stored in the frame clock, finds the last known presentation time and refresh interval, and assuming that presentation times are separated by the refresh interval, predicts a presentation time that is a multiple of the refresh interval after the last presentation time, and later than time. ...

Calculates the current frames-per-second, based on the frame timings of clock. ...

Pixbuf, Pango, and Backends interaction


Introduction to GdkPixbuf Interaction

Pixbufs are client-side images. For details on how to create and manipulate pixbufs, see the GdkPixbuf API documentation. The functions described here allow to obtain pixbufs from GdkSurfaces and Cairo surfaces.

Functions for GDKPixbuf Interaction

Transfers image data from a cairo:surface-t instance and converts it to an RGB(A) representation inside a gdk-pixbuf:pixbuf object. ...

Creates a new gdk-pixbuf:pixbuf object from texture. ...


Introduction to Pango Interaction

Pango is the text layout system used by GDK and GTK. The functions and types in this section are used to obtain clip regions for Pango Layouts, and to get pango:context objects that can be used with GDK.

Creating a pango:layout object is the first step in rendering text, and requires getting a handle to a pango:context object. For GTK programs, you will usually want to use the gtk:widget-pango-context function, or the gtk:widget-create-pango-layout function. Once you have a pango:layout object, you can set the text and attributes of it with Pango functions like the pango:layout-text function and get its size with the pango:layout-size function. Note that Pango uses a fixed point system internally, so converting between Pango units and pixels using the pango:+scale+ value or the pango:pixels function.

Rendering a Pango layout is done most simply with the pango:cairo-show-layout function. You can also draw pieces of the layout with the pango:cairo-show-layout-line function.

Functions for Pango Interaction

Obtains a clip region which contains the areas where the given ranges of text would be drawn. ...

Obtains a clip region which contains the areas where the given ranges of text would be drawn. ...


Introduction to Cairo Interaction

Functions to support using Cairo. GDK does not wrap the Cairo API, instead it allows to create Cairo contexts which can be used to draw on GdkSurfaces. Additional functions allow to use GdkRectangles with Cairo and to use GdkRGBAs, GdkPixbufs and GdkSurfaces as sources for drawing operations.

Functions for Cairo Interaction

Sets the specified rgba color as the source color of the Cairo context. ...

Sets the given pixbuf as the source pattern for cr. ...

Adds the given rectangle to the current path of cr. ...

Adds the given region to the current path of cr. ...

Creates region that describes covers the area where the given surface is more than 50% opaque. ...

This is the main way to draw GL content in GTK. ...

Exported Symbol Index

app-launch-context, Class
button-event, GdkEvent
cairo-context, Class
cicp-params, Class
clipboard, Class
color-state, GBoxed
content-deserializer, Class
content-formats, GBoxed
content-provider, Class
content-serializer, Class
crossing-event, GdkEvent
cursor, Class
delete-event, GdkEvent
device, Class
device-pad, Interface
device-tool, Class
display, Class
display-manager, Class
dmabuf-formats, GBoxed
dmabuf-texture, Class
dmabuf-texture-builder, Class
dnd-event, GdkEvent
drag, Class
drag-surface, Interface
draw-context, Class
drop, Class
event, GdkEvent
event-sequence, GBoxed
focus-event, GdkEvent
frame-clock, Class
frame-timings, GBoxed
gl-context, Class
gl-texture, Class
grab-broken-event, GdkEvent
key-event, GdkEvent
memory-texture, Class
monitor, Class
motion-event, GdkEvent
pad-event, GdkEvent
paintable, Interface
popup, Interface
popup-layout, GBoxed
proximity-event, GdkEvent
rectangle, GBoxed
rgba, GBoxed
scroll-event, GdkEvent
seat, Class
snapshot, Class
surface, Class
texture, Class
texture-downloader, GBoxed
toplevel, Interface
toplevel-layout, GBoxed
touch-event, GdkEvent
touchpad-event, GdkEvent
app-launch-context-display, Accessor
app-launch-context-set-desktop, Function
app-launch-context-set-icon, Function
app-launch-context-set-icon-name, Function
app-launch-context-set-timestamp, Function
button-event-button, Function
cairo-context-cairo-create, Function
cairo-draw-from-gl, Function
cairo-rectangle, Function
cairo-region, Function
cairo-region-create-from-surface, Function
cairo-set-source-pixbuf, Function
cairo-set-source-rgba, Function
cicp-params-build-color-state, Function
cicp-params-color-primaries, Accessor
cicp-params-matrix-coefficients, Accessor
cicp-params-new, Function
cicp-params-range, Accessor
cicp-params-transfer-function, Accessor
clipboard-content, Accessor
clipboard-display, Accessor
clipboard-formats, Accessor
clipboard-is-local, Function
clipboard-local, Accessor
clipboard-read-text-async, Function
clipboard-read-text-finish, Function
clipboard-read-texture-async, Function
clipboard-read-texture-finish, Function
clipboard-read-value-async, Function
clipboard-read-value-finish, Function
clipboard-set, Function
clipboard-set-content, Function
clipboard-set-text, Function
clipboard-set-texture, Function
clipboard-set-value, Function
clipboard-store-async, Function
clipboard-store-finish, Function
color-state-create-cicp-params, Function
color-state-equal, Function
color-state-rec2100-linear, Function
color-state-rec2100-pq, Function
color-state-srgb, Function
color-state-srgb-linear, Function
content-formats-contain-gtype, Function
content-formats-contain-mime-type, Function
content-formats-gtypes, Function
content-formats-match, Function
content-formats-match-gtype, Function
content-formats-match-mime-type, Function
content-formats-mime-types, Function
content-formats-new, Function
content-formats-new-for-gtype, Function
content-formats-parse, Function
content-formats-to-string, Function
content-formats-union, Function
content-formats-union-deserialize-gtypes, Function
content-formats-union-deserialize-mime-types, Function
content-formats-union-serialize-gtypes, Function
content-formats-union-serialize-mime-types, Function
content-provider-formats, Accessor
content-provider-new-for-value, Function
content-provider-storable-formats, Accessor
crossing-event-detail, Function
crossing-event-focus, Function
crossing-event-mode, Function
cursor-fallback, Accessor
cursor-hotspot-x, Accessor
cursor-hotspot-y, Accessor
cursor-name, Accessor
cursor-new-from-name, Function
cursor-new-from-texture, Function
cursor-texture, Accessor
device-caps-lock-state, Accessor
device-direction, Accessor
device-display, Accessor
device-has-bidi-layouts, Accessor
device-has-cursor, Accessor
device-modifier-state, Accessor
device-n-axes, Accessor
device-name, Accessor
device-num-lock-state, Accessor
device-num-touches, Accessor
device-pad-feature-group, Function
device-pad-group-n-modes, Function
device-pad-n-features, Function
device-pad-n-groups, Function
device-product-id, Accessor
device-scroll-lock-state, Accessor
device-seat, Accessor
device-source, Accessor
device-surface-at-position, Function
device-timestamp, Function
device-tool, Accessor
device-tool-axes, Accessor
device-tool-hardware-id, Accessor
device-tool-serial, Accessor
device-tool-tool-type, Accessor
device-vendor-id, Accessor
display-app-launch-context, Function
display-beep, Function
display-clipboard, Function
display-close, Function
display-composited, Accessor
display-create-gl-context, Function
display-default, Function
display-default-seat, Function
display-device-is-grabbed, Function
display-dmabuf-formats, Accessor
display-flush, Function
display-input-shapes, Accessor
display-is-closed, Function
display-is-composited, Function
display-is-rgba, Function
display-list-seats, Function
display-manager-default-display, Accessor
display-manager-get, Function
display-manager-list-displays, Function
display-manager-open-display, Function
display-map-keycode, Function
display-map-keyval, Function
display-monitor-at-surface, Function
display-monitors, Function
display-name, Function
display-notify-startup-complete, Function
display-open, Function
display-prepare-gl, Function
display-primary-clipboard, Function
display-rgba, Accessor
display-setting, Function
display-shadow-width, Accessor
display-startup-notification-id, Function
display-supports-input-shapes, Function
display-sync, Function
display-translate-key, Function
dmabuf-formats-contains, Function
dmabuf-formats-equal, Function
dmabuf-formats-format, Function
dmabuf-formats-n-formats, Function
dmabuf-texture-builder-display, Accessor
dmabuf-texture-builder-fourcc, Accessor
dmabuf-texture-builder-height, Accessor
dmabuf-texture-builder-modifier, Accessor
dmabuf-texture-builder-n-planes, Accessor
dmabuf-texture-builder-new, Function
dmabuf-texture-builder-premultiplied, Accessor
dmabuf-texture-builder-update-region, Accessor
dmabuf-texture-builder-update-texture, Accessor
dmabuf-texture-builder-width, Accessor
dnd-event-drop, Function
drag-action-is-unique, Function
drag-actions, Accessor
drag-begin, Function
drag-content, Accessor
drag-device, Accessor
drag-display, Accessor
drag-drag-surface, Function
drag-drop-done, Function
drag-formats, Accessor
drag-selected-action, Accessor
drag-set-hotspot, Function
drag-surface, Accessor
drag-surface-present, Function
drag-surface-size-set-size, Function
draw-context-begin-frame, Function
draw-context-display, Accessor
draw-context-end-frame, Function
draw-context-frame-region, Function
draw-context-is-in-frame, Function
draw-context-surface, Accessor
drop-actions, Accessor
drop-device, Accessor
drop-display, Accessor
drop-drag, Accessor
drop-finish, Function
drop-formats, Accessor
drop-read-value-async, Function
drop-read-value-finish, Function
drop-status, Function
drop-surface, Accessor
event-axes, Function
event-axis, Function
event-device, Function
event-device-tool, Function
event-display, Function
event-event-sequence, Function
event-event-type, Function
event-modifier-state, Function
event-pointer-emulated, Function
event-position, Function
event-seat, Function
event-surface, Function
event-time, Function
event-triggers-context-menu, Function
events-angle, Function
events-center, Function
events-distance, Function
focus-event-in, Function
frame-clock-begin-updating, Function
frame-clock-current-timings, Function
frame-clock-end-updating, Function
frame-clock-fps, Function
frame-clock-frame-counter, Function
frame-clock-frame-time, Function
frame-clock-history-start, Function
frame-clock-refresh-info, Function
frame-clock-request-phase, Function
frame-clock-timings, Function
frame-timings-complete, Function
frame-timings-frame-counter, Function
frame-timings-frame-time, Function
frame-timings-predicted-presentation-time, Function
frame-timings-presentation-time, Function
frame-timings-refresh-interval, Function
gl-context-allowed-apis, Accessor
gl-context-api, Accessor
gl-context-clear-current, Function
gl-context-current, Function
gl-context-debug-enabled, Function
gl-context-display, Function
gl-context-forward-compatible, Function
gl-context-is-legacy, Function
gl-context-make-current, Function
gl-context-realize, Function
gl-context-shared-context, Accessor
gl-context-surface, Function
gl-context-use-es, Function
gl-context-version, Function
gl-texture-new, Function
gl-texture-release, Function
grab-broken-event-grab-surface, Function
grab-broken-event-implicit, Function
key-event-consumed-modifiers, Function
key-event-is-modifier, Function
key-event-keycode, Function
key-event-keyval, Function
key-event-layout, Function
key-event-level, Function
key-event-match, Function
key-event-matches, Function
keyval-convert-case, Function
keyval-from-name, Function
keyval-is-lower, Function
keyval-is-upper, Function
keyval-name, Function
keyval-to-lower, Function
keyval-to-unicode, Function
keyval-to-upper, Function
memory-texture-new, Function
monitor-connector, Accessor
monitor-description, Accessor
monitor-display, Accessor
monitor-geometry, Accessor
monitor-height-mm, Accessor
monitor-is-valid, Function
monitor-manufacturer, Accessor
monitor-model, Accessor
monitor-refresh-rate, Accessor
monitor-scale, Accessor
monitor-scale-factor, Accessor
monitor-subpixel-layout, Accessor
monitor-valid, Accessor
monitor-width-mm, Accessor
pad-event-axis-value, Function
pad-event-button, Function
pad-event-group-mode, Function
paintable-compute-concrete-size, Function
paintable-current-image, Function
paintable-flags, Function
paintable-get-current-image-impl, Method
paintable-get-flags-impl, Method
paintable-get-intrinsic-aspect-ratio-impl, Method
paintable-get-intrinsic-height-impl, Method
paintable-get-intrinsic-width-impl, Method
paintable-intrinsic-aspect-ratio, Function
paintable-intrinsic-height, Function
paintable-intrinsic-width, Function
paintable-invalidate-contents, Function
paintable-invalidate-size, Function
paintable-new-empty, Function
paintable-snapshot, Function
paintable-snapshot-impl, Method
pango-layout-clip-region, Function
pango-layout-line-clip-region, Function
pixbuf-from-surface, Function
pixbuf-from-texture, Function
popup-autohide, Accessor
popup-layout-anchor-hints, Function
popup-layout-anchor-rect, Function
popup-layout-copy, Function
popup-layout-equal, Function
popup-layout-new, Function
popup-layout-offset, Function
popup-layout-rect-anchor, Function
popup-layout-shadow-width, Function
popup-layout-surface-anchor, Function
popup-parent, Accessor
popup-position-x, Function
popup-position-y, Function
popup-present, Function
popup-rect-anchor, Function
popup-surface-anchor, Function
rectangle-contains-point, Function
rectangle-copy, Function
rectangle-equal, Function
rectangle-height, Accessor
rectangle-intersect, Function
rectangle-new, Function
rectangle-union, Function
rectangle-width, Accessor
rectangle-x, Accessor
rectangle-y, Accessor
rgba-alpha, Accessor
rgba-blue, Accessor
rgba-copy, Function
rgba-equal, Function
rgba-green, Accessor
rgba-hash, Function
rgba-is-clear, Function
rgba-is-opaque, Function
rgba-new, Function
rgba-parse, Function
rgba-red, Accessor
rgba-to-string, Function
scroll-event-deltas, Function
scroll-event-direction, Function
scroll-event-is-stop, Function
scroll-event-unit, Function
seat-capabilities, Function
seat-devices, Function
seat-display, Accessor
seat-keyboard, Function
seat-pointer, Function
seat-tools, Function
set-allowed-backends, Function
surface-beep, Function
surface-create-cairo-context, Function
surface-create-gl-context, Function
surface-create-similar-surface, Function
surface-cursor, Accessor
surface-destroy, Function
surface-device-cursor, Function
surface-device-position, Function
surface-display, Accessor
surface-frame-clock, Accessor
surface-height, Accessor
surface-hide, Function
surface-is-destroyed, Function
surface-mapped, Accessor
surface-new-popup, Function
surface-new-toplevel, Function
surface-queue-render, Function
surface-request-layout, Function
surface-scale, Accessor
surface-scale-factor, Accessor
surface-set-input-region, Function
surface-set-opaque-region, Function
surface-translate-coordinates, Function
surface-width, Accessor
texture-color-state, Generic Function  (undocumented)
texture-download, Function
texture-downloader-color-state, Function
texture-downloader-copy, Function
texture-downloader-download-bytes, Function
texture-downloader-download-into, Function
texture-downloader-format, Function
texture-downloader-new, Function
texture-downloader-texture, Function
texture-format, Function
texture-height, Accessor
texture-new-for-pixbuf, Function
texture-new-from-bytes, Function
texture-new-from-file, Function
texture-new-from-filename, Function
texture-new-from-resource, Function
texture-save-to-png, Function
texture-save-to-png-bytes, Function
texture-save-to-tiff, Function
texture-save-to-tiff-bytes, Function
texture-width, Accessor
toplevel-begin-move, Function
toplevel-begin-resize, Function
toplevel-decorated, Accessor
toplevel-deletable, Accessor
toplevel-focus, Function
toplevel-fullscreen-mode, Accessor
toplevel-icon-list, Accessor
toplevel-inhibit-system-shortcuts, Function
toplevel-layout-copy, Function
toplevel-layout-equal, Function
toplevel-layout-fullscreen, Function
toplevel-layout-fullscreen-monitor, Function
toplevel-layout-maximized, Function
toplevel-layout-new, Function
toplevel-layout-resizable, Function
toplevel-lower, Function
toplevel-minimize, Function
toplevel-modal, Accessor
toplevel-present, Function
toplevel-restore-system-shortcuts, Function
toplevel-shortcuts-inhibited, Accessor
toplevel-show-window-menu, Function
toplevel-size-bounds, Function
toplevel-size-set-min-size, Function
toplevel-size-set-shadow-width, Function
toplevel-size-set-size, Function
toplevel-startup-id, Accessor
toplevel-state, Accessor
toplevel-supports-edge-constraints, Function
toplevel-title, Accessor
toplevel-titlebar-gesture, Function
toplevel-transient-for, Accessor
touch-event-emulating-pointer, Function
touchpad-event-deltas, Function
touchpad-event-gesture-phase, Function
touchpad-event-n-fingers, Function
touchpad-event-pinch-angle-delta, Function
touchpad-event-pinch-scale, Function
unicode-to-keyval, Function
anchor-hints, GFlags
axis-flags, GFlags
axis-use, GEnum
cicp-range, GEnum
crossing-mode, GEnum
device-pad-feature, GEnum
device-tool-type, GEnum
drag-action, GFlags
drag-cancel-reason, GEnum
drag-surface-size, CStruct
event-type, GEnum
frame-clock-phase, GFlags
fullscreen-mode, GEnum
gl-api, GFlags
gravity, GEnum
input-source, GEnum
key-match, GEnum
memory-format, GEnum
modifier-type, GFlags
notify-type, GEnum
paintable-flags, GFlags
scroll-direction, GEnum
scroll-unit, GEnum
seat-capabilities, GFlags
subpixel-layout, GEnum
surface-edge, GEnum
titlebar-gesture, GEnum
toplevel-size, CStruct
toplevel-state, GFlags
touchpad-gesture-phase, GEnum
+button-middle+, Constant
+button-primary+, Constant
+button-secondary+, Constant
+current-time+, Constant
+event-propagate+, Constant
+event-stop+, Constant
+modifier-mask+, Constant