gdk-Points-Rectangles-and-Regions {RGtk2}R Documentation

Points, Rectangles and Regions

Description

Simple graphical data types

Methods and Functions

gdkRectangleIntersect(src1, src2)
gdkRectangleUnion(src1, src2)
gdkRegionNew()
gdkRegionPolygon(points, fill.rule)
gdkRegionCopy(object)
gdkRegionRectangle(rectangle)
gdkRegionGetClipbox(object)
gdkRegionGetRectangles(object)
gdkRegionEmpty(object)
gdkRegionEqual(object, region2)
gdkRegionRectEqual(object, rectangle)
gdkRegionPointIn(object, x, y)
gdkRegionRectIn(object, rect)
gdkRegionOffset(object, dx, dy)
gdkRegionShrink(object, dx, dy)
gdkRegionUnionWithRect(object, rect)
gdkRegionIntersect(object, source2)
gdkRegionUnion(object, source2)
gdkRegionSubtract(object, source2)
gdkRegionXor(object, source2)
gdkRegionSpansIntersectForeach(object, spans, sorted, fun, data)

Detailed Description

GDK provides the GdkPoint, GdkRectangle, GdkRegion and GdkSpan data types for representing pixels and sets of pixels on the screen. GdkPoint is a simple structure containing an x and y coordinate of a point. GdkRectangle is a structure holding the position and size of a rectangle. The intersection of two rectangles can be computed with gdkRectangleIntersect. To find the union of two rectangles use gdkRectangleUnion. GdkRegion is an opaque data type holding a set of arbitrary pixels, and is usually used for clipping graphical operations (see gdkGCSetClipRegion). GdkSpan is a structure holding a spanline. A spanline is a horizontal line that is one pixel wide. It is mainly used when rasterizing other graphics primitives. It can be intersected to regions by using gdkRegionSpansIntersectForeach.

Structures

Enums and Flags

User Functions

GdkSpanFunc(span, data)

This defines the type of the function passed to gdkRegionSpansIntersectForeach.

span

a GdkSpan.

data

the user data passed to gdkRegionSpansIntersectForeach.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://library.gnome.org/devel//gdk/gdk-Points-Rectangles-and-Regions.html


[Package RGtk2 version 2.20.21 Index]