- fb_window: add possibility to paint frame boxes

This commit is contained in:
svenhoefer
2016-08-12 15:31:51 +02:00
parent 22fcc8fe4d
commit 220260c718
2 changed files with 6 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ void CFBWindow::paintBoxRel(const int _x, const int _y, const int _dx, const int
frameBuffer->paintBoxRel(x + _x, y + _y, _dx, _dy, _col, radius, type); frameBuffer->paintBoxRel(x + _x, y + _y, _dx, _dy, _col, radius, type);
} }
void CFBWindow::paintBoxFrame(int _x, int _y, int _dx, int _dy, int _px, const color_t _col, int radius, int type)
{
frameBuffer->paintBoxFrame(x + _x, y + _y, _dx, _dy, _px, _col, radius, type);
}
void CFBWindow::paintVLineRel(int _x, int _y, int _dy, const color_t _col) void CFBWindow::paintVLineRel(int _x, int _y, int _dy, const color_t _col)
{ {
frameBuffer->paintVLineRel(x + _x, y + _y, _dy, _col); frameBuffer->paintVLineRel(x + _x, y + _y, _dy, _col);

View File

@@ -43,6 +43,7 @@ class CFBWindow
~CFBWindow(); ~CFBWindow();
void paintBoxRel(const int _x, const int _y, const int _dx, const int _dy, const color_t _col, int radius = 0, int type = 0xF); void paintBoxRel(const int _x, const int _y, const int _dx, const int _dy, const color_t _col, int radius = 0, int type = 0xF);
void paintBoxFrame(int _x, int _y, int _dx, int _dy, int _px, const color_t _col, int radius = 0, int type = 0xf);
void paintVLineRel(int _x, int _y, int _dy, const color_t _col); void paintVLineRel(int _x, int _y, int _dy, const color_t _col);
void paintHLineRel(int _x, int _dx, int _y, const color_t _col); void paintHLineRel(int _x, int _dx, int _y, const color_t _col);
bool paintIcon(const char * const _filename, const int _x, const int _y, const int _h = 0, const color_t _offset = 1); bool paintIcon(const char * const _filename, const int _x, const int _y, const int _h = 0, const color_t _offset = 1);