|
GnomeCanvasPolygon
represents a filled polygon; it can be filled or only an
outline. Unlike
GnomeCanvasRE, an unfilled GnomeCanvasPolygon is not "hollow";
the transparent portion in the center is part of the
canvas item.
GnomeCanvasLine is used for "hollow" polygons.
Table 3.
GnomeCanvasPolygon Arguments
Name
|
Type
|
Read/Write
|
Description
|
points
|
GnomeCanvasPoints*
|
Both
|
Points in the polygon
|
fill_color
|
gchar*
|
Write-only
|
Fill color; string for
gdk_color_parse(), or NULL for transparent
|
fill_color_gdk
|
GdkColor*
|
Both
|
Fill color; specified as already-allocated GdkColor
|
fill_color_rgba
|
guint32
|
Both
|
Fill color; specified as 32-bit value packing red,
green, blue, and alpha into bytes 1, 2, 3, and 4;
alpha of 255 is opaque, 0 is invisible
|
outline_color
|
gchar*
|
Write-only
|
Outline color; string for
gdk_color_parse, or
NULL for transparent
|
outline_color_gdk
|
GdkColor*
|
Both
|
Outline color; specified as already-allocated GdkColor
|
outline_color_rgba
|
guint32
|
Both
|
Outline color; specified as 32-bit value packing
red, green, blue, and alpha into bytes 1, 2, 3, and
4; alpha of 255 is opaque, 0 is invisible
|
fill_stipple
|
GdkBitmap*
|
Both
|
Stipple to use when drawing fill; GDK mode only
|
outline_stipple
|
GdkBitmap*
|
Both
|
Stipple to use when drawing outline; GDK mode only
|
width_pixels
|
guint
|
Write-only
|
Width of the outline, in pixels (independent of
zoom)
|
width_units
|
double
|
Write-only
|
Width of the outline, in canvas units; pixel width
changes with zoom factor (pixels per unit)
|
|
|