Simple graphical data types
gdkRegionPointIn(object, x, y)
gdkRegionOffset(object, dx, dy)
gdkRegionShrink(object, dx, dy)
gdkRegionSpansIntersectForeach(object, spans, sorted, fun, data)
GDK provides the
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
GdkRegion is an opaque data type holding a set of arbitrary pixels, and is
usually used for clipping graphical operations (see
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
Defines the x and y coordinates of a point.
GdkPoint is a transparent-type.
the x coordinate of the point.
the y coordinate of the point.
Defines the position and size of a rectangle.
GdkRectangle is a transparent-type.
[integer] the x coordinate of the left edge of the rectangle.
[integer] the y coordinate of the top of the rectangle.
[integer] the width of the rectangle.
[integer] the height of the rectangle.
A GdkRegion represents a set of pixels on the screen.
A GdkSpan represents a horizontal line of pixels starting
at the pixel with coordinates
y and ending before
GdkSpan is a transparent-type.
[integer] x coordinate of the first pixel.
[integer] y coordinate of the first pixel.
[integer] number of pixels in the span.
The method for determining which pixels are included in a region, when
GdkRegion from a polygon.
The fill rule is only relevant for polygons which overlap themselves.
areas which are overlapped an odd number of times are included in the region, while areas overlapped an even number of times are not.
overlapping areas are always included.
Specifies the possible values returned by
if the rectangle is inside the
if the rectangle is outside the
if the rectangle is partly inside the
This defines the type of the function passed to
the user data passed to
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.