TextConvertInterface.h
Go to the documentation of this file.00001 #ifndef TEXT_CONVERT_INTERFACE_H
00002 #define TEXT_CONVERT_INTERFACE_H
00003
00013 #include <SDL.h>
00014 #include <vector>
00015
00016
00020 class TextConvertInterface {
00021 public:
00022 virtual ~TextConvertInterface(void) {}
00023
00027 virtual void clear(void) = 0;
00028
00034 virtual void setConvertBuffer(const std::vector<Uint16>& text) = 0;
00035
00041 virtual void getConvertBuffer(std::vector<Uint16>& buffer) = 0;
00042
00048 virtual bool addChar(char ch) = 0;
00049
00053 virtual bool moveLeft(void) = 0;
00054
00058 virtual bool moveRight(void) = 0;
00059
00063 virtual bool moveUp(void) = 0;
00064
00068 virtual bool moveDown(void) = 0;
00069
00073 virtual bool escapePressed(void) = 0;
00074
00078 virtual bool deleteBack(void) = 0;
00079
00083 virtual bool deleteCurrent(void) = 0;
00084
00088 virtual bool convertInput(void) = 0;
00089
00090
00091
00092 };
00093
00094 #endif
00095