Gdk
Description:
Content:
Namespaces:
Interfaces:
- DevicePad - `GdkDevicePad` is an interface implemented by devices of type gdk_source_tablet_pad
- DragSurface - A `GdkDragSurface` is an interface for surfaces used during DND.
- Paintable - `GdkPaintable` is a simple interface used by GTK to represent content that can be painted.
- Popup - A `GdkPopup` is a surface that is attached to another surface.
- Toplevel - A `GdkToplevel` is a freestanding toplevel surface.
Classes:
- AppLaunchContext - `GdkAppLaunchContext` handles launching an application in a graphical context.
- ButtonEvent - An event related to a button on a pointer device.
- CairoContext - `GdkCairoContext` is an object representing the platform-specific draw context.
- Clipboard - The `GdkClipboard` object represents data shared between applications or inside an application.
- ContentDeserializer - A `GdkContentDeserializer` is used to deserialize content received via inter-application data transfers.
- ContentFormats - The `GdkContentFormats` structure is used to advertise and negotiate the format of content.
- ContentFormatsBuilder - A `GdkContentFormatsBuilder` is an auxiliary struct used to create new `GdkContentFormats`, and should not be kept around.
- ContentProvider - A `GdkContentProvider` is used to provide content for the clipboard or for drag-and-drop operations in a number of formats.
- ContentSerializer - A `GdkContentSerializer` is used to serialize content for inter-application data transfers.
- CrossingEvent - An event caused by a pointing device moving between surfaces.
- Cursor - `GdkCursor` is used to create and destroy cursors.
- DNDEvent - An event related to drag and drop operations.
- DeleteEvent - An event related to closing a top-level surface.
- Device - The `GdkDevice` object represents an input device, such as a keyboard, a mouse, or a touchpad.
- DeviceTool - A physical tool associated to a `GdkDevice`.
- Display - `GdkDisplay` objects are the GDK representation of a workstation.
- DisplayManager - A singleton object that offers notification when displays appear or disappear.
- DmabufFormats - The `GdkDmabufFormats` struct provides information about supported DMA buffer formats.
- DmabufTexture - A `GdkTexture` representing a DMA buffer.
- DmabufTextureBuilder - `GdkDmabufTextureBuilder` is a builder used to construct [class@Gdk.
- Drag - The `GdkDrag` object represents the source of an ongoing DND operation.
- DragSurfaceSize - The `GdkDragSurfaceSize` struct contains information that is useful to compute the size of a drag surface.
- DrawContext - Base class for objects implementing different rendering methods.
- Drop - The `GdkDrop` object represents the target of an ongoing DND operation.
- Event - `GdkEvent`s are immutable data structures, created by GDK to represent windowing system events.
- EventSequence - `GdkEventSequence` is an opaque type representing a sequence of related touch events.
- FileList - An opaque type representing a list of files.
- FocusEvent - An event related to a keyboard focus change.
- FrameClock - A `GdkFrameClock` tells the application when to update and repaint a surface.
- FrameTimings - A `GdkFrameTimings` object holds timing information for a single frame of the application’s displays.
- GLContext - `GdkGLContext` is an object representing a platform-specific OpenGL draw context.
- GLTexture - A GdkTexture representing a GL texture object.
- GLTextureBuilder - `GdkGLTextureBuilder` is a builder used to construct [class@Gdk.
- GrabBrokenEvent - An event related to a broken windowing system grab.
- KeyEvent - An event related to a key-based device.
- MemoryTexture - A `GdkTexture` representing image data in memory.
- Monitor - `GdkMonitor` objects represent the individual outputs that are associated with a `GdkDisplay`.
- MotionEvent - An event related to a pointer or touch device motion.
- PadEvent - An event related to a pad-based device.
- PopupLayout - The `GdkPopupLayout` struct contains information that is necessary position a [iface@Gdk.
- ProximityEvent - An event related to the proximity of a tool to a device.
- ScrollEvent - An event related to a scrolling motion.
- Seat - The `GdkSeat` object represents a collection of input devices that belong to a user.
- Snapshot - Base type for snapshot operations.
- Surface - A `GdkSurface` is a rectangular region on the screen.
- Texture - `GdkTexture` is the basic element used to refer to pixel data.
- TextureDownloader - The `GdkTextureDownloader` is used to download the contents of a [class@Gdk.
- ToplevelLayout - The `GdkToplevelLayout` struct contains information that is necessary to present a sovereign window on screen.
- ToplevelSize - The `GdkToplevelSize` struct contains information that is useful to compute the size of a toplevel.
- TouchEvent - An event related to a touch-based device.
- TouchpadEvent - An event related to a gesture on a touchpad device.
- VulkanContext - `GdkVulkanContext` is an object representing the platform-specific Vulkan draw context.
Structs:
- KeymapKey - A `GdkKeymapKey` is a hardware key that can be mapped to a keyval.
- RGBA - A `GdkRGBA` is used to represent a color, in a way that is compatible with cairo’s notion of color.
- Rectangle - A `GdkRectangle` data type for representing rectangles.
- TimeCoord - A `GdkTimeCoord` stores a single event in a motion history.
Enums:
- AnchorHints - Positioning hints for aligning a surface relative to a rectangle.
- AxisFlags - Flags describing the current capabilities of a device/tool.
- 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.
- DragAction - Used in `GdkDrop` and `GdkDrag` to indicate the actions that the destination can and should do with the dropped data.
- DragCancelReason - Used in `GdkDrag` to the reason of a cancelled DND operation.
- EventType - Specifies the type of the event.
- FrameClockPhase - Used to represent the different paint clock phases that can be requested.
- FullscreenMode - Indicates which monitor a surface should span over when in fullscreen mode.
- GLAPI - The list of the different APIs that GdkGLContext can potentially support.
- Gravity - Defines the reference point of a surface and is used in `GdkPopupLayout`.
- 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 - `GdkMemoryFormat` describes formats that image data can have in memory.
- ModifierType - Flags to indicate the state of modifier keys and mouse buttons in events.
- NotifyType - Specifies the kind of crossing for enter and leave events.
- PaintableFlags - Flags about a paintable object.
- ScrollDirection - Specifies the direction for scroll events.
- ScrollUnit - Specifies the unit of scroll deltas.
- SeatCapabilities - Flags describing the seat capabilities.
- 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
- ToplevelState - Specifies the state of a toplevel surface.
- TouchpadGesturePhase - Specifies the current state of a touchpad gesture.
Error domains:
- DmabufError - Error enumeration for `GdkDmabufTexture`.
- GLError - Error enumeration for `GdkGLContext`.
- TextureError - Possible errors that can be returned by `GdkTexture` constructors.
- VulkanError - Error enumeration for `GdkVulkanContext`.
Constants:
- public const int ACTION_ALL
Defines all possible DND actions.
- public const int BUTTON_MIDDLE
The middle button.
- public const int BUTTON_PRIMARY
The primary button.
- public const int BUTTON_SECONDARY
The secondary button.
- public const int CURRENT_TIME
Represents the current time, and can be used anywhere a time is expected.
- public const bool EVENT_PROPAGATE
Use this macro as the return value for continuing the propagation of an event handler.
- public const bool EVENT_STOP
Use this macro as the return value for stopping the propagation of an event handler.
- public const int MODIFIER_MASK
A mask covering all entries in `GdkModifierType`.
- public const int PRIORITY_REDRAW
This is the priority that the idle handler processing surface updates is given in the main loop.
Delegates:
- public delegate void ContentDeserializeFunc (ContentDeserializer deserializer)
The type of a function that can be registered with content_register_deserializer.
- public delegate void ContentSerializeFunc (ContentSerializer serializer)
The type of a function that can be registered with content_register_serializer.
Functions:
- public void cairo_draw_from_gl (Context cr, Surface surface, int source, int source_type, int buffer_scale, int x, int y, int width, int height)
The main way to not draw GL content in GTK.
- public void cairo_rectangle (Context cr, Rectangle rectangle)
Adds the given rectangle to the current path of
cr
. - public void cairo_region (Context cr, Region region)
Adds the given region to the current path of
cr
. - public Region cairo_region_create_from_surface (Surface surface)
Creates region that covers the area where the given
surface
is more than 50% opaque. - public void cairo_set_source_pixbuf (Context cr, Pixbuf pixbuf, double pixbuf_x, double pixbuf_y)
Sets the given pixbuf as the source pattern for
cr
. - public void cairo_set_source_rgba (Context cr, RGBA rgba)
Sets the specified `GdkRGBA` as the source color of
cr
. - public async bool content_deserialize_async (InputStream stream, string mime_type, Type type, int io_priority, Cancellable? cancellable, out Value value) throws Error
Read content from the given input stream and deserialize it, asynchronously.
- public ContentFormats? content_formats_parse (string string)
Parses the given
string
into `GdkContentFormats` and returns the formats. - public void content_register_deserializer (string mime_type, Type type, ContentDeserializeFunc deserialize, void* data, DestroyNotify notify)
Registers a function to deserialize object of a given type.
- public void content_register_serializer (Type type, string mime_type, ContentSerializeFunc serialize, void* data, DestroyNotify notify)
Registers a function to serialize objects of a given type.
- public async bool content_serialize_async (OutputStream stream, string mime_type, Value value, int io_priority, Cancellable? cancellable) throws Error
Serialize content and write it to the given output stream, asynchronously.
- public Quark dmabuf_error_quark ()
- public bool drag_action_is_unique (DragAction action)
- public Quark gl_error_quark ()
- public unowned string? intern_mime_type (string string)
Canonicalizes the given mime type and interns the result.
- public void keyval_convert_case (uint symbol, out uint lower, out uint upper)
Obtains the upper- and lower-case versions of the keyval
symbol
. - public uint keyval_from_name (string keyval_name)
Converts a key name to a key value.
- public bool keyval_is_lower (uint keyval)
Returns true if the given key value is in lower case.
- public bool keyval_is_upper (uint keyval)
Returns true if the given key value is in upper case.
- public unowned string? keyval_name (uint keyval)
Converts a key value into a symbolic name.
- public uint keyval_to_lower (uint keyval)
Converts a key value to lower case, if applicable.
- public uint32 keyval_to_unicode (uint keyval)
Convert from a GDK key symbol to the corresponding Unicode character.
- public uint keyval_to_upper (uint keyval)
Converts a key value to upper case, if applicable.
- public Region pango_layout_get_clip_region (Layout layout, int x_origin, int y_origin, int[] index_ranges)
Obtains a clip region which contains the areas where the given ranges of text would be drawn.
- public Pixbuf? pixbuf_get_from_surface (Surface surface, int src_x, int src_y, int width, int height)
Transfers image data from a `cairo_surface_t` and converts it to a `GdkPixbuf`.
- public Pixbuf? pixbuf_get_from_texture (Texture texture)
Creates a new pixbuf from
texture
. - public void set_allowed_backends (string backends)
Sets a list of backends that GDK should try to use.
- public Quark texture_error_quark ()
- public uint unicode_to_keyval (uint32 wc)
Convert from a Unicode character to a key symbol.
- public Quark vulkan_error_quark ()