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) nothrowThe main way to not draw GL content in GTK.
fnvoid cairoRectangle(cairo.context.Context cr, gdk.rectangle.Rectangle rectangle) nothrowAdds the given rectangle to the current path of cr.
fnvoid cairoRegion(cairo.context.Context cr, cairo.region.Region region) nothrowAdds the given region to the current path of cr.
fncairo.region.Region cairoRegionCreateFromSurface(cairo.surface.Surface surface) nothrowCreates 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) nothrowSets the given pixbuf as the source pattern for cr.
fnvoid cairoSetSourceRgba(cairo.context.Context cr, gdk.rgba.RGBA rgba) nothrowSets 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) nothrowRead 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) nothrowSerialize 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) nothrowReturns the relative angle from event1 to event2.
fnbool eventsGetCenter(gdk.event.Event event1, gdk.event.Event event2, out double x, out double y) nothrowReturns the point halfway between the events' positions.
fnbool eventsGetDistance(gdk.event.Event event1, gdk.event.Event event2, out double distance) nothrowReturns the distance between the event locations.
fnstring internMimeType(string string_) nothrowCanonicalizes the given mime type and interns the result.
fnvoid keyvalConvertCase(uint symbol, out uint lower, out uint upper) nothrowObtains the upper- and lower-case versions of the keyval symbol.
fnuint keyvalFromName(string keyvalName) nothrowConverts a key name to a key value.
fnbool keyvalIsLower(uint keyval) nothrowReturns true if the given key value is in lower case.
fnbool keyvalIsUpper(uint keyval) nothrowReturns true if the given key value is in upper case.
fnstring keyvalName(uint keyval) nothrowConverts a key value into a symbolic name.
fnuint keyvalToLower(uint keyval) nothrowConverts a key value to lower case, if applicable.
fnuint keyvalToUnicode(uint keyval) nothrowConvert from a GDK key symbol to the corresponding Unicode character.
fnuint keyvalToUpper(uint keyval) nothrowConverts a key value to upper case, if applicable.
fngdkpixbuf.pixbuf.Pixbuf pixbufGetFromSurface(cairo.surface.Surface surface, int srcX, int srcY, int width, int height) nothrowTransfers image data from a [cairo.surface.Surface] and converts it to a [gdkpixbuf.pixbuf.Pixbuf].
fngdkpixbuf.pixbuf.Pixbuf pixbufGetFromTexture(gdk.texture.Texture texture) nothrowCreates a new pixbuf from texture.
fnvoid setAllowedBackends(string backends) nothrowSets a list of backends that GDK should try to use.
fnuint unicodeToKeyval(uint wc) nothrowConvert from a Unicode character to a key symbol.