gdk.global
Global functions for gdk4 library
fn cairoDrawFromGl cairoRectangle cairoRegion cairoRegionCreateFromSurface cairoSetSourcePixbuf cairoSetSourceRgba contentDeserializeAsync contentDeserializeFinish contentSerializeAsync contentSerializeFinish dragSurfaceSizeGetType eventsGetAngle eventsGetCenter eventsGetDistance internMimeType keyvalConvertCase keyvalFromName keyvalIsLower keyvalIsUpper keyvalName keyvalToLower keyvalToUnicode keyvalToUpper pixbufGetFromSurface pixbufGetFromTexture setAllowedBackends toplevelSizeGetType unicodeToKeyval
Functions 28
fn
void 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.fn
void cairoRectangle(cairo.context.Context cr, gdk.rectangle.Rectangle rectangle) nothrowAdds the given rectangle to the current path of cr.fn
void cairoRegion(cairo.context.Context cr, cairo.region.Region region) nothrowAdds the given region to the current path of cr.fn
cairo.region.Region cairoRegionCreateFromSurface(cairo.surface.Surface surface) nothrowCreates region that covers the area where the given surface is more than 50% opaque.fn
void cairoSetSourcePixbuf(cairo.context.Context cr, gdkpixbuf.pixbuf.Pixbuf pixbuf, double pixbufX, double pixbufY) nothrowSets the given pixbuf as the source pattern for cr.fn
void cairoSetSourceRgba(cairo.context.Context cr, gdk.rgba.RGBA rgba) nothrowSets the specified [gdk.rgba.RGBA] as the source color of cr.fn
void 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.fn
bool contentDeserializeFinish(gio.async_result.AsyncResult result, out gobject.value.Value value)Finishes a content deserialization operation.fn
void 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.fn
bool contentSerializeFinish(gio.async_result.AsyncResult result)Finishes a content serialization operation.fn
bool eventsGetAngle(gdk.event.Event event1, gdk.event.Event event2, out double angle) nothrowReturns the relative angle from event1 to event2.fn
bool eventsGetCenter(gdk.event.Event event1, gdk.event.Event event2, out double x, out double y) nothrowReturns the point halfway between the events' positions.fn
bool eventsGetDistance(gdk.event.Event event1, gdk.event.Event event2, out double distance) nothrowReturns the distance between the event locations.fn
string internMimeType(string string_) nothrowCanonicalizes the given mime type and interns the result.fn
void keyvalConvertCase(uint symbol, out uint lower, out uint upper) nothrowObtains the upper- and lower-case versions of the keyval symbol.fn
uint keyvalToUnicode(uint keyval) nothrowConvert from a GDK key symbol to the corresponding Unicode character.fn
gdkpixbuf.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].fn
gdkpixbuf.pixbuf.Pixbuf pixbufGetFromTexture(gdk.texture.Texture texture) nothrowCreates a new pixbuf from texture.fn
void setAllowedBackends(string backends) nothrowSets a list of backends that GDK should try to use.