Gdk
Description:
Content:
Namespaces:
Interfaces:
- DevicePad - An interface for tablet pad devices.
- DragSurface - A surface that is used during DND.
- Paintable - An interface for content that can be painted.
- Popup - A surface that is attached to another surface.
- Toplevel - A freestanding toplevel surface.
Classes:
- AppLaunchContext - Handles launching an application in a graphical context.
- ButtonEvent - An event related to a button on a pointer device.
- CairoContext - Represents the platform-specific draw context.
- Clipboard - Represents data shared between applications or inside an application.
- ContentDeserializer - Deserializes content received via inter-application data transfers.
- ContentFormats - Used to advertise and negotiate the format of content.
- ContentFormatsBuilder - Creates `GdkContentFormats` objects.
- ContentProvider - Provides content for the clipboard or for drag-and-drop operations in a number of formats.
- ContentSerializer - Serializes content for inter-application data transfers.
- CrossingEvent - An event caused by a pointing device moving between surfaces.
- Cursor - 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 - Represents an input device, such as a keyboard, mouse or touchpad.
- DeviceTool - A physical tool associated to a `GdkDevice`.
- Display - A representation of a workstation.
- DisplayManager - Offers notification when displays appear or disappear.
- DmabufFormats - Provides information about supported DMA buffer formats.
- DmabufTexture - A `GdkTexture` representing a DMA buffer.
- DmabufTextureBuilder - Constructs [class@Gdk.
- Drag - Represents the source of an ongoing DND operation.
- DragSurfaceSize - Contains information that is useful to compute the size of a drag surface.
- DrawContext - Base class for objects implementing different rendering methods.
- Drop - Represents the target of an ongoing DND operation.
- Event - Represents windowing system events.
- EventSequence - An opaque type representing a sequence of related events.
- FileList - An opaque type representing a list of files.
- FocusEvent - An event related to a keyboard focus change.
- FrameClock - Tells the application when to update and repaint a surface.
- FrameTimings - Holds timing information for a single frame of the application’s displays.
- GLContext - Represents a platform-specific OpenGL draw context.
- GLTexture - A `GdkTexture` representing a GL texture object.
- GLTextureBuilder - Constructs [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 - Represents 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 - 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 - Represents a collection of input devices that belong to a user.
- Snapshot - Base type for snapshot operations.
- Surface - Represents a rectangular region on the screen.
- Texture - Refers to pixel data in various forms.
- TextureDownloader - Used to download the contents of a [class@Gdk.
- ToplevelLayout - Contains information that is necessary to present a sovereign window on screen.
- ToplevelSize - 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 - Represents the platform-specific Vulkan draw context.
Structs:
- KeymapKey - Represents a hardware key that can be mapped to a keyval.
- RGBA - Represents a color, in a way that is compatible with cairo’s notion of color.
- Rectangle - Represents a rectangle.
- TimeCoord - 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 - 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 - The kind of title bar gesture to emit with [method@Gdk.
- 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)
Draws GL content onto a cairo context.
- 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
Reads 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)
Converts 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)
Converts from a Unicode character to a key symbol.
- public Quark vulkan_error_quark ()