Move LCD display object to portapack namespace.

Globals are bad... Except in embedded development!
This commit is contained in:
Jared Boone
2015-08-01 14:31:51 -07:00
parent fecbb7205e
commit 65d5f68bfb
9 changed files with 26 additions and 29 deletions

View File

@@ -25,8 +25,6 @@
#include "ui.hpp"
#include "ui_text.hpp"
#include "lcd_ili9341.hpp"
#include <string>
namespace ui {
@@ -41,11 +39,7 @@ struct Style {
class Painter {
public:
Painter(
lcd::ILI9341& display
) : display_(display)
{
}
Painter() { };
Painter(const Painter&) = delete;
Painter(Painter&&) = delete;
@@ -58,8 +52,6 @@ public:
void fill_rectangle(const Rect r, const Color c);
private:
lcd::ILI9341& display_;
void draw_hline(Point p, size_t width, const Color c);
void draw_vline(Point p, size_t height, const Color c);
};