// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'PlanUtils.pas' rev: 4.00

#ifndef PlanUtilsHPP
#define PlanUtilsHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Messages.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <jpeg.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Planutils
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TGradientFillDirection { fdTopToBottom, fdBottomToTop, fdLeftToRight, fdRightToLeft };
#pragma option pop

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE int MarginDelta;
extern PACKAGE int iArrowLength;
extern PACKAGE int iArrowWidth;
extern PACKAGE Graphics::TColor clReplaceWhite;
extern PACKAGE System::ResourceString _pcBlack;
#define Planutils_pcBlack System::LoadResourceString(&Planutils::_pcBlack)
extern PACKAGE System::ResourceString _pcMaroon;
#define Planutils_pcMaroon System::LoadResourceString(&Planutils::_pcMaroon)
extern PACKAGE System::ResourceString _pcGreen;
#define Planutils_pcGreen System::LoadResourceString(&Planutils::_pcGreen)
extern PACKAGE System::ResourceString _pcOlive;
#define Planutils_pcOlive System::LoadResourceString(&Planutils::_pcOlive)
extern PACKAGE System::ResourceString _pcNavy;
#define Planutils_pcNavy System::LoadResourceString(&Planutils::_pcNavy)
extern PACKAGE System::ResourceString _pcPurple;
#define Planutils_pcPurple System::LoadResourceString(&Planutils::_pcPurple)
extern PACKAGE System::ResourceString _pcTeal;
#define Planutils_pcTeal System::LoadResourceString(&Planutils::_pcTeal)
extern PACKAGE System::ResourceString _pcGray;
#define Planutils_pcGray System::LoadResourceString(&Planutils::_pcGray)
extern PACKAGE System::ResourceString _pcSilver;
#define Planutils_pcSilver System::LoadResourceString(&Planutils::_pcSilver)
extern PACKAGE System::ResourceString _pcRed;
#define Planutils_pcRed System::LoadResourceString(&Planutils::_pcRed)
extern PACKAGE System::ResourceString _pcLime;
#define Planutils_pcLime System::LoadResourceString(&Planutils::_pcLime)
extern PACKAGE System::ResourceString _pcYellow;
#define Planutils_pcYellow System::LoadResourceString(&Planutils::_pcYellow)
extern PACKAGE System::ResourceString _pcBlue;
#define Planutils_pcBlue System::LoadResourceString(&Planutils::_pcBlue)
extern PACKAGE System::ResourceString _pcFuchsia;
#define Planutils_pcFuchsia System::LoadResourceString(&Planutils::_pcFuchsia)
extern PACKAGE System::ResourceString _pcAqua;
#define Planutils_pcAqua System::LoadResourceString(&Planutils::_pcAqua)
extern PACKAGE System::ResourceString _pcWhite;
#define Planutils_pcWhite System::LoadResourceString(&Planutils::_pcWhite)
extern PACKAGE int iScreenWidth;
extern PACKAGE int iScreenHeight;
extern PACKAGE unsigned __fastcall Distance(const Windows::TPoint &p1, const Windows::TPoint &p2);
extern PACKAGE Windows::TRect __fastcall NormalizeRect(const int x1, const int y1, const int x2, const 
	int y2);
extern PACKAGE Windows::TPoint __fastcall ScreenToDecart(const Windows::TPoint &p, const int ScrHeight
	);
extern PACKAGE Windows::TPoint __fastcall DecartToScreen(const Windows::TPoint &p, const int ScrHeight
	);
extern PACKAGE bool __fastcall PointOnLine(const Windows::TPoint &p, const Windows::TPoint &m1, const 
	Windows::TPoint &m2, const int PenWidth);
extern PACKAGE bool __fastcall PointInRect(const Windows::TPoint &p, const Windows::TRect &R);
extern PACKAGE bool __fastcall PointInPolyRgn(const Windows::TPoint &p, const Windows::TPoint * Points
	, const int Points_Size);
extern PACKAGE int __fastcall Hex2Dec(const AnsiString S);
extern PACKAGE AnsiString __fastcall MakeStr(char C, int N);
extern PACKAGE int __fastcall Min(int A, int B);
extern PACKAGE int __fastcall Max(int A, int B);
extern PACKAGE Graphics::TColor __fastcall ReadColor(AnsiString s);
extern PACKAGE AnsiString __fastcall EncodeColor(Graphics::TColor c);
extern PACKAGE AnsiString __fastcall GetStyleString(Graphics::TFont* AFont);
extern PACKAGE AnsiString __fastcall Stream2String(Classes::TMemoryStream* ms);
extern PACKAGE void __fastcall String2Stream(const AnsiString s, Classes::TMemoryStream* &ms);
extern PACKAGE AnsiString __fastcall GetPictureType(Graphics::TPicture* Picture);
extern PACKAGE bool __fastcall LoadPictureFromStream(const AnsiString PictureType, Graphics::TPicture* 
	Picture, Classes::TStream* Stream);
extern PACKAGE AnsiString __fastcall GetPictureStreamString(Graphics::TPicture* Picture);
extern PACKAGE void __fastcall CopyParentImage(Controls::TControl* Control, Graphics::TCanvas* Dest)
	;
extern PACKAGE void __fastcall GradientFillRect(Graphics::TCanvas* Canvas, const Windows::TRect &ARect
	, Graphics::TColor StartColor, Graphics::TColor EndColor, TGradientFillDirection Direction, Byte Colors
	);
extern PACKAGE void __fastcall GradientFillRgn(Graphics::TCanvas* Canvas, const Windows::TRect &ARect
	, HRGN ARgn, Graphics::TColor StartColor, Graphics::TColor EndColor, TGradientFillDirection Direction
	, Byte Colors);

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

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