1 /* placeobject.h
2  *
3  * $Id$
4  *
5  * Notice: This header file contains declarations of functions and types that
6  * are just used internally. All library functions and types that are supposed
7  * to be publicly accessable are defined in ./src/ming.h.
8  */
9 
10 #ifndef SWF_PLACEOBJECT_H_INCLUDED
11 #define SWF_PLACEOBJECT_H_INCLUDED
12 
13 #include "ming.h"
14 
15 typedef struct SWFPlaceObject2Block_s *SWFPlaceObject2Block;
16 
17 #define SWF_PLACE_HAS_ACTIONS     (1<<7)
18 #define SWF_PLACE_HAS_MASK        (1<<6)
19 #define SWF_PLACE_HAS_NAME        (1<<5)
20 #define SWF_PLACE_HAS_RATIO       (1<<4)
21 #define SWF_PLACE_HAS_CXFORM      (1<<3)
22 #define SWF_PLACE_HAS_MATRIX      (1<<2)
23 #define SWF_PLACE_HAS_CHARACTER   (1<<1)
24 #define SWF_PLACE_MOVE            (1<<0)
25 
26 SWFPlaceObject2Block newSWFPlaceObject2Block(int depth);
27 
28 void SWFPlaceObject2Block_setName(SWFPlaceObject2Block block,
29 				  const char *name);
30 
31 void SWFPlaceObject2Block_setRatio(SWFPlaceObject2Block block, int ratio);
32 
33 void SWFPlaceObject2Block_setDepth(SWFPlaceObject2Block block, int depth);
34 
35 void SWFPlaceObject2Block_setMaskLevel(SWFPlaceObject2Block block,
36 				       int masklevel);
37 
38 void SWFPlaceObject2Block_setCXform(SWFPlaceObject2Block block,
39 				    SWFCXform cXform);
40 
41 void SWFPlaceObject2Block_setColorAdd(SWFPlaceObject2Block block,
42 				      int r, int g, int b, int a);
43 
44 void SWFPlaceObject2Block_setColorMult(SWFPlaceObject2Block block,
45 				       float r, float g, float b, float a);
46 
47 void SWFPlaceObject2Block_setMatrix(SWFPlaceObject2Block block,
48 				    SWFMatrix matrix);
49 
50 void SWFPlaceObject2Block_setCharacter(SWFPlaceObject2Block block,
51 				       SWFCharacter character);
52 
53 void SWFPlaceObject2Block_setMove(SWFPlaceObject2Block block);
54 
55 #define SWF_PLACEACTION_ONLOAD      (1<<0)
56 #define SWF_PLACEACTION_ENTERFRAME  (1<<1)
57 #define SWF_PLACEACTION_UNLOAD      (1<<2)
58 #define SWF_PLACEACTION_MOUSEMOVE   (1<<3)
59 #define SWF_PLACEACTION_MOUSEDOWN   (1<<4)
60 #define SWF_PLACEACTION_MOUSEUP     (1<<5)
61 #define SWF_PLACEACTION_KEYDOWN     (1<<6)
62 #define SWF_PLACEACTION_KEYUP       (1<<7)
63 #define SWF_PLACEACTION_DATA        (1<<8)
64 
65 void SWFPlaceObject2Block_addAction(SWFPlaceObject2Block block,
66 				    SWFAction action, int flags);
67 
68 #endif /* SWF_PLACEOBJECT_H_INCLUDED */
69