Files
player/Project/Src/MyWin/MyWinCore/mywin_timer.h
andy 045cff4cc6 整理代码
1.解决一些编译警告
2.发现png因为文件api不支持而不能使用
2025-10-18 13:58:40 +08:00

27 lines
536 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__
#include "mywin_type.h"
/********************定时器操作***************************/
// 添加定时器,成功返回id失败返回0
int WIN_CreatTimer(WIN_WindowStruct *win, uint32_t 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