| gdk-Graphics-Contexts {RGtk2} | R Documentation |
Objects to encapsulate drawing properties
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)
GObject +----GdkGC
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.
GdkGCGdkGC structure represents a graphics context.
It is an opaque structure with no user-visible
elements.
GdkGCValuesGdkGCValues structure holds a set of values used
to create or modify a graphics context.
GdkGCValues is a transparent-type.
foregroundGdkColor] the foreground color. Note that gdkGCGetValues
only sets the pixel value.backgroundGdkColor] the background color. Note that gdkGCGetValues
only sets the pixel value.fontGdkFont] the default font.functionGdkFunction] the bitwise operation used when drawing.fillGdkFill] the fill style.tileGdkPixmap] the tile pixmap.stippleGdkPixmap] the stipple bitmap.clip_maskGdkPixmap] the clip mask bitmap.subwindow_modeGdkSubwindowMode] the subwindow mode.ts_x_origints_y_originclip_x_originclip_y_origingraphics_exposuresline_widthline_styleGdkLineStyle] the way dashed lines are drawn.cap_styleGdkCapStyle] the way the ends of lines are drawn.join_styleGdkJoinStyle] the way joins between lines are drawn.
gdkGC is the equivalent of gdkGCNew.
GdkGCValuesMaskGdkGCValues structure are set.
foregroundforeground is set.backgroundbackground is set.fontfont is set.functionfunction is set.fillfill is set.tiletile is set.stipplestipple is set.clip-maskclip.mask is set.subwindowsubwindow.mode is set.ts-x-origints.x.origin is set.ts-y-origints.y.origin is set.clip-x-originclip.x.origin is set.clip-y-originclip.y.origin is set.exposuresgraphics.exposures is set.line-widthline.width is set.line-styleline.style is set.cap-stylecap.style is set.join-stylejoin.style is set.
GdkFunctionGDK_COPY, GDK_XOR and GDK_INVERT are generally
useful. For bitmaps, GDK_AND and GDK_OR are also useful.
copydst = srcinvertdst = NOT dstxordst = src XOR dstcleardst = 0anddst = dst AND srcand-reversedst = src AND (NOT dst)and-invertdst = (NOT src) AND dstnoopdst = dstordst = src OR dstequivdst = (NOT src) XOR dstor-reversedst = src OR (NOT dst)copy-invertdst = NOT srcor-invertdst = (NOT src) OR dstnanddst = (NOT src) OR (NOT dst)nordst = (NOT src) AND (NOT dst)setdst = 1
GdkFillsolidtiledstippledopaque-stippled
GdkSubwindowModeclip-by-childreninclude-inferiors
GdkLineStylesolidon-off-dashdouble-dashGDK_SOLID, or in the background
color masked by the stipple if the fill style is GDK_STIPPLED.
GdkCapStylenot-lastGDK_CAP_BUTT for lines of non-zero width.
for zero width lines, the final point on the line will not be drawn.buttroundprojecting
GdkJoinStylemiterroundbevel
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Graphics-Contexts.html