/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. * History:
  26. * ================================================================
  27. * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created
  28. *
  29. */
  30. #ifndef FTK_GLOBALS_H
  31. #define FTK_GLOBALS_H
  32. #include "ftk_theme.h"
  33. #include "ftk_config.h"
  34. #include "ftk_source.h"
  35. #include "ftk_display.h"
  36. #include "ftk_allocator.h"
  37. #include "ftk_text_layout.h"
  38. #include "ftk_wnd_manager.h"
  39. #include "ftk_bitmap_factory.h"
  40. #include "ftk_sources_manager.h"
  41. #include "ftk_input_method_manager.h"
  42. #include "ftk_input_method_preeditor.h"
  43. #include "ftk_animation_trigger.h"
  44. FTK_BEGIN_DECLS
  45. FtkDisplay* ftk_default_display(void);
  46. FtkMainLoop* ftk_default_main_loop(void);
  47. FtkLogLevel ftk_default_log_level(void);
  48. FtkWndManager* ftk_default_wnd_manager(void);
  49. FtkWidget* ftk_default_status_panel(void);
  50. FtkBitmapFactory* ftk_default_bitmap_factory(void);
  51. FtkSourcesManager* ftk_default_sources_manager(void);
  52. FtkCanvas* ftk_shared_canvas(void);
  53. FtkTheme* ftk_default_theme(void);
  54. FtkSource* ftk_primary_source(void);
  55. FtkConfig* ftk_default_config(void);
  56. FtkAllocator* ftk_default_allocator(void);
  57. FtkTextLayout* ftk_default_text_layout(void);
  58. FtkInputMethodManager* ftk_default_input_method_manager(void);
  59. FtkImPreeditor* ftk_default_input_method_preeditor(void);
  60. FtkAnimationTrigger* ftk_default_animation_trigger(void);
  61. void ftk_set_display(FtkDisplay* display);
  62. void ftk_set_main_loop(FtkMainLoop* main_loop);
  63. void ftk_set_log_level(FtkLogLevel level);
  64. void ftk_set_status_panel(FtkWidget* status_panel);
  65. void ftk_set_wnd_manager(FtkWndManager* wnd_manager);
  66. void ftk_set_bitmap_factory(FtkBitmapFactory* bitmap_factory);
  67. void ftk_set_sources_manager(FtkSourcesManager* sources_manager);
  68. void ftk_set_shared_canvas(FtkCanvas* canvas);
  69. void ftk_set_theme(FtkTheme* theme);
  70. void ftk_set_primary_source(FtkSource* source);
  71. void ftk_set_config(FtkConfig* config);
  72. void ftk_set_text_layout(FtkTextLayout* text_layout);
  73. void ftk_set_allocator(FtkAllocator* allocator);
  74. void ftk_set_input_method_manager(FtkInputMethodManager* input_manager_manager);
  75. void ftk_set_input_method_preeditor(FtkImPreeditor* input_method_preeditor);
  76. void ftk_set_animation_trigger(FtkAnimationTrigger* animation_trigger);
  77. void ftk_clear_globals(void);
  78. FtkFontDesc* ftk_default_font();
  79. FTK_END_DECLS
  80. #endif/*FTK_GLOBALS_H*/