#include <Foo.hpp>
Inheritance diagram for Foo

Public Methods | |
| Foo ( void ) | |
| Default Constructor. | |
| Foo ( FooCref ) | |
| Copy constructor. | |
| virtual | ~Foo ( void ) |
| Destructor. | |
| FooRef | operator= ( FooCref ) |
| Assignment operator. | |
| bool | operator== ( FooCref ) |
| Equality operator. | |
| virtual corelinux::IntCref | getVerticalPosition ( void ) const = 0 |
| Return the Y coordinate of the point. | |
| virtual corelinux::IntCref | getHorizontalPosition ( void ) const = 0 |
| Return the X coordinate of the point. | |
| virtual void | setVerticalPosition ( corelinux::Int ) = 0 throw (corelinux::Exception ) |
| Sets the Y coordinate. | |
| virtual void | setHorizontalPosition ( corelinux::Int ) = 0 throw (corelinux::Exception ) |
| Sets the X coordinate. | |
Static Protected Methods | |
| corelinux::IntCref | getMinimumVerticalPosition ( void ) |
| Return minimum Y. | |
| corelinux::IntCref | getMaximumVerticalPosition ( void ) |
| Return maximum Y. | |
| corelinux::IntCref | getMinimumHorizontalPosition ( void ) |
| Return minimum X. | |
| corelinux::IntCref | getMaximumHorizontalPosition ( void ) |
| Return maximum X. | |
Static Protected Attributes | |
| corelinux::Int | theMinimumVertical |
| Fixed minimum Y. | |
| corelinux::Int | theMaximumVertical |
| Fixed maximum Y. | |
| corelinux::Int | theMinimumHorizontal |
| Fixed minimum X. | |
| corelinux::Int | theMaximumHorizontal |
| Fixed maximum X. | |
Foo is an abstract class that specifies a screen coordinate system that is based on that 0,0 (X,Y) is the top left hand corner of the screen. We mock up the max dimensions to assume Xmax is 5 and Ymax is 5 inclusive. Attempting to fix to a point outside of the dimensions results in an exception.
The minimum and maximum positions are fixed in static members because the original developer once declared "Who needs more than 5 pixels?"