⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aatimer.hpp

📁 该控件显示公历和农历
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AATimer.pas' rev: 6.00

#ifndef AATimerHPP
#define AATimerHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Forms.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Aatimer
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAATimerObject;
class PASCALIMPLEMENTATION TAATimerObject : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	double FActualFPS;
	bool FEnabled;
	unsigned FExecCount;
	unsigned FInterval;
	unsigned FLastTickCount;
	Classes::TNotifyEvent FOnTimer;
	unsigned FRepeatCount;
	bool FSyncEvent;
	double __fastcall GetFPS(void);
	void __fastcall SetEnabled(bool Value);
	void __fastcall SetFPS(double Value);
	void __fastcall SetInterval(unsigned Value);
	void __fastcall SetRepeatCount(unsigned Value);
	
protected:
	DYNAMIC void __fastcall Timer(void);
	
public:
	__fastcall TAATimerObject(void);
	__fastcall virtual ~TAATimerObject(void);
	__property double ActualFPS = {read=FActualFPS};
	__property unsigned ExecCount = {read=FExecCount, nodefault};
	
__published:
	__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
	__property double FPS = {read=GetFPS, write=SetFPS, stored=false};
	__property unsigned Interval = {read=FInterval, write=SetInterval, default=1000};
	__property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=FOnTimer};
	__property unsigned RepeatCount = {read=FRepeatCount, write=SetRepeatCount, default=0};
	__property bool SyncEvent = {read=FSyncEvent, write=FSyncEvent, default=1};
};


class DELPHICLASS TAATimer;
class PASCALIMPLEMENTATION TAATimer : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	TAATimerObject* FTimerObject;
	double __fastcall GetActualFPS(void);
	bool __fastcall GetEnabled(void);
	unsigned __fastcall GetExecCount(void);
	double __fastcall GetFPS(void);
	unsigned __fastcall GetInterval(void);
	Classes::TNotifyEvent __fastcall GetOnTimer();
	unsigned __fastcall GetRepeatCount(void);
	bool __fastcall GetSyncEvent(void);
	void __fastcall SetEnabled(bool Value);
	void __fastcall SetFPS(double Value);
	void __fastcall SetInterval(unsigned Value);
	void __fastcall SetOnTimer(Classes::TNotifyEvent Value);
	void __fastcall SetRepeatCount(unsigned Value);
	void __fastcall SetSyncEvent(bool Value);
	
public:
	__fastcall virtual TAATimer(Classes::TComponent* AOwner);
	__fastcall virtual ~TAATimer(void);
	__property double ActualFPS = {read=GetActualFPS};
	__property unsigned ExecCount = {read=GetExecCount, nodefault};
	
__published:
	__property bool Enabled = {read=GetEnabled, write=SetEnabled, default=1};
	__property double FPS = {read=GetFPS, write=SetFPS, stored=false};
	__property unsigned Interval = {read=GetInterval, write=SetInterval, default=1000};
	__property Classes::TNotifyEvent OnTimer = {read=GetOnTimer, write=SetOnTimer};
	__property unsigned RepeatCount = {read=GetRepeatCount, write=SetRepeatCount, default=0};
	__property bool SyncEvent = {read=GetSyncEvent, write=SetSyncEvent, default=1};
};


class DELPHICLASS TAATimerItem;
class PASCALIMPLEMENTATION TAATimerItem : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	Classes::TNotifyEvent FOnTimer;
	TAATimerObject* FTimerObject;
	double __fastcall GetActualFPS(void);
	bool __fastcall GetEnabled(void);
	unsigned __fastcall GetExecCount(void);
	double __fastcall GetFPS(void);
	unsigned __fastcall GetInterval(void);
	unsigned __fastcall GetRepeatCount(void);
	bool __fastcall GetSyncEvent(void);
	void __fastcall SetEnabled(bool Value);
	void __fastcall SetFPS(double Value);
	void __fastcall SetInterval(unsigned Value);
	void __fastcall SetRepeatCount(unsigned Value);
	void __fastcall SetSyncEvent(bool Value);
	
protected:
	void __fastcall Timer(System::TObject* Sender);
	
public:
	__fastcall virtual TAATimerItem(Classes::TCollection* Collection);
	__fastcall virtual ~TAATimerItem(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property double ActualFPS = {read=GetActualFPS};
	__property unsigned ExecCount = {read=GetExecCount, nodefault};
	
__published:
	__property bool Enabled = {read=GetEnabled, write=SetEnabled, default=1};
	__property double FPS = {read=GetFPS, write=SetFPS, stored=false};
	__property unsigned Interval = {read=GetInterval, write=SetInterval, default=1000};
	__property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=FOnTimer};
	__property unsigned RepeatCount = {read=GetRepeatCount, write=SetRepeatCount, default=0};
	__property bool SyncEvent = {read=GetSyncEvent, write=SetSyncEvent, default=1};
};


class DELPHICLASS TAATimerCollection;
class DELPHICLASS TAATimerList;
typedef void __fastcall (__closure *TAATimerEvent)(System::TObject* Sender, int Index, bool &Handled);

class PASCALIMPLEMENTATION TAATimerList : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	TAATimerCollection* FItems;
	TAATimerEvent FOnTimer;
	void __fastcall SetItems(TAATimerCollection* Value);
	
protected:
	bool __fastcall Timer(int Index);
	
public:
	__fastcall virtual TAATimerList(Classes::TComponent* AOwner);
	__fastcall virtual ~TAATimerList(void);
	
__published:
	__property TAATimerCollection* Items = {read=FItems, write=SetItems};
	__property TAATimerEvent OnTimer = {read=FOnTimer, write=FOnTimer};
};


class PASCALIMPLEMENTATION TAATimerCollection : public Classes::TOwnedCollection 
{
	typedef Classes::TOwnedCollection inherited;
	
public:
	TAATimerItem* operator[](int Index) { return Items[Index]; }
	
private:
	TAATimerList* FTimerList;
	TAATimerItem* __fastcall GetItems(int Index);
	void __fastcall SetItems(int Index, TAATimerItem* Value);
	
protected:
	__property TAATimerList* TimerList = {read=FTimerList};
	
public:
	__fastcall TAATimerCollection(Classes::TPersistent* AOwner);
	__property TAATimerItem* Items[int Index] = {read=GetItems, write=SetItems/*, default*/};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TAATimerCollection(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Aatimer */
using namespace Aatimer;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// AATimer

⌨️ 快捷键说明

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