summaryrefslogtreecommitdiff
path: root/Source/Kernel/Devices/Display/Display.proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Devices/Display/Display.proto.h')
-rw-r--r--Source/Kernel/Devices/Display/Display.proto.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/Kernel/Devices/Display/Display.proto.h b/Source/Kernel/Devices/Display/Display.proto.h
index 2cec616..e1775bd 100644
--- a/Source/Kernel/Devices/Display/Display.proto.h
+++ b/Source/Kernel/Devices/Display/Display.proto.h
@@ -5,14 +5,21 @@
#include <Devices/Device.proto.h>
#include <WChar.class.h>
+namespace Disp { struct mode_t; }
+
class Display : public Device {
public:
virtual ~Display() {}
- virtual u16int textCols() = 0;
- virtual u16int textRows() = 0;
- virtual void putChar(u16int line, u16int col, WChar c, u8int color) = 0; //Color : <bg 4byte><fg 4byte>
- virtual void moveCursor(u16int line, u16int col) = 0;
+
+ virtual void getModes(Vector<Disp::mode_t> &to) = 0;
+ virtual bool setMode(Disp::mode_t& mode) = 0;
virtual void clear() = 0;
+
+ //Text functions
+ virtual void putChar(u16int line, u16int col, WChar c, u8int color) = 0; //Color : <bg 4bits><fg 4bits>
+ virtual void moveCursor(u16int line, u16int col) = 0;
+
+ //Graphic functions
};
#endif