Dillo v3.1.1-111-gd4f56d0d
|
dw::core::Shape implemtation for simple circles. More...
#include <types.hh>
Public Member Functions | |
Circle (int x, int y, int radius) | |
void | draw (core::View *view, core::style::Style *style, int x, int y) |
bool | isPointWithin (int x, int y) |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. | |
virtual int | hashValue () |
Return a hash value for the object. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Public Attributes | |
int | x |
int | y |
int | radius |
dw::core::Shape implemtation for simple circles.
dw::core::Circle::Circle | ( | int | x, |
int | y, | ||
int | radius | ||
) |
|
virtual |
Implements dw::core::Shape.
Definition at line 106 of file types.cc.
References dw::core::style::StyleAttrs::color, dw::core::View::drawArc(), dw::core::style::Color::SHADING_NORMAL, x, and y.
|
virtual |
int dw::core::Circle::radius |
Definition at line 93 of file types.hh.
Referenced by Circle(), and isPointWithin().
int dw::core::Circle::x |
Definition at line 93 of file types.hh.
Referenced by Circle(), draw(), and isPointWithin().
int dw::core::Circle::y |
Definition at line 93 of file types.hh.
Referenced by Circle(), draw(), and isPointWithin().