forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlphaShapeClass.h
54 lines (39 loc) · 1.19 KB
/
AlphaShapeClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
RadSites
*/
#ifndef ALPHASHAPE_H
#define ALPHASHAPE_H
#include <FileSystem.h>
#include <AbstractClass.h>
class ObjectClass;
class AlphaShapeClass : public AbstractClass
{
public:
enum {AbsID = abs_AlphaShape};
//Static
static DynamicVectorClass<AlphaShapeClass*>* Array;
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//IPersistStream
virtual HRESULT __stdcall Load(IStream* pStm) R0;
virtual HRESULT __stdcall Save(IStream* pStm,BOOL fClearDirty) R0;
//Destructor
virtual ~AlphaShapeClass() RX;
//AbstractClass
virtual eAbstractType WhatAmI() R0;
virtual int Size() R0;
//Constructor
AlphaShapeClass(ObjectClass* pObj,int nX,int nY) : AbstractClass(false)
{ JMP_THIS(0x420960); }
protected:
AlphaShapeClass() : AbstractClass(false) { };
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
ObjectClass* AttachedTo; //To which object is this AlphaShape attached?
RectangleStruct Rect;
SHPStruct* AlphaImage;
bool IsObjectGone; //Set if AttachedTo is NULL.
};
#endif