Files
player/Project/Src/MyWin/MyWinCore/mywin_timer.h
2025-07-06 18:46:13 +08:00

25 lines
506 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef MYWIN_TIMER_H__
#define MYWIN_TIMER_H__
/********************定时器操作***************************/
// 添加定时器,成功返回id失败返回0
int WIN_CreatTimer(WIN_WindowStruct *win, u32 ms);
// 清零定时器
int WIN_TimerReload(int timerId);
// 设置定时器周期
int WIN_SetTimerCycle(int timerId, int cycle);
// 删除指定定时器失败返回-1成功返回0
int WIN_DeleteTimer(int id);
// 删除窗口创建的所有定时器
int WIN_WinDeleteTimer(WIN_WindowStruct *win);
// 定时器工作
void WIN_TimerWork(void);
#endif