Learn R Programming

RGtk2 (version 2.12.17)

gdk-Graphics-Contexts: Graphics Contexts

Description

Objects to encapsulate drawing properties

Arguments

Methods and Functions

gdkGCNew(drawable) gdkGCNewWithValues(object, values) gdkGCGetScreen(object) gdkGCSetValues(object, values) gdkGCGetValues(object) gdkGCSetForeground(object, color) gdkGCSetBackground(object, color) gdkGCSetRgbFgColor(object, color) gdkGCSetRgbBgColor(object, color) gdkGCSetFont(object, font) gdkGCSetFunction(object, fun) gdkGCSetFill(object, fill) gdkGCSetTile(object, tile) gdkGCSetStipple(object, stipple) gdkGCSetTsOrigin(object, x, y) gdkGCSetClipOrigin(object, x, y) gdkGCSetClipMask(object, mask) gdkGCSetClipRectangle(object, rectangle) gdkGCSetClipRegion(object, region) gdkGCSetSubwindow(object, mode) gdkGCSetExposures(object, exposures) gdkGCSetLineAttributes(object, line.width, line.style, cap.style, join.style) gdkGCSetDashes(object, dash.list) gdkGCCopy(object, src.gc) gdkGCSetColormap(object, colormap) gdkGCGetColormap(object) gdkGCOffset(object, x.offset, y.offset) gdkGC(drawable)

Hierarchy

GObject +----GdkGC

Detailed Description

All drawing operations in GDK take a graphics context (GC) argument. A graphics context encapsulates information about the way things are drawn, such as the foreground color or line width. By using graphics contexts, the number of arguments to each drawing call is greatly reduced, and communication overhead is minimized, since identical arguments do not need to be passed repeatedly. Most values of a graphics context can be set at creation time by using gdkGCNewWithValues, or can be set one-by-one using functions such as gdkGCSetForeground. A few of the values in the GC, such as the dash pattern, can only be set by the latter method.

Convenient Construction

gdkGC is the equivalent of gdkGCNew.

References

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Graphics-Contexts.html