Drawable.drawPolygon

Warning gdk_draw_polygon has been deprecated since version 2.22 and should not be used in newly-written code. Use cairo_line_to() or cairo_append_path() and cairo_fill() or cairo_stroke() instead. Draws an outlined or filled polygon.

class Drawable
void
drawPolygon

Parameters

gc GC

a GdkGC.

filled int

TRUE if the polygon should be filled. The polygon is closed automatically, connecting the last point to the first point if necessary.

points GdkPoint[]

an array of GdkPoint structures specifying the points making up the polygon.

Meta