Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Core/Point.h
- Committer:
- duncanFrance
- Date:
- 2016-05-28
- Revision:
- 18:d849f3ada858
- Parent:
- 13:6714534e7974
File content as of revision 18:d849f3ada858:
#ifndef SIMPLEGUI_POINT_H #define SIMPLEGUI_POINT_H class Point { public: Point(int x, int y) : _x(x), _y(y) {} int x() { return _x; } int y() { return _y; } void x(int x) { _x = x; } void y(int y) { _y = y; } bool equals(Point *p) { return (p->x() == x()) && (p->y() == y()); } private: int _x, _y; }; #endif