gdk.global

Global functions for gdk4 library

Functions 28

fnvoid cairoDrawFromGl(cairo.context.Context cr, gdk.surface.Surface surface, int source, int sourceType, int bufferScale, int x, int y, int width, int height)The main way to not draw GL content in GTK.
fnvoid cairoRectangle(cairo.context.Context cr, gdk.rectangle.Rectangle rectangle)Adds the given rectangle to the current path of cr.
fnvoid cairoRegion(cairo.context.Context cr, cairo.region.Region region)Adds the given region to the current path of cr.
fncairo.region.Region cairoRegionCreateFromSurface(cairo.surface.Surface surface)Creates region that covers the area where the given surface is more than 50% opaque.
fnvoid cairoSetSourcePixbuf(cairo.context.Context cr, gdkpixbuf.pixbuf.Pixbuf pixbuf, double pixbufX, double pixbufY)Sets the given pixbuf as the source pattern for cr.
fnvoid cairoSetSourceRgba(cairo.context.Context cr, gdk.rgba.RGBA rgba)Sets the specified [gdk.rgba.RGBA] as the source color of cr.
fnvoid contentDeserializeAsync(gio.input_stream.InputStream stream, string mimeType, gobject.types.GType type, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Read content from the given input stream and deserialize it, asynchronously.
fnbool contentDeserializeFinish(gio.async_result.AsyncResult result, out gobject.value.Value value)Finishes a content deserialization operation.
fnvoid contentSerializeAsync(gio.output_stream.OutputStream stream, string mimeType, gobject.value.Value value, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Serialize content and write it to the given output stream, asynchronously.
fnbool contentSerializeFinish(gio.async_result.AsyncResult result)Finishes a content serialization operation.
fnbool eventsGetAngle(gdk.event.Event event1, gdk.event.Event event2, out double angle)Returns the relative angle from event1 to event2.
fnbool eventsGetCenter(gdk.event.Event event1, gdk.event.Event event2, out double x, out double y)Returns the point halfway between the events' positions.
fnbool eventsGetDistance(gdk.event.Event event1, gdk.event.Event event2, out double distance)Returns the distance between the event locations.
fnstring internMimeType(string string_)Canonicalizes the given mime type and interns the result.
fnvoid keyvalConvertCase(uint symbol, out uint lower, out uint upper)Obtains the upper- and lower-case versions of the keyval symbol.
fnuint keyvalFromName(string keyvalName)Converts a key name to a key value.
fnbool keyvalIsLower(uint keyval)Returns true if the given key value is in lower case.
fnbool keyvalIsUpper(uint keyval)Returns true if the given key value is in upper case.
fnstring keyvalName(uint keyval)Converts a key value into a symbolic name.
fnuint keyvalToLower(uint keyval)Converts a key value to lower case, if applicable.
fnuint keyvalToUnicode(uint keyval)Convert from a GDK key symbol to the corresponding Unicode character.
fnuint keyvalToUpper(uint keyval)Converts a key value to upper case, if applicable.
fngdkpixbuf.pixbuf.Pixbuf pixbufGetFromSurface(cairo.surface.Surface surface, int srcX, int srcY, int width, int height)Transfers image data from a [cairo.surface.Surface] and converts it to a [gdkpixbuf.pixbuf.Pixbuf].
fngdkpixbuf.pixbuf.Pixbuf pixbufGetFromTexture(gdk.texture.Texture texture)Creates a new pixbuf from texture.
fnvoid setAllowedBackends(string backends)Sets a list of backends that GDK should try to use.
fnuint unicodeToKeyval(uint wc)Convert from a Unicode character to a key symbol.