gdk-Drawing-Primitives {RGtk2} | R Documentation |
Functions for drawing points, lines, arcs, and text
gdkDrawableSetData(object, key, data)
gdkDrawableGetData(object, key)
gdkDrawableGetDisplay(object)
gdkDrawableGetScreen(object)
gdkDrawableGetVisual(object)
gdkDrawableSetColormap(object, colormap)
gdkDrawableGetColormap(object)
gdkDrawableGetDepth(object)
gdkDrawableGetSize(object)
gdkDrawableGetClipRegion(object)
gdkDrawableGetVisibleRegion(object)
gdkDrawPoint(object, gc, x, y)
gdkDrawPoints(object, gc, points)
gdkDrawLine(object, gc, x1, y1, x2, y2)
gdkDrawLines(object, gc, points)
gdkDrawPixbuf(object, gc = NULL, pixbuf, src.x, src.y, dest.x, dest.y, width = -1, height = -1, dither = "GDK_RGB_DITHER_NORMAL", x.dither = 0, y.dither = 0)
gdkDrawSegments(object, gc, segs)
gdkDrawRectangle(object, gc, filled, x, y, width, height)
gdkDrawArc(object, gc, filled, x, y, width, height, angle1, angle2)
gdkDrawPolygon(object, gc, filled, points)
gdkDrawTrapezoids(drawable, gc, trapezoids)
gdkDrawGlyphs(object, gc, font, x, y, glyphs)
gdkDrawGlyphsTransformed(drawable, gc, matrix, font, x, y, glyphs)
gdkDrawLayoutLine(object, gc, x, y, line)
gdkDrawLayoutLineWithColors(drawable, gc, x, y, line, foreground, background)
gdkDrawLayout(object, gc, x, y, layout)
gdkDrawLayoutWithColors(drawable, gc, x, y, layout, foreground, background)
gdkDrawString(object, font, gc, x, y, string)
gdkDrawText(object, font, gc, x, y, text, text.length)
gdkDrawTextWc(object, font, gc, x, text)
gdkDrawDrawable(object, gc, src, xsrc, ysrc, xdest, ydest, width, height)
gdkDrawImage(object, gc, image, xsrc, ysrc, xdest, ydest, width, height)
gdkDrawableGetImage(object, x, y, width, height)
gdkDrawableCopyToImage(object, image = NULL, src.x, src.y, dest.x, dest.y, width, height)
GObject +----GdkDrawable +----GdkWindow +----GdkPixmap
These functions provide support for drawing points, lines, arcs and text
onto what are called 'drawables'. Drawables, as the name suggests, are things
which support drawing onto them, and are either GdkWindow
or GdkPixmap
objects.
Many of the drawing operations take a GdkGC
argument, which represents a
graphics context. This GdkGC
contains a number of drawing attributes such
as foreground color, background color and line width, and is used to reduce
the number of arguments needed for each drawing operation. See the
Graphics Contexts section for
more information.
Some of the drawing operations take Pango data structures like PangoContext
,
PangoLayout
or PangoLayoutLine
as arguments. If you're using GTK+, the ususal
way to obtain these structures is via gtkWidgetCreatePangoContext
or
gtkWidgetCreatePangoLayout
.
GdkDrawable
GdkPixmap
, a GdkBitmap
,
or a GdkWindow
.
GdkSegment
gdkDrawSegments
function.
GdkSegment
is a transparent-type.
x1
y1
x2
y2
GdkTrapezoid
gdkDrawTrapezoids
.
The trapezoids used here have parallel, horizontal top and
bottom edges.
GdkTrapezoid
is a transparent-type.
y1
x11
x21
y2
x12
x22
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Drawing-Primitives.html