69 lines
6.8 KiB
C++
69 lines
6.8 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'iexCanvasUtils.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef iexCanvasUtilsHPP
|
|
#define iexCanvasUtilsHPP
|
|
|
|
#pragma delphiheader begin
|
|
#pragma option push
|
|
#if defined(__BORLANDC__) && !defined(__clang__)
|
|
#pragma option -w- // All warnings off
|
|
#pragma option -Vx // Zero-length empty class member
|
|
#endif
|
|
#pragma pack(push,8)
|
|
#include <System.hpp>
|
|
#include <SysInit.hpp>
|
|
#include <Winapi.Windows.hpp>
|
|
#include <Winapi.Messages.hpp>
|
|
#include <System.SysUtils.hpp>
|
|
#include <System.Classes.hpp>
|
|
#include <System.Types.hpp>
|
|
#include <Vcl.Graphics.hpp>
|
|
#include <Vcl.Controls.hpp>
|
|
#include <Vcl.StdCtrls.hpp>
|
|
#include <hyiedefs.hpp>
|
|
#include <iegdiplus.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Iexcanvasutils
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
//-- type declarations -------------------------------------------------------
|
|
enum DECLSPEC_DENUM TIEBooleanEx : unsigned char { iebFalse, iebTrue, iebDefault };
|
|
|
|
enum DECLSPEC_DENUM TWallpaperEffect : unsigned char { wpSolid, wpLeftLine, wpTopLine, wpDoubleLeftLines, wpDoubleTopLines, wpDoubleVariedLeftLines, wpDoubleVariedTopLines, wpTripleLeftLines, wpTripleTopLines, wpTripleVariedLeftLines, wpTripleVariedTopLines, wpLeftDashes, wpTopDashes, wpDoubleLeftDashes, wpDoubleTopDashes, wpTripleLeftDashes, wpTripleTopDashes, wpLeftZigZag, wpTopZigZag, wpLeftGradient, wpTopGradient, wpHorzPinStripe, wpVertPinStripe, wpDiagPinStripe, wpDiagPinStripe2, wpCrossHatch, wpDiagCrossHatch, wpHorzStripes, wpVertStripes, wpDiagStripes, wpDiagStripes2, wpCheckers, wpDiagCheckers, wpRain, wpRain2, wpRivets, wpHearts, wpStars, wpLightning, wpRuledPage };
|
|
|
|
enum DECLSPEC_DENUM TXCustomShape : unsigned char { xcsStar5, xcsStar6, xcsArrowNW, xcsArrowNE, xcsArrowSW, xcsArrowSE, xcsLightningLeft, xcsLightningRight, xcsExplosion, xcsExplosion_2, xcsCross, xcsArrowNW2, xcsArrowNE2, xcsArrowSW2, xcsArrowSE2, xcsHeart, xcsDoubleHeart };
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
static _DELPHI_CONST System::Int8 Shape_Array_Max_Points = System::Int8(0x66);
|
|
#define Supported_Generate_Points_Shapes (System::Set<Hyiedefs::TIEShape, Hyiedefs::TIEShape::iesEllipse, Hyiedefs::TIEShape::iesCircularFrame>() << Hyiedefs::TIEShape::iesRectangle << Hyiedefs::TIEShape::iesTriangle << Hyiedefs::TIEShape::iesCorner << Hyiedefs::TIEShape::iesDiamond << Hyiedefs::TIEShape::iesPentagon << Hyiedefs::TIEShape::iesHexagon << Hyiedefs::TIEShape::iesHeptagon << Hyiedefs::TIEShape::iesOctagon << Hyiedefs::TIEShape::iesCustomShape << Hyiedefs::TIEShape::iesStar5 << Hyiedefs::TIEShape::iesStar6 << Hyiedefs::TIEShape::iesCustomStar << Hyiedefs::TIEShape::iesArrowLeft << Hyiedefs::TIEShape::iesArrowRight << Hyiedefs::TIEShape::iesArrowUp << Hyiedefs::TIEShape::iesArrowDown << Hyiedefs::TIEShape::iesArrowLeftRight << Hyiedefs::TIEShape::iesArrowUpDown \
|
|
<< Hyiedefs::TIEShape::iesArrowNW << Hyiedefs::TIEShape::iesArrowNE << Hyiedefs::TIEShape::iesArrowSW << Hyiedefs::TIEShape::iesArrowSE << Hyiedefs::TIEShape::iesFatArrowLeft << Hyiedefs::TIEShape::iesFatArrowRight << Hyiedefs::TIEShape::iesFatArrowUp << Hyiedefs::TIEShape::iesFatArrowDown << Hyiedefs::TIEShape::iesShootingArrowNW << Hyiedefs::TIEShape::iesShootingArrowNE << Hyiedefs::TIEShape::iesShootingArrowSW << Hyiedefs::TIEShape::iesShootingArrowSE << Hyiedefs::TIEShape::iesLightningLeft << Hyiedefs::TIEShape::iesLightningRight << Hyiedefs::TIEShape::iesExplosion << Hyiedefs::TIEShape::iesCustomExplosion << Hyiedefs::TIEShape::iesCross << Hyiedefs::TIEShape::iesShield << Hyiedefs::TIEShape::iesBadge << Hyiedefs::TIEShape::iesNamePlate )
|
|
extern DELPHI_PACKAGE double __fastcall IEShapePreferredAspectRatio(Hyiedefs::TIEShape Shape);
|
|
extern DELPHI_PACKAGE void __fastcall IEGenerateShapePoints(/* out */ System::Types::TPoint *PointArray, const System::NativeInt PointArray_High, /* out */ int &PointArrayCount, Hyiedefs::TIEShape Shape, int iLeft, int iTop, int iWidth, int iHeight, int Angle = 0x0, bool MaintainAROnRotate = false, int ShapeModifier = 0x0);
|
|
extern DELPHI_PACKAGE HRGN __fastcall IECreateShapeRegion(Hyiedefs::TIEShape Shape, int iLeft, int iTop, int iWidth, int iHeight, TIEBooleanEx MaintainAspect = (TIEBooleanEx)(0x2), int Angle = 0x0, int ShapeModifier = 0x0)/* overload */;
|
|
extern DELPHI_PACKAGE HRGN __fastcall IECreateShapeRegion(Hyiedefs::TIEShape Shape, const System::Types::TRect &ARect, TIEBooleanEx MaintainAspect = (TIEBooleanEx)(0x2), int Angle = 0x0, int ShapeModifier = 0x0)/* overload */;
|
|
extern DELPHI_PACKAGE HRGN __fastcall CreateCustomShapeRegion(TXCustomShape Shape, int iLeft, int iTop, int iWidth, int iHeight);
|
|
extern DELPHI_PACKAGE void __fastcall IEDrawShape(Vcl::Graphics::TCanvas* Canvas, Hyiedefs::TIEShape Shape, int iLeft, int iTop, int iWidth, int iHeight, TIEBooleanEx MaintainAspect = (TIEBooleanEx)(0x2))/* overload */;
|
|
extern DELPHI_PACKAGE void __fastcall IEDrawShape(Vcl::Graphics::TCanvas* Canvas, Hyiedefs::TIEShape Shape, int iLeft, int iTop, int iWidth, int iHeight, TIEBooleanEx MaintainAspect, System::Uitypes::TColor BorderColor, int BorderWidth, System::Uitypes::TColor FillColor, System::Uitypes::TColor FillColor2 = (System::Uitypes::TColor)(0x1fffffff), Hyiedefs::TIEGradientDir GradientDir = (Hyiedefs::TIEGradientDir)(0x1), int Angle = 0x0, int ShapeModifier = 0x0)/* overload */;
|
|
extern DELPHI_PACKAGE void __fastcall DrawCustomShape(Vcl::Graphics::TCanvas* Canvas, TXCustomShape Shape, int iLeft, int iTop, int iWidth, int iHeight);
|
|
extern DELPHI_PACKAGE Vcl::Graphics::TBitmap* __fastcall CreateWallpaperBitmap(TWallpaperEffect Effect, System::Uitypes::TColor Color1, System::Uitypes::TColor Color2, int iSize = 0xffffffff, int iSpacing = 0xffffffff, int iThickness = 0xffffffff);
|
|
extern DELPHI_PACKAGE void __fastcall TileBitmapOntoCanvas(Vcl::Graphics::TCanvas* Canvas, int iWidth, int iHeight, Vcl::Graphics::TBitmap* Bitmap)/* overload */;
|
|
extern DELPHI_PACKAGE void __fastcall TileBitmapOntoCanvas(Vcl::Graphics::TCanvas* Canvas, int iWidth, int iHeight, Vcl::Graphics::TGraphic* Graphic)/* overload */;
|
|
extern DELPHI_PACKAGE System::UnicodeString __fastcall ShapeToString(Hyiedefs::TIEShape Shape);
|
|
extern DELPHI_PACKAGE void __fastcall IEDrawShapeToComboListBoxItem(Vcl::Graphics::TCanvas* ControlCanvas, const System::Types::TRect &CanvasRect, bool ControlEnabled, Hyiedefs::TIEShape Shape, System::Uitypes::TColor Color, bool ShowText = true);
|
|
} /* namespace Iexcanvasutils */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_IEXCANVASUTILS)
|
|
using namespace Iexcanvasutils;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // iexCanvasUtilsHPP
|