wtimer.hpp

来自「开放源码的编译器open watcom 1.6.0版的源代码」· HPP 代码 · 共 26 行

HPP
26
字号
#ifndef wtimer_class
#define wtimer_class

#include "wwindow.hpp"
#include "wobjmap.hpp"

WCLASS WTimer;
typedef void (WObject::*cbt)( WTimer* o, DWORD sysTime );

WCLASS WTimer : public WObject
{
	public:
		WEXPORT WTimer( WObject* owner, cbt notify );
		WEXPORT ~WTimer();
		bool WEXPORT start( WORD interval, int count=0 );
		bool WEXPORT stop();
		void WEXPORT tick( DWORD sysTime );
		static WObjectMap WEXPORT _timerMap;
	private:
		WObject* _owner;
		cbt		_notify;
		WORD	_id;
		int		_count;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?