File: uchewing.h

package info (click to toggle)
ucimf-chewing 0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,424 kB
  • sloc: sh: 10,446; cpp: 220; makefile: 15
file content (29 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (3)
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
#include <chewing.h>
#include <global.h>
#include <imf/imf.h>
#include <string>

class UcimfChewingHandler : public Imf
{
	// 繼承 Imf 的部分
	public:
		std::string process_input( const std::string& input );
		void refresh();
		void switch_im(){};
		void switch_im_reverse(){};
		void switch_lang(){};
		void switch_im_per_lang(){};

	public:
		~UcimfChewingHandler();
		static Imf* getInstance();

	protected:
		UcimfChewingHandler();
		static Imf* _instance;
		ChewingContext *ctx; 
		static std::string commit_buf;
};

extern "C" Imf* createImf();
extern "C" void destroyImf( Imf* imf );