title.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * File : title.h
  3. * This file is part of RT-Thread GUI Engine
  4. * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * Change Logs:
  21. * Date Author Notes
  22. * 2009-10-16 Bernard first version
  23. */
  24. #ifndef __RTGUI_TITLE__
  25. #define __RTGUI_TITLE__
  26. #include <rtgui/widgets/widget.h>
  27. DECLARE_CLASS_TYPE(wintitle);
  28. /** Gets the type of a title */
  29. #define RTGUI_WINTITLE_TYPE (RTGUI_TYPE(wintitle))
  30. /** Casts the object to an rtgui_wintitle */
  31. #define RTGUI_WINTITLE(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_WINTITLE_TYPE, rtgui_wintitle_t))
  32. /** Checks if the object is an rtgui_wintitle */
  33. #define RTGUI_IS_WINTITLE(obj) (RTGUI_OBJECT_CHECK_TYPE((obj), RTGUI_WINTITLE_TYPE))
  34. struct rtgui_wintitle
  35. {
  36. struct rtgui_widget parent;
  37. };
  38. typedef struct rtgui_wintitle rtgui_wintitle_t;
  39. rtgui_wintitle_t *rtgui_wintitle_create(struct rtgui_win *window);
  40. void rtgui_wintitle_destroy(rtgui_wintitle_t *wintitle);
  41. rt_bool_t rtgui_wintile_event_handler(struct rtgui_object *object, rtgui_event_t *event);
  42. #endif