PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/luagen/idl/ftk.idl

http://ftk.googlecode.com/
IDL | 43 lines | 39 code | 4 blank | 0 comment | 0 complexity | 4eeec645fa4411856979118d63fbd6d7 MD5 | raw file
 1#include "ftk_typedef.idl"
 2
 3interface Ftk
 4{
 5	FtkDisplayPtr       ftk_default_display();
 6	FtkMainLoopPtr      ftk_default_main_loop();
 7	FtkLogLevel       ftk_default_log_level();
 8	FtkWndManagerPtr    ftk_default_wnd_manager();
 9	FtkWidgetPtr        ftk_default_status_panel();
10	FtkBitmapFactoryPtr ftk_default_bitmap_factory();
11	FtkSourcesManagerPtr ftk_default_sources_manager();
12	FtkCanvasPtr         ftk_shared_canvas();
13	FtkThemePtr          ftk_default_theme();
14	FtkSourcePtr         ftk_primary_source();
15	FtkAllocatorPtr      ftk_default_allocator();
16	FtkConfigPtr         ftk_default_config();
17	FtkInputMethodManagerPtr ftk_default_input_method_manager();
18	FtkImPreeditorPtr        ftk_default_input_method_preeditor();
19
20	void ftk_set_display(in FtkDisplayPtr display);
21	void ftk_set_main_loop(in FtkMainLoopPtr main_loop);
22	void ftk_set_log_level(in FtkLogLevel level);
23	void ftk_set_status_panel(in FtkWidgetPtr status_panel);
24	void ftk_set_wnd_manager(in FtkWndManagerPtr wnd_manager);
25	void ftk_set_bitmap_factory(in FtkBitmapFactoryPtr bitmap_factory);
26	void ftk_set_sources_manager(in FtkSourcesManagerPtr sources_manager);
27	void ftk_set_shared_canvas(in FtkCanvasPtr canvas);
28	void ftk_set_theme(in FtkThemePtr theme);
29	void ftk_set_config(in FtkConfigPtr config);
30	void ftk_set_primary_source(in FtkSourcePtr source);
31	void ftk_set_allocator(in FtkAllocatorPtr allocator);
32	void ftk_set_input_method_manager(in FtkInputMethodManagerPtr input_manager_manager);
33	void ftk_set_input_method_preeditor(in FtkImPreeditorPtr input_method_preeditor);
34
35	Ret ftk_init(in int argc, in StrArray argv);
36	Ret  ftk_run();
37	void ftk_quit();
38	
39	int ftk_tips(in CStrPtr text);
40	int ftk_warning(in CStrPtr title, in CStrPtr text, in CStrArray buttons);
41	int ftk_question(in CStrPtr title, in CStrPtr text, in CStrArray buttons);
42	int ftk_infomation(in CStrPtr title, in CStrPtr text, in CStrArray buttons);
43};