1 //========================================================================
5 //========================================================================
12 #ifdef USE_GCC_PRAGMAS
16 #include "SplashTypes.h"
23 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
27 #define splashLineCapButt 0
28 #define splashLineCapRound 1
29 #define splashLineCapProjecting 2
31 //------------------------------------------------------------------------
33 //------------------------------------------------------------------------
35 #define splashLineJoinMiter 0
36 #define splashLineJoinRound 1
37 #define splashLineJoinBevel 2
39 //------------------------------------------------------------------------
41 //------------------------------------------------------------------------
46 // Create a new state object, initialized with default settings.
47 SplashState(int width
, int height
, GBool vectorAntialias
,
48 SplashScreenParams
*screenParams
);
49 SplashState(int width
, int height
, GBool vectorAntialias
,
50 SplashScreen
*screenA
);
52 // Copy a state object.
53 SplashState
*copy() { return new SplashState(this); }
57 // Set the stroke pattern. This does not copy <strokePatternA>.
58 void setStrokePattern(SplashPattern
*strokePatternA
);
60 // Set the fill pattern. This does not copy <fillPatternA>.
61 void setFillPattern(SplashPattern
*fillPatternA
);
63 // Set the screen. This does not copy <screenA>.
64 void setScreen(SplashScreen
*screenA
);
66 // Set the line dash pattern. This copies the <lineDashA> array.
67 void setLineDash(SplashCoord
*lineDashA
, int lineDashLengthA
,
68 SplashCoord lineDashPhaseA
);
70 // Set the soft mask bitmap.
71 void setSoftMask(SplashBitmap
*softMaskA
);
75 SplashState(SplashState
*state
);
77 SplashCoord matrix
[6];
78 SplashPattern
*strokePattern
;
79 SplashPattern
*fillPattern
;
81 SplashBlendFunc blendFunc
;
82 SplashCoord strokeAlpha
;
83 SplashCoord fillAlpha
;
84 SplashCoord lineWidth
;
87 SplashCoord miterLimit
;
89 SplashCoord
*lineDash
;
91 SplashCoord lineDashPhase
;
94 SplashBitmap
*softMask
;
96 GBool inNonIsolatedGroup
;
98 SplashState
*next
; // used by Splash class