#include <Ellipse.h>
Public Member Functions | |
void | draw () |
void | highlight () |
Public Member Functions inherited from Shape | |
Shape () | |
color | get_color () |
color | get_highlight_color () |
point2d | get_position () |
int | get_width () |
int | get_height () |
float | get_x () |
float | get_y () |
void | set_color (color) |
void | set_highlight_color (color) |
void | set_position (point2d) |
void | set_width (int) |
void | set_height (int) |
void | set_x (float) |
void | set_y (float) |
bool | is_at (point2d) |
Additional Inherited Members | |
Protected Member Functions inherited from Shape | |
void | calculate_highlight_color () |
Protected Attributes inherited from Shape | |
color | _color |
color | _highlight_color |
point2d | _position |
int | _width |
int | _height |
Ellipse class holds all logic to creating and drawing ellipses, and inherits basic attributes and methods from the Shape class
|
virtual |
Draws an ellipse with the inherited attributes
Implements Shape.
|
virtual |
Draws a larger ellipse of different colour to indicate that the ellipse is highlighted
Implements Shape.