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

📄 vrtank.hpp

📁 wimax bs simulator对应的GUI程序
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'VrTank.pas' rev: 5.00

#ifndef VrTankHPP
#define VrTankHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <VrSysUtils.hpp>	// Pascal unit
#include <VrClasses.hpp>	// Pascal unit
#include <VrControls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Vrtank
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TTankShape { tsRectangle, tsRoundedRectangle, tsEllipse, tsTriangle };
#pragma option pop

typedef void __fastcall (__closure *TOutOfRangeEvent)(System::TObject* Sender, double &Min, double &
	Max, double &Pos);

class DELPHICLASS TContainerTank;
class PASCALIMPLEMENTATION TContainerTank : public Vrclasses::TVrPersistent 
{
	typedef Vrclasses::TVrPersistent inherited;
	
private:
	bool FVisible;
	int FHeight;
	int FWidth;
	Classes::TNotifyEvent FOnChange;
	void __fastcall SetHeight(const int Value);
	void __fastcall SetVisible(const bool Value);
	void __fastcall SetWidth(const int Value);
	
protected:
	void __fastcall Change(void);
	
public:
	__fastcall TContainerTank(void);
	
__published:
	__property int Height = {read=FHeight, write=SetHeight, nodefault};
	__property int Width = {read=FWidth, write=SetWidth, nodefault};
	__property bool Visible = {read=FVisible, write=SetVisible, nodefault};
	__property Classes::TNotifyEvent OnChage = {read=FOnChange, write=FOnChange, default=0};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TContainerTank(void) { }
	#pragma option pop
	
};


class DELPHICLASS TVrTank;
class PASCALIMPLEMENTATION TVrTank : public Vrcontrols::TVrGraphicImageControl 
{
	typedef Vrcontrols::TVrGraphicImageControl inherited;
	
private:
	TContainerTank* FContainer;
	TTankShape FShape;
	Graphics::TColor FEmptyColor;
	Graphics::TColor FFillColor;
	double FPosition;
	double FMin;
	double FMax;
	Graphics::TColor FColor;
	TOutOfRangeEvent FOnOutofRange;
	void __fastcall SetShape(const TTankShape Value);
	void __fastcall SetEmptyColor(const Graphics::TColor Value);
	void __fastcall SetFillColor(const Graphics::TColor Value);
	void __fastcall SetMax(const double Value);
	void __fastcall SetMin(const double Value);
	void __fastcall SetPosition(const double Value);
	HIDESBASE void __fastcall SetColor(const Graphics::TColor Value);
	
protected:
	Windows::TRect Cont;
	int pixelLevel;
	HRGN ContRgn;
	HRGN ShapeRgn;
	void __fastcall ContainerChange(System::TObject* Sender);
	void __fastcall DoOutOfRange(double Value);
	void __fastcall UpdateValues(void);
	void __fastcall DrawPosition(void);
	void __fastcall DrawContainer(void);
	void __fastcall DrawShape(void);
	void __fastcall DrawRect(void);
	void __fastcall DrawTriangle(void);
	void __fastcall DrawEllipse(void);
	
public:
	__fastcall virtual TVrTank(Classes::TComponent* AOwner);
	__fastcall virtual ~TVrTank(void);
	virtual void __fastcall Paint(void);
	
__published:
	__property TContainerTank* Container = {read=FContainer, write=FContainer};
	__property TTankShape Shape = {read=FShape, write=SetShape, default=2};
	__property Graphics::TColor FillColor = {read=FFillColor, write=SetFillColor, default=65280};
	__property Graphics::TColor EmptyColor = {read=FEmptyColor, write=SetEmptyColor, default=0};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-2147483633};
	__property double Min = {read=FMin, write=SetMin};
	__property double Max = {read=FMax, write=SetMax};
	__property double Position = {read=FPosition, write=SetPosition};
	__property TOutOfRangeEvent OnOutofRange = {read=FOnOutofRange, write=FOnOutofRange};
	__property Align ;
	__property Anchors ;
	__property Constraints ;
	__property DragCursor ;
	__property DragKind ;
	__property DragMode ;
	__property Hint ;
	__property ParentColor ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDock ;
	__property OnStartDrag ;
};


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

}	/* namespace Vrtank */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrtank;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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

⌨️ 快捷键说明

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