Initial commit
[amiga/OpenBoopsi.git] / gadgets / PIPWin / PIPClass.h
1 #ifndef PIPCLASS_H
2 #define PIPCLASS_H
3 /*
4 **      PIPClass.h
5 **
6 **      Copyright (C) 1996,97 by Bernardo Innocenti
7 **
8 **      'Picture In Picture' class built on top of the "gadgetclass".
9 **
10 */
11
12 #define PIPCLASS        "pipclass"
13 #define PIPVERS         1
14
15
16 Class   *MakePIPClass (void);
17 void     FreePIPClass (Class *PIPClass);
18
19
20
21 /********************/
22 /* Class Attributes */
23 /********************/
24
25 #define PIP_Dummy                       (TAG_USER | ('P'<<16) | ('I'<< 8))
26
27 #define PIPA_Screen                     (PIP_Dummy+1)
28         /* (IGS) Screen to capture data from
29          */
30
31 #define PIPA_BitMap                     (PIP_Dummy+2)
32         /* (IGS) BitMap to capture data from
33          */
34
35 #define PIPA_OffX                       (PIP_Dummy+3)
36 #define PIPA_OffY                       (PIP_Dummy+4)
37         /* (IGSNU) Offsett of the PIP view
38          */
39
40 #define PIPA_Width                      (PIP_Dummy+5)
41 #define PIPA_Height                     (PIP_Dummy+6)
42         /* (GN) Dimensions of the bitmap being captured.
43          */
44
45 #define PIPA_DisplayWidth               (PIP_Dummy+7)
46 #define PIPA_DisplayHeight              (PIP_Dummy+8)
47         /* (GN) Dimensions of the PIP display.
48          */
49
50 #define PIPA_MoveUp                     (PIP_Dummy+9)
51 #define PIPA_MoveDown           (PIP_Dummy+10)
52 #define PIPA_MoveLeft           (PIP_Dummy+11)
53 #define PIPA_MoveRight          (PIP_Dummy+12)
54         /* (S) Scroll the display towads a direction
55          */
56
57
58 /*****************/
59 /* Class Methods */
60 /*****************/
61
62 #define PIPM_REFRESH            (PIP_Dummy+1)
63 /*
64  * Tell the object to update its imagery to reflect any changes
65  * in the attached Screen or BitMap.
66  */
67
68 struct pippRefresh
69 {
70         ULONG   MethodID;
71         struct GadgetInfo       *pipp_GInfo;
72 };
73
74 #endif /* !PIPCLASS_H */