PageRenderTime 244ms CodeModel.GetById 120ms app.highlight 6ms RepoModel.GetById 115ms app.codeStats 0ms

/src/ftk_globals.h

http://ftk.googlecode.com/
C++ Header | 91 lines | 51 code | 11 blank | 29 comment | 0 complexity | e55eb12b3d0c9373952bcb4756349dcc MD5 | raw file
 1/*
 2 * File: ftk_globals.h    
 3 * Author:  Li XianJing <xianjimli@hotmail.com>
 4 * Brief: some global variables.  
 5 *
 6 * Copyright (c) 2009 - 2010  Li XianJing <xianjimli@hotmail.com>
 7 *
 8 * Licensed under the Academic Free License version 2.1
 9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 */
24
25/*
26 * History:
27 * ================================================================
28 * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created
29 *
30 */
31
32#ifndef FTK_GLOBALS_H
33#define FTK_GLOBALS_H
34
35#include "ftk_theme.h"
36#include "ftk_config.h"
37#include "ftk_source.h"
38#include "ftk_display.h"
39#include "ftk_allocator.h"
40#include "ftk_text_layout.h"
41#include "ftk_wnd_manager.h"
42#include "ftk_bitmap_factory.h"
43#include "ftk_sources_manager.h"
44#include "ftk_input_method_manager.h"
45#include "ftk_input_method_preeditor.h"
46#include "ftk_animation_trigger.h"
47
48FTK_BEGIN_DECLS
49
50FtkDisplay*       ftk_default_display(void);
51FtkMainLoop*      ftk_default_main_loop(void);
52FtkLogLevel       ftk_default_log_level(void);
53FtkWndManager*    ftk_default_wnd_manager(void);
54FtkWidget*        ftk_default_status_panel(void);
55FtkBitmapFactory* ftk_default_bitmap_factory(void);
56FtkSourcesManager* ftk_default_sources_manager(void);
57FtkCanvas*         ftk_shared_canvas(void);
58FtkTheme*          ftk_default_theme(void);
59FtkSource*         ftk_primary_source(void);
60FtkConfig*         ftk_default_config(void);
61FtkAllocator*      ftk_default_allocator(void);
62FtkTextLayout*     ftk_default_text_layout(void);
63FtkInputMethodManager* ftk_default_input_method_manager(void);
64FtkImPreeditor*        ftk_default_input_method_preeditor(void);
65FtkAnimationTrigger*   ftk_default_animation_trigger(void);
66
67void ftk_set_display(FtkDisplay* display);
68void ftk_set_main_loop(FtkMainLoop* main_loop);
69void ftk_set_log_level(FtkLogLevel level);
70void ftk_set_status_panel(FtkWidget* status_panel);
71void ftk_set_wnd_manager(FtkWndManager* wnd_manager);
72void ftk_set_bitmap_factory(FtkBitmapFactory* bitmap_factory);
73void ftk_set_sources_manager(FtkSourcesManager* sources_manager);
74void ftk_set_shared_canvas(FtkCanvas* canvas);
75void ftk_set_theme(FtkTheme* theme);
76void ftk_set_primary_source(FtkSource* source);
77void ftk_set_config(FtkConfig* config);
78void ftk_set_text_layout(FtkTextLayout* text_layout);
79void ftk_set_allocator(FtkAllocator* allocator);
80void ftk_set_input_method_manager(FtkInputMethodManager* input_manager_manager);
81void ftk_set_input_method_preeditor(FtkImPreeditor* input_method_preeditor);
82void ftk_set_animation_trigger(FtkAnimationTrigger* animation_trigger);
83
84void ftk_clear_globals(void);
85
86FtkFontDesc* ftk_default_font();
87
88FTK_END_DECLS
89
90#endif/*FTK_GLOBALS_H*/
91