/src/ftk_window.h

http://ftk.googlecode.com/ · C Header · 64 lines · 27 code · 8 blank · 29 comment · 0 complexity · 78b1b14088ff72c51ecbd4e1c3116353 MD5 · raw file

  1. /*
  2. * File: ftk_window.h
  3. * Author: Li XianJing <xianjimli@hotmail.com>
  4. * Brief: window
  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_WINDOW_H
  31. #define FTK_WINDOW_H
  32. #include "ftk_widget.h"
  33. #include "ftk_animation.h"
  34. #include "ftk_wnd_manager.h"
  35. #include "ftk_animation_trigger.h"
  36. FTK_BEGIN_DECLS
  37. FtkWidget* ftk_window_create(int type, unsigned int attr, int x, int y, int width, int height);
  38. FtkWidget* ftk_sub_window_create(FtkWidget* parent, int type, unsigned int attr, int x, int y, int width, int height);
  39. Ret ftk_window_set_focus(FtkWidget* thiz, FtkWidget* focus_widget);
  40. FtkWidget* ftk_window_get_focus(FtkWidget* thiz);
  41. Ret ftk_window_grab(FtkWidget* thiz, FtkWidget* grab_widget);
  42. Ret ftk_window_ungrab(FtkWidget* thiz, FtkWidget* grab_widget);
  43. Ret ftk_window_paint_forcely(FtkWidget* thiz);
  44. Ret ftk_window_update(FtkWidget* thiz, FtkRect* rect);
  45. int ftk_window_is_mapped(FtkWidget* thiz);
  46. int ftk_window_is_fullscreen(FtkWidget* thiz);
  47. Ret ftk_window_set_fullscreen(FtkWidget* thiz, int fullscreen);
  48. Ret ftk_window_invalidate(FtkWidget* thiz, FtkRect* rect);
  49. int ftk_window_is_opaque(FtkWidget* thiz);
  50. Ret ftk_window_set_background_with_alpha(FtkWidget* thiz, FtkBitmap* bitmap, FtkColor bg);
  51. Ret ftk_window_enable_update(FtkWidget* thiz);
  52. Ret ftk_window_disable_update(FtkWidget* thiz);
  53. const char* ftk_window_get_animation_hint(FtkWidget* thiz);
  54. Ret ftk_window_set_animation_hint(FtkWidget* thiz, const char* hint);
  55. FTK_END_DECLS
  56. #endif/*FTK_WINDOW_H*/