#include <circle.h>

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 () |
Circle item.
Definition at line 39 of file circle.h.
| gccv::Circle::Circle | ( | Canvas * | canvas, | |
| double | x, | |||
| double | y, | |||
| double | radius | |||
| ) |
| gccv::Circle::Circle | ( | Group * | parent, | |
| double | x, | |||
| double | y, | |||
| double | radius, | |||
| ItemClient * | client = NULL | |||
| ) |
| 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. |
| virtual gccv::Circle::~Circle | ( | ) | [virtual] |
The destructor.
| double gccv::Circle::Distance | ( | double | x, | |
| double | y, | |||
| Item ** | item | |||
| ) | const [virtual] |
| x | horizontal position | |
| y | vertical position | |
| item | where to store the Item. |
Reimplemented from gccv::Item.
| void gccv::Circle::Draw | ( | cairo_t * | cr, | |
| bool | is_vector | |||
| ) | const [virtual] |
| cr | a cairo_t. | |
| is_vector | whether the cairo_t is a vectorial context. |
Reimplemented from gccv::Item.
| void gccv::Circle::GetPosition | ( | double & | x, | |
| double & | y | |||
| ) |
| x | where to store the circle center horizontal position. | |
| y | where to store the circle center vertical position. |
| gccv::Circle::GetRadius | ( | void | ) | const [inline] |
| void gccv::Circle::Move | ( | double | x, | |
| double | y | |||
| ) | [virtual] |
| x | the horizontal deplacement | |
| y | the vertical deplacement |
Reimplemented from gccv::Item.
| void gccv::Circle::SetPosition | ( | double | x, | |
| double | y | |||
| ) |
| x | the new circle center horizontal position. | |
| y | the new circle center vertical position. |
| gccv::Circle::SetRadius | ( | double | radius | ) | [inline] |
| void gccv::Circle::UpdateBounds | ( | ) | [protected, virtual] |
Evaluates the Circle bounds.
Reimplemented from gccv::Item.
1.5.9