db06460208
The full log is at https://github.com/RTGUI/RTGUI/commits/merge_1 and it's difficult to merge the new tree commit by commit. I also converted all the file into unix eol so there are many fake diff. Big changes are noted in rtgui/doc/road_map.txt and rtgui/doc/attention.txt. Keep an eye on them if you want to migrate your old code. Note that the work is still in progress and the bsp is not prepared in trunk so far. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2092 bbd45198-f89e-11dd-88c7-29a3b14d5316
58 lines
1.9 KiB
C
58 lines
1.9 KiB
C
/*
|
|
* File : topwin.h
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2009-10-16 Bernard first version
|
|
*/
|
|
#ifndef __RTGUI_TOPWIN_H__
|
|
#define __RTGUI_TOPWIN_H__
|
|
|
|
#include <rtgui/rtgui.h>
|
|
#include <rtgui/region.h>
|
|
#include <rtgui/event.h>
|
|
#include <rtgui/widgets/title.h>
|
|
#include <rtgui/rtgui_server.h>
|
|
|
|
/* add or remove a top win */
|
|
rt_err_t rtgui_topwin_add(struct rtgui_event_win_create* event);
|
|
rt_err_t rtgui_topwin_remove(struct rtgui_win* wid);
|
|
|
|
void rtgui_topwin_activate_win(struct rtgui_topwin* win);
|
|
|
|
/* show a window */
|
|
rt_err_t rtgui_topwin_show(struct rtgui_event_win* event);
|
|
/* hide a window */
|
|
rt_err_t rtgui_topwin_hide(struct rtgui_event_win* event);
|
|
/* move a window */
|
|
rt_err_t rtgui_topwin_move(struct rtgui_event_win_move* event);
|
|
/* resize a window */
|
|
void rtgui_topwin_resize(struct rtgui_win* wid, rtgui_rect_t* r);
|
|
/* a window is entering modal mode */
|
|
rt_err_t rtgui_topwin_modal_enter(struct rtgui_event_win_modal_enter* event);
|
|
|
|
/* get window at (x, y) */
|
|
struct rtgui_topwin* rtgui_topwin_get_wnd(int x, int y);
|
|
struct rtgui_topwin* rtgui_topwin_get_wnd_no_modaled(int x, int y);
|
|
|
|
//void rtgui_topwin_deactivate_win(struct rtgui_topwin* win);
|
|
|
|
/* window title */
|
|
void rtgui_topwin_title_ondraw(struct rtgui_topwin* win);
|
|
void rtgui_topwin_title_onmouse(struct rtgui_topwin* win, struct rtgui_event_mouse* event);
|
|
|
|
/* monitor rect */
|
|
void rtgui_topwin_append_monitor_rect(struct rtgui_win* wid, rtgui_rect_t* rect);
|
|
void rtgui_topwin_remove_monitor_rect(struct rtgui_win* wid, rtgui_rect_t* rect);
|
|
|
|
/* get the topwin that is currently focused */
|
|
struct rtgui_topwin* rtgui_topwin_get_focus(void);
|
|
#endif
|
|
|