advgdip.hpp
来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 704 行 · 第 1/2 页
HPP
704 行
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Advgdip.pas' rev: 10.00
#ifndef AdvgdipHPP
#define AdvgdipHPP
#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 <Activex.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
#pragma link "gdiplus.lib"
namespace Advgdip
{
//-- type declarations -------------------------------------------------------
typedef short INT16;
typedef Word UINT16;
typedef UINT16 *PUINT16;
typedef unsigned UINT32;
typedef DynamicArray<float > TSingleDynArray;
#pragma option push -b
enum TAntiAlias { aaNone, aaClearType, aaAntiAlias };
#pragma option pop
class DELPHICLASS TGdiplusBase;
class PASCALIMPLEMENTATION TGdiplusBase : public System::TObject
{
typedef System::TObject inherited;
public:
#pragma option push -w-inl
/* virtual class method */ virtual System::TObject* __fastcall NewInstance() { return NewInstance(__classid(TGdiplusBase)); }
#pragma option pop
/* class method */ static System::TObject* __fastcall NewInstance(TMetaClass* vmt);
virtual void __fastcall FreeInstance(void);
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TGdiplusBase(void) : System::TObject() { }
#pragma option pop
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TGdiplusBase(void) { }
#pragma option pop
};
#pragma option push -b
enum FillMode { FillModeAlternate, FillModeWinding };
#pragma option pop
typedef FillMode TFillMode;
typedef int TCompositingQuality;
#pragma option push -b
enum Unit_ { UnitWorld, UnitDisplay, UnitPixel, UnitPoint, UnitInch, UnitDocument, UnitMillimeter };
#pragma option pop
typedef Unit_ TUnit;
#pragma option push -b
enum DashStyle { DashStyleSolid, DashStyleDash, DashStyleDot, DashStyleDashDot, DashStyleDashDotDot, DashStyleCustom };
#pragma option pop
typedef DashStyle TDashStyle;
#pragma option push -b
enum WrapMode { WrapModeTile, WrapModeTileFlipX, WrapModeTileFlipY, WrapModeTileFlipXY, WrapModeClamp };
#pragma option pop
typedef WrapMode TWrapMode;
#pragma option push -b
enum LinearGradientMode { LinearGradientModeHorizontal, LinearGradientModeVertical, LinearGradientModeForwardDiagonal, LinearGradientModeBackwardDiagonal };
#pragma option pop
typedef LinearGradientMode TLinearGradientMode;
typedef int TLineCap;
#pragma option push -b
enum CombineMode { CombineModeReplace, CombineModeIntersect, CombineModeUnion, CombineModeXor, CombineModeExclude, CombineModeComplement };
#pragma option pop
typedef CombineMode TCombineMode;
typedef int TFontStyle;
typedef int SmoothingMode;
typedef int TSmoothingMode;
#pragma option push -b
enum TextRenderingHint { TextRenderingHintSystemDefault, TextRenderingHintSingleBitPerPixelGridFit, TextRenderingHintSingleBitPerPixel, TextRenderingHintAntiAliasGridFit, TextRenderingHintAntiAlias, TextRenderingHintClearTypeGridFit };
#pragma option pop
typedef TextRenderingHint TTextRenderingHint;
#pragma option push -b
enum StringAlignment { StringAlignmentNear, StringAlignmentCenter, StringAlignmentFar };
#pragma option pop
typedef StringAlignment TStringAlignment;
#pragma option push -b
enum StringTrimming { StringTrimmingNone, StringTrimmingCharacter, StringTrimmingWord, StringTrimmingEllipsisCharacter, StringTrimmingEllipsisWord, StringTrimmingEllipsisPath };
#pragma option pop
typedef StringTrimming TStringTrimming;
#pragma option push -b
enum HotkeyPrefix { HotkeyPrefixNone, HotkeyPrefixShow, HotkeyPrefixHide };
#pragma option pop
typedef HotkeyPrefix THotkeyPrefix;
#pragma option push -b
enum FlushIntention { FlushIntentionFlush, FlushIntentionSync };
#pragma option pop
typedef FlushIntention TFlushIntention;
#pragma option push -b
enum Status { Ok, GenericError, InvalidParameter, OutOfMemory, ObjectBusy, InsufficientBuffer, NotImplemented, Win32Error, WrongState, Aborted, FileNotFound, ValueOverflow, AccessDenied, UnknownImageFormat, FontFamilyNotFound, FontStyleNotFound, NotTrueTypeFont, UnsupportedGdiplusVersion, GdiplusNotInitialized, PropertyNotFound, PropertyNotSupported };
#pragma option pop
typedef Status TStatus;
struct TGPPointF;
typedef TGPPointF *PGPPointF;
#pragma pack(push,1)
struct TGPPointF
{
public:
float X;
float Y;
} ;
#pragma pack(pop)
typedef DynamicArray<TGPPointF > TPointFDynArray;
#pragma pack(push,1)
struct TGPPoint
{
public:
int X;
int Y;
} ;
#pragma pack(pop)
typedef TGPPoint *PGPPoint;
typedef DynamicArray<TGPPoint > TPointDynArray;
struct TGPRectF;
typedef TGPRectF *PGPRectF;
#pragma pack(push,1)
struct TGPRectF
{
public:
float X;
float Y;
float Width;
float Height;
} ;
#pragma pack(pop)
typedef DynamicArray<TGPRectF > TRectFDynArray;
#pragma pack(push,1)
struct TGPRect
{
public:
int X;
int Y;
int Width;
int Height;
} ;
#pragma pack(pop)
typedef TGPRect *PGPRect;
typedef DynamicArray<TGPRect > TRectDynArray;
#pragma option push -b
enum DebugEventLevel { DebugEventLevelFatal, DebugEventLevelWarning };
#pragma option pop
typedef DebugEventLevel TDebugEventLevel;
typedef void __stdcall (*DebugEventProc)(DebugEventLevel level, char * message);
typedef Status __stdcall (*NotificationHookProc)(/* out */ unsigned &token);
typedef void __stdcall (*NotificationUnhookProc)(unsigned token);
#pragma pack(push,1)
struct GdiplusStartupInput
{
public:
unsigned GdiplusVersion;
DebugEventProc DebugEventCallback;
BOOL SuppressBackgroundThread;
BOOL SuppressExternalCodecs;
} ;
#pragma pack(pop)
typedef GdiplusStartupInput TGdiplusStartupInput;
typedef GdiplusStartupInput *PGdiplusStartupInput;
#pragma pack(push,1)
struct GdiplusStartupOutput
{
public:
NotificationHookProc NotificationHook;
NotificationUnhookProc NotificationUnhook;
} ;
#pragma pack(pop)
typedef GdiplusStartupOutput TGdiplusStartupOutput;
typedef GdiplusStartupOutput *PGdiplusStartupOutput;
typedef unsigned *PARGB;
typedef unsigned *PGPColor;
typedef int TPixelFormat;
#pragma option push -b
enum RotateFlipType { RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, Rotate90FlipX, Rotate180FlipX, Rotate270FlipX };
#pragma option pop
typedef RotateFlipType TRotateFlipType;
typedef void *GpGraphics;
typedef void *GpBrush;
typedef void *GpSolidFill;
typedef void *GpLineGradient;
typedef void *GpPathGradient;
typedef void *GpPen;
typedef void *GpImage;
typedef void *GpBitmap;
typedef void *GpPath;
typedef void *GpRegion;
typedef void *GpFontFamily;
typedef void *GpFont;
typedef void *GpStringFormat;
typedef void *GpFontCollection;
typedef Status GpStatus;
typedef FillMode GpFillMode;
typedef WrapMode GpWrapMode;
typedef Unit_ GpUnit;
typedef TGPPointF *GpPointF;
typedef TGPPoint *GpPoint;
typedef TGPRectF *GpRectF;
typedef TGPRect *GpRect;
typedef DashStyle GpDashStyle;
typedef int GpLineCap;
typedef FlushIntention GpFlushIntention;
class DELPHICLASS TGPRegion;
class DELPHICLASS TGPGraphicsPath;
class PASCALIMPLEMENTATION TGPRegion : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeRegion;
Status lastResult;
Status __fastcall SetStatus(Status status);
void __fastcall SetNativeRegion(void * nativeRegion);
public:
__fastcall TGPRegion(const TGPRectF &rect)/* overload */;
__fastcall TGPRegion(TGPGraphicsPath* path)/* overload */;
__fastcall virtual ~TGPRegion(void);
Status __fastcall Exclude(TGPGraphicsPath* path)/* overload */;
Status __fastcall Union(TGPRegion* region)/* overload */;
};
class DELPHICLASS TGPFontFamily;
class DELPHICLASS TGPFontCollection;
class PASCALIMPLEMENTATION TGPFontFamily : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeFamily;
Status lastResult;
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPFontFamily(void * nativeOrig, Status status)/* overload */;
__fastcall TGPFontFamily(WideString name, TGPFontCollection* fontCollection)/* overload */;
__fastcall virtual ~TGPFontFamily(void);
__property Status Status = {read=lastResult, nodefault};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?