2010-01-04 08:05:47 +08:00
|
|
|
#include <rtgui/rtgui.h>
|
|
|
|
#include <rtgui/rtgui_server.h>
|
|
|
|
|
2010-01-18 07:41:59 +08:00
|
|
|
/*
|
|
|
|
* Panel demo for 240x320
|
|
|
|
* info panel: (0, 0) - (240, 25)
|
|
|
|
* main panel: (0, 25) - (240, 320)
|
|
|
|
*/
|
2010-01-04 08:05:47 +08:00
|
|
|
void panel_init(void)
|
|
|
|
{
|
|
|
|
rtgui_rect_t rect;
|
|
|
|
|
|
|
|
/* register dock panel */
|
|
|
|
rect.x1 = 0;
|
|
|
|
rect.y1 = 0;
|
|
|
|
rect.x2 = 240;
|
|
|
|
rect.y2 = 25;
|
|
|
|
rtgui_panel_register("info", &rect);
|
|
|
|
|
|
|
|
/* register main panel */
|
|
|
|
rect.x1 = 0;
|
|
|
|
rect.y1 = 25;
|
2010-04-06 07:15:05 +08:00
|
|
|
rect.x2 = 240;
|
2010-01-04 08:05:47 +08:00
|
|
|
rect.y2 = 320;
|
|
|
|
rtgui_panel_register("main", &rect);
|
|
|
|
rtgui_panel_set_default_focused("main");
|
|
|
|
}
|