📄 acalphaimagelist.hpp
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2008 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Acalphaimagelist.pas' rev: 20.00
#ifndef AcalphaimagelistHPP
#define AcalphaimagelistHPP
#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 <Classes.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Commctrl.hpp> // Pascal unit
#include <Imglist.hpp> // Pascal unit
#include <Comctrls.hpp> // Pascal unit
#include <Sconst.hpp> // Pascal unit
#include <Acpng.hpp> // Pascal unit
#include <Acntutils.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Acalphaimagelist
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TsImageFormat { ifPNG, ifICO };
#pragma option pop
class DELPHICLASS TsImgListItem;
class DELPHICLASS TsImgListItems;
class PASCALIMPLEMENTATION TsImgListItem : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
TsImageFormat FImageFormat;
Graphics::TPixelFormat FPixelFormat;
protected:
TsImgListItems* FOwner;
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
void __fastcall ReadData(Classes::TStream* Reader);
void __fastcall WriteData(Classes::TStream* Writer);
public:
Classes::TMemoryStream* ImgData;
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
__fastcall virtual ~TsImgListItem(void);
__fastcall virtual TsImgListItem(Classes::TCollection* Collection);
__published:
__property TsImageFormat ImageFormat = {read=FImageFormat, write=FImageFormat, nodefault};
__property Graphics::TPixelFormat PixelFormat = {read=FPixelFormat, write=FPixelFormat, nodefault};
};
class DELPHICLASS TsAlphaImageList;
class PASCALIMPLEMENTATION TsImgListItems : public Classes::TCollection
{
typedef Classes::TCollection inherited;
public:
TsImgListItem* operator[](int Index) { return Items[Index]; }
protected:
TsAlphaImageList* FOwner;
HIDESBASE TsImgListItem* __fastcall GetItem(int Index);
HIDESBASE void __fastcall SetItem(int Index, TsImgListItem* Value);
DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
public:
__fastcall TsImgListItems(TsAlphaImageList* AOwner);
__fastcall virtual ~TsImgListItems(void);
__property TsImgListItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
};
class PASCALIMPLEMENTATION TsAlphaImageList : public Controls::TImageList
{
typedef Controls::TImageList inherited;
private:
TsImgListItems* FItems;
bool StdListIsGenerated;
void __fastcall SetItems(const TsImgListItems* Value);
protected:
void __fastcall CreateImgList(void);
virtual void __fastcall DoDraw(int Index, Graphics::TCanvas* Canvas, int X, int Y, unsigned Style, bool Enabled = true);
void __fastcall KillImgList(void);
bool __fastcall IsDuplicated(void);
bool __fastcall TryLoadFromFile(const System::UnicodeString FileName);
virtual void __fastcall ReadData(Classes::TStream* Stream);
virtual void __fastcall WriteData(Classes::TStream* Stream);
public:
bool DoubleData;
virtual void __fastcall AfterConstruction(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
HIDESBASE void __fastcall CopyImages(const TsAlphaImageList* ImgList);
__fastcall virtual TsAlphaImageList(Classes::TComponent* AOwner);
__fastcall virtual ~TsAlphaImageList(void);
void __fastcall GenerateStdList(void);
bool __fastcall GetBitmap32(int Index, Graphics::TBitmap* Image);
virtual void __fastcall Loaded(void);
void __fastcall LoadFromFile(const System::UnicodeString FileName);
HIDESBASE void __fastcall SetNewDimensions(unsigned Value);
__published:
__property TsImgListItems* Items = {read=FItems, write=SetItems};
public:
/* TCustomImageList.CreateSize */ inline __fastcall TsAlphaImageList(int AWidth, int AHeight) : Controls::TImageList(AWidth, AHeight) { }
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool __fastcall GetImageFormat(const System::UnicodeString FileName, TsImageFormat &ImageFormat);
extern PACKAGE tagSIZE __fastcall DrawAlphaImgList(const Imglist::TCustomImageList* ImgList, const Graphics::TBitmap* DestBmp, const int Left, const int Top, const int ImageIndex, const int Blend, const Graphics::TColor GrayedColor, int State, const int NumGlyphs);
extern PACKAGE void __fastcall DrawAlphaImgListDC(const Imglist::TCustomImageList* ImgList, const HDC DC, const int Left, const int Top, const int ImageIndex, const int Blend, const Graphics::TColor GrayedColor, int State, const int NumGlyphs);
extern PACKAGE bool __fastcall HaveMagic(const System::UnicodeString FileName, const void * Magic, const int Size);
} /* namespace Acalphaimagelist */
using namespace Acalphaimagelist;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // AcalphaimagelistHPP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -