2010-01-18 07:41:59 +08:00
|
|
|
#include <rtgui/rtgui.h>
|
2010-08-11 07:57:23 +08:00
|
|
|
#include <rtgui/driver.h>
|
2010-01-18 07:41:59 +08:00
|
|
|
#include <rtgui/rtgui_server.h>
|
|
|
|
|
|
|
|
/*
|
2010-08-11 07:57:23 +08:00
|
|
|
* a single panel
|
2010-01-18 07:41:59 +08:00
|
|
|
*/
|
|
|
|
void panel_init(void)
|
|
|
|
{
|
|
|
|
rtgui_rect_t rect;
|
|
|
|
|
|
|
|
/* register main panel */
|
|
|
|
rect.x1 = 0;
|
|
|
|
rect.y1 = 0;
|
2010-08-11 07:57:23 +08:00
|
|
|
rect.x2 = rtgui_graphic_driver_get_default()->width;
|
|
|
|
rect.y2 = rtgui_graphic_driver_get_default()->height;
|
2010-01-18 07:41:59 +08:00
|
|
|
rtgui_panel_register("main", &rect);
|
|
|
|
rtgui_panel_set_default_focused("main");
|
|
|
|
}
|