dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dw::core::Circle Class Reference

dw::core::Shape implemtation for simple circles. More...

#include <types.hh>

Inheritance diagram for dw::core::Circle:
[legend]
Collaboration diagram for dw::core::Circle:
[legend]

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. More...
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal. More...
 
virtual int hashValue ()
 Return a hash value for the object. More...
 
virtual Objectclone ()
 Return an exact copy of the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

Public Attributes

int x
 
int y
 
int radius
 

Detailed Description

dw::core::Shape implemtation for simple circles.

Definition at line 90 of file types.hh.

Constructor & Destructor Documentation

◆ Circle()

dw::core::Circle::Circle ( int  x,
int  y,
int  radius 
)

Definition at line 96 of file types.cc.

Member Function Documentation

◆ draw()

void dw::core::Circle::draw ( core::View view,
core::style::Style style,
int  x,
int  y 
)
virtual

Implements dw::core::Shape.

Definition at line 106 of file types.cc.

References dw::core::style::StyleAttrs::color, and dw::core::View::drawArc().

◆ isPointWithin()

bool dw::core::Circle::isPointWithin ( int  x,
int  y 
)
virtual

Implements dw::core::Shape.

Definition at line 115 of file types.cc.

Member Data Documentation

◆ radius

int dw::core::Circle::radius

Definition at line 93 of file types.hh.

◆ x

int dw::core::Circle::x

Definition at line 93 of file types.hh.

◆ y

int dw::core::Circle::y

Definition at line 93 of file types.hh.


The documentation for this class was generated from the following files: