Develop and Download Open Source Software

Browse Subversion Repository

Contents of /jpinput/TextConvertInterface.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations) (download) (as text)
Fri Jan 4 02:49:36 2008 UTC (16 years, 4 months ago) by satofumi
File MIME type: text/x-chdr
File size: 1456 byte(s)
using namespace beego

1 #ifndef TEXT_CONVERT_INTERFACE_H
2 #define TEXT_CONVERT_INTERFACE_H
3
4 /*!
5 \file
6 \brief テキスト変換のインターフェース
7
8 \author Satofumi KAMIMURA
9
10 $Id$
11 */
12
13 #include <SDL.h>
14 #include <vector>
15
16
17 /*!
18 \brief 入力変換のインターフェース
19 */
20 class TextConvertInterface {
21 public:
22 virtual ~TextConvertInterface(void) {}
23
24 /*!
25 \brief 変換バッファのクリア
26 */
27 virtual void clear(void) = 0;
28
29 /*!
30 \brief 変換バッファへの登録
31
32 \param text [i] 変換する文字列
33 */
34 virtual void setConvertBuffer(const std::vector<Uint16>& text) = 0;
35
36 /*!
37 \brief 変換バッファの取得
38
39 \param buffer [o] バッファ内のデータ
40 */
41 virtual void getConvertBuffer(std::vector<Uint16>& buffer) = 0;
42
43 /*!
44 \brief 文字の追加
45
46 \param ch [i] 入力文字
47 */
48 virtual bool addChar(char ch) = 0;
49
50 /*!
51 \brief カーソル左
52 */
53 virtual bool moveLeft(void) = 0;
54
55 /*!
56 \brief カーソル右
57 */
58 virtual bool moveRight(void) = 0;
59
60 /*!
61 \brief カーソル上
62 */
63 virtual bool moveUp(void) = 0;
64
65 /*!
66 \brief カーソル下
67 */
68 virtual bool moveDown(void) = 0;
69
70 /*!
71 \brief エスケープ
72 */
73 virtual bool escapePressed(void) = 0;
74
75 /*!
76 \brief BackSpace キー
77 */
78 virtual bool deleteBack(void) = 0;
79
80 /*!
81 \brief Delete キー
82 */
83 virtual bool deleteCurrent(void) = 0;
84
85 /*!
86 \brief 変換キー
87 */
88 virtual bool convertInput(void) = 0;
89
90 // 変換候補の表示をするための情報取得
91 // !!!
92 };
93
94 #endif /* !TEXT_CONVERT_INTERFACE_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26