gdk.Cairo

Undocumented in source.

Public Imports

gtkc.gdktypes
public import gtkc.gdktypes;
Undocumented in source.

Members

Functions

createContext
Context createContext(Window window)

Creates a Cairo context for drawing to @window.

getClipRectangle
bool getClipRectangle(Context cr, GdkRectangle rect)

This is a convenience function around cairo_clip_extents(). It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.

rectangle
void rectangle(Context cr, GdkRectangle* rectangle)

Adds the given rectangle to the current path of @cr.

region
void region(Context cr, Region region)

Adds the given region to the current path of @cr.

regionCreateFromSurface
Region regionCreateFromSurface(Surface surface)

Creates region that describes covers the area where the given @surface is more than 50% opaque.

setSourceColor
void setSourceColor(Context cr, Color color)

Sets the specified #GdkColor as the source color of @cr.

setSourcePixbuf
void setSourcePixbuf(Context cr, Pixbuf pixbuf, double pixbufX, double pixbufY)

Sets the given pixbuf as the source pattern for @cr.

setSourceRgba
void setSourceRgba(Context cr, RGBA rgba)

Sets the specified #GdkRGBA as the source color of @cr.

setSourceWindow
void setSourceWindow(Context cr, Window window, double x, double y)

Sets the given window as the source pattern for @cr.

surfaceCreateFromPixbuf
Surface surfaceCreateFromPixbuf(Pixbuf pixbuf, int scale, Window forWindow)

Creates an image surface with the same contents as the pixbuf.

Meta