📄 sgradient.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Sgradient.pas' rev: 10.00
#ifndef SgradientHPP
#define SgradientHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Sconst.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Inifiles.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Sgradient
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TsGradFillMode { fmSolid, fmTransparent };
#pragma option pop
struct TsGradPie
{
public:
Graphics::TColor Color1;
Graphics::TColor Color2;
Sconst::TPercent Percent;
int Mode1;
int Mode2;
} ;
#pragma pack(push,1)
struct TRIVERTEX
{
public:
unsigned X;
unsigned Y;
Word Red;
Word Green;
Word Blue;
Word Alpha;
} ;
#pragma pack(pop)
typedef DynamicArray<TsGradPie > TsGradArray;
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall PaintGrad(Graphics::TBitmap* Bmp, const Types::TRect &aRect, const AnsiString Gradient)/* overload */;
extern PACKAGE void __fastcall PaintGrad(Graphics::TBitmap* Bmp, const Types::TRect &aRect, const TsGradArray Data, int OffsetX = 0x0, int OffsetY = 0x0)/* overload */;
extern PACKAGE void __fastcall PrepareGradArray(const AnsiString GradientStr, TsGradArray &GradArray);
} /* namespace Sgradient */
using namespace Sgradient;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Sgradient
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -