Polygon.
More...
#include <polygon.h>
List of all members.
Detailed Description
Polygon.
Polygon item.
Definition at line 41 of file polygon.h.
Constructor & Destructor Documentation
- Parameters:
-
canvas | a Canvas. |
points | the vertices positions. |
Creates a new Polygon and sets it as a child of the root Group of canvas.
- Parameters:
-
Creates a new Polygon inside parent and sets client as its associated ItemClient.
Member Function Documentation
- Parameters:
-
x | horizontal position of the new vertex. |
y | vertical position of the new vertex. |
Apends a new vrtex to the vertices list.
- Parameters:
-
Builds the cairo path corresponding to the Polygon bounds. Don't draw anything.
Reimplemented from gccv::Item.
- Parameters:
-
x | horizontal position |
y | vertical position |
item | where to store the Item. |
Implementation of Item::Distance() for the Polygon class. Sets item to this.
Reimplemented from gccv::Item.
- Parameters:
-
cr | a cairo_t. |
is_vector | whether the cairo_t is a vectorial context. |
Draws the Polygon to cr.
Reimplemented from gccv::Item.
- Parameters:
-
x | the horizontal deplacement |
y | the vertical deplacement |
Moves the Polygon.
Reimplemented from gccv::Item.
- Parameters:
-
points | the new vertices positions. |
Sets the vertices for the Polygon instance.
Member Data Documentation
The documentation for this class was generated from the following file: