topwin.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * File : topwin.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-10-16 Bernard first version
  13. */
  14. #ifndef __RTGUI_TOPWIN_H__
  15. #define __RTGUI_TOPWIN_H__
  16. #include <rtgui/rtgui.h>
  17. #include <rtgui/list.h>
  18. #include <rtgui/region.h>
  19. #include <rtgui/event.h>
  20. #include <rtgui/widgets/title.h>
  21. #include <rtgui/rtgui_server.h>
  22. /* add or remove a top win */
  23. rt_err_t rtgui_topwin_add(struct rtgui_event_win_create* event);
  24. rt_err_t rtgui_topwin_remove(struct rtgui_win* wid);
  25. /* raise window to front */
  26. void rtgui_topwin_raise(struct rtgui_win* wid, rt_thread_t sender);
  27. /* update clip info to a panel */
  28. void rtgui_topwin_update_clip_to_panel(struct rtgui_panel* panel);
  29. /* show a window */
  30. void rtgui_topwin_show(struct rtgui_event_win* event);
  31. /* hide a window */
  32. void rtgui_topwin_hide(struct rtgui_event_win* event);
  33. /* move a window */
  34. void rtgui_topwin_move(struct rtgui_event_win_move* event);
  35. /* resize a window */
  36. void rtgui_topwin_resize(struct rtgui_win* wid, rtgui_rect_t* r);
  37. /* get window at (x, y) */
  38. struct rtgui_topwin* rtgui_topwin_get_wnd(int x, int y);
  39. void rtgui_topwin_activate_win(struct rtgui_topwin* win);
  40. void rtgui_topwin_deactivate_win(struct rtgui_topwin* win);
  41. /* window title */
  42. void rtgui_topwin_title_ondraw(struct rtgui_topwin* win);
  43. void rtgui_topwin_title_onmouse(struct rtgui_topwin* win, struct rtgui_event_mouse* event);
  44. /* monitor rect */
  45. void rtgui_topwin_append_monitor_rect(struct rtgui_win* wid, rtgui_rect_t* rect);
  46. void rtgui_topwin_remove_monitor_rect(struct rtgui_win* wid, rtgui_rect_t* rect);
  47. void rtgui_topwin_get_clipinfo(struct rtgui_rect* rect_list, rt_int32_t count);
  48. #endif