mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-15 10:38:22 +08:00
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.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* File : rtgui_system.h
|
|
* This file is part of RTGUI in 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-04 Bernard first version
|
|
*/
|
|
#ifndef __RTGUI_SYSTEM_H__
|
|
#define __RTGUI_SYSTEM_H__
|
|
|
|
#include <rtthread.h>
|
|
#include <rtgui/rtgui.h>
|
|
|
|
struct rtgui_dc;
|
|
struct rtgui_event;
|
|
struct rtgui_widget;
|
|
|
|
struct rtgui_timer;
|
|
typedef void (*rtgui_timeout_func)(struct rtgui_timer* timer, void* parameter);
|
|
|
|
struct rtgui_timer
|
|
{
|
|
/* context thread id */
|
|
rt_thread_t tid;
|
|
/* rt timer */
|
|
struct rt_timer timer;
|
|
|
|
/* timeout function and user data */
|
|
rtgui_timeout_func timeout;
|
|
void* user_data;
|
|
};
|
|
typedef struct rtgui_timer rtgui_timer_t;
|
|
|
|
rtgui_timer_t* rtgui_timer_create(rt_int32_t time, rt_base_t flag, rtgui_timeout_func timeout, void* parameter);
|
|
void rtgui_timer_destory(rtgui_timer_t* timer);
|
|
|
|
void rtgui_timer_start(rtgui_timer_t* timer);
|
|
void rtgui_timer_stop (rtgui_timer_t* timer);
|
|
|
|
/* rtgui system initialization function */
|
|
void rtgui_system_server_init(void);
|
|
|
|
void* rtgui_malloc(rt_size_t size);
|
|
void rtgui_free(void* ptr);
|
|
void* rtgui_realloc(void* ptr, rt_size_t size);
|
|
|
|
#define rtgui_enter_critical rt_enter_critical
|
|
#define rtgui_exit_critical rt_exit_critical
|
|
|
|
#endif
|
|
|