Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Gtk+/Gnome Application Development
Prev Home Next

Polygon Item

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)
Gtk+/Gnome Application Development
Prev Home Next

 
 
  Published under free license. Design by Interspire