Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Core/GraphicsContext.cpp@12:63db16fea709, 2016-05-08 (annotated)
- Committer:
- duncanFrance
- Date:
- Sun May 08 14:42:08 2016 +0000
- Revision:
- 12:63db16fea709
Update to handle dirty pixels and geometric change/damage
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
duncanFrance | 12:63db16fea709 | 1 | #include "GraphicsContext.h" |
duncanFrance | 12:63db16fea709 | 2 | |
duncanFrance | 12:63db16fea709 | 3 | GraphicsContext::GraphicsContext(GraphicsDisplay* display, EventDispatcher* dispatcher, FontRenderer* fontRenderer, Font* defaultFont) : |
duncanFrance | 12:63db16fea709 | 4 | _display(display), _dispatcher(dispatcher), _renderer(fontRenderer), _font(defaultFont) |
duncanFrance | 12:63db16fea709 | 5 | { |
duncanFrance | 12:63db16fea709 | 6 | } |
duncanFrance | 12:63db16fea709 | 7 | |
duncanFrance | 12:63db16fea709 | 8 | |
duncanFrance | 12:63db16fea709 | 9 | |
duncanFrance | 12:63db16fea709 | 10 | GraphicsDisplay* GraphicsContext::display() |
duncanFrance | 12:63db16fea709 | 11 | { |
duncanFrance | 12:63db16fea709 | 12 | return _display; |
duncanFrance | 12:63db16fea709 | 13 | } |
duncanFrance | 12:63db16fea709 | 14 | |
duncanFrance | 12:63db16fea709 | 15 | EventDispatcher* GraphicsContext::eventDispatcher() |
duncanFrance | 12:63db16fea709 | 16 | { |
duncanFrance | 12:63db16fea709 | 17 | return _dispatcher; |
duncanFrance | 12:63db16fea709 | 18 | } |
duncanFrance | 12:63db16fea709 | 19 | |
duncanFrance | 12:63db16fea709 | 20 | FontRenderer* GraphicsContext::fontRenderer() |
duncanFrance | 12:63db16fea709 | 21 | { |
duncanFrance | 12:63db16fea709 | 22 | return _renderer; |
duncanFrance | 12:63db16fea709 | 23 | } |
duncanFrance | 12:63db16fea709 | 24 | |
duncanFrance | 12:63db16fea709 | 25 | Font* GraphicsContext::defaultFont() |
duncanFrance | 12:63db16fea709 | 26 | { |
duncanFrance | 12:63db16fea709 | 27 | return _font; |
duncanFrance | 12:63db16fea709 | 28 | } |
duncanFrance | 12:63db16fea709 | 29 |