micromenu/inc/gfx/screen.h

35 lines
527 B
C
Raw Normal View History

2018-11-01 18:39:19 +00:00
//
// Created by jedi on 11/1/18.
//
#ifndef MGL_DMXMENU_SCREEN_H
#define MGL_DMXMENU_SCREEN_H
2018-11-05 20:09:01 +00:00
#include "hal/hal.h"
#include "gfx/canvas.h"
2018-11-01 18:39:19 +00:00
class screen {
private:
const int width_;
const int height_;
public:
2018-11-06 15:06:05 +00:00
screen(int w, int h);
2018-11-01 18:39:19 +00:00
2018-11-06 15:06:05 +00:00
void draw(int x, int y);
2018-11-01 18:39:19 +00:00
2018-11-06 15:06:05 +00:00
void draw(int x, int y, canvas &c);
2018-11-01 18:39:19 +00:00
2018-11-06 15:06:05 +00:00
void print(int x, int y, const char *str, font & = basic_5x4);
2018-11-05 09:53:59 +00:00
2018-11-06 15:06:05 +00:00
void print(int x, int y, char *str, font & = basic_5x4);
2018-11-05 20:09:01 +00:00
2018-11-06 15:06:05 +00:00
int getWidth();
2018-11-05 20:09:01 +00:00
2018-11-06 15:06:05 +00:00
int getHeight();
2018-11-01 18:39:19 +00:00
};
#endif //MGL_DMXMENU_SCREEN_H