Circles.
More...
#include <circle.h>
List of all members.
Public Member Functions |
| | Circle (Canvas *canvas, double x, double y, double radius) |
| | Circle (Group *parent, double x, double y, double radius, ItemClient *client=NULL) |
| virtual | ~Circle () |
| void | SetPosition (double x, double y) |
| void | GetPosition (double &x, double &y) |
| double | Distance (double x, double y, Item **item) const |
| void | Draw (cairo_t *cr, bool is_vector) const |
| void | Move (double x, double y) |
| void | SetRadius (double val) |
| double | GetRadius (void) const |
Protected Member Functions |
| void | UpdateBounds () |
Detailed Description
Circles.
Circle item.
Definition at line 39 of file circle.h.
Constructor & Destructor Documentation
- Parameters:
-
| canvas | a Canvas. |
| x | the circle center horizontal position. |
| y | the circle center vertical position. |
| radius | the circle radius. |
Creates a new Circle and sets it as a child of the root Group of canvas.
- Parameters:
-
| parent | the Group to which the new Circle will be added. |
| x | the circle center horizontal position. |
| y | the circle center vertical position. |
| radius | the circle radius. |
| client | the ItemClient for the new Circle if any. |
Creates a new Circle inside parent and sets client as its associated ItemClient.
Member Function Documentation
- Parameters:
-
| x | horizontal position |
| y | vertical position |
| item | where to store the Item. |
Implementation of Item::Distance() for the Circle 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 Circle to cr.
Reimplemented from gccv::Item.
- Parameters:
-
| x | where to store the circle center horizontal position. |
| y | where to store the circle center vertical position. |
Retrieves the position of the circle center.
- Returns:
- the circle radius.
Definition at line 123 of file circle.h.
- Parameters:
-
| x | the horizontal deplacement |
| y | the vertical deplacement |
Moves the Circle.
Reimplemented from gccv::Item.
- Parameters:
-
| x | the new circle center horizontal position. |
| y | the new circle center vertical position. |
Sets the position of the circle center.
- Parameters:
-
| radius | the new circle radius. |
Sets the circle radius.
Definition at line 123 of file circle.h.
The documentation for this class was generated from the following file: