blob: 2a103581c990afaf7e8816ad5f5fde1df0b3c472 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef DEF_DISP_NS_H
#define DEF_DISP_NS_H
#include <Devices/Display/VGATextOutput.class.h>
#include <WChar.class.h>
#include <Vector.class.h>
namespace Disp {
struct mode_t {
int textCols, textRows;
int graphWidth, graphHeight, graphDepth;
int identifier; //Used by video devices
Display *device;
};
extern Vector<mode_t> modes;
extern mode_t mode;
u16int textCols();
u16int textRows();
void putChar(u16int line, u16int col, WChar c, u8int color);
void moveCursor(u16int line, u16int col);
bool textScroll(u16int line, u16int col, u16int height, u16int width, u8int color);
void clear();
void getModes();
bool setMode(mode_t& mode);
void setText(VGATextOutput* o); //To use only once : when display is initializing
}
#endif
|