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)The main way to not draw GL content in GTK.fn
void cairoRectangle(cairo.context.Context cr, gdk.rectangle.Rectangle rectangle)Adds the given rectangle to the current path of cr.fn
void cairoRegion(cairo.context.Context cr, cairo.region.Region region)Adds the given region to the current path of cr.fn
cairo.region.Region cairoRegionCreateFromSurface(cairo.surface.Surface surface)Creates 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)Sets the given pixbuf as the source pattern for cr.fn
void cairoSetSourceRgba(cairo.context.Context cr, gdk.rgba.RGBA rgba)Sets 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)Read 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)Serialize 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)Returns the relative angle from event1 to event2.fn
bool eventsGetCenter(gdk.event.Event event1, gdk.event.Event event2, out double x, out double y)Returns the point halfway between the events' positions.fn
bool eventsGetDistance(gdk.event.Event event1, gdk.event.Event event2, out double distance)Returns the distance between the event locations.fn
void keyvalConvertCase(uint symbol, out uint lower, out uint upper)Obtains the upper- and lower-case versions of the keyval symbol.fn
uint keyvalToUnicode(uint keyval)Convert 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)Transfers image data from a [cairo.surface.Surface] and converts it to a [gdkpixbuf.pixbuf.Pixbuf].fn
gdkpixbuf.pixbuf.Pixbuf pixbufGetFromTexture(gdk.texture.Texture texture)Creates a new pixbuf from texture.