1 //========================================================================
5 //========================================================================
12 #ifdef USE_GCC_PRAGMAS
16 #include "SplashTypes.h"
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
26 #define splashLineCapButt 0
27 #define splashLineCapRound 1
28 #define splashLineCapProjecting 2
30 //------------------------------------------------------------------------
32 //------------------------------------------------------------------------
34 #define splashLineJoinMiter 0
35 #define splashLineJoinRound 1
36 #define splashLineJoinBevel 2
38 //------------------------------------------------------------------------
40 //------------------------------------------------------------------------
45 // Create a new state object, initialized with default settings.
46 SplashState(int width, int height);
48 // Copy a state object.
49 SplashState *copy() { return new SplashState(this); }
53 // Set the stroke pattern. This does not copy <strokePatternA>.
54 void setStrokePattern(SplashPattern *strokePatternA);
56 // Set the fill pattern. This does not copy <fillPatternA>.
57 void setFillPattern(SplashPattern *fillPatternA);
59 // Set the screen. This does not copy <screenA>.
60 void setScreen(SplashScreen *screenA);
62 // Set the line dash pattern. This copies the <lineDashA> array.
63 void setLineDash(SplashCoord *lineDashA, int lineDashLengthA,
64 SplashCoord lineDashPhaseA);
68 SplashState(SplashState *state);
70 SplashPattern *strokePattern;
71 SplashPattern *fillPattern;
73 SplashCoord lineWidth;
76 SplashCoord miterLimit;
78 SplashCoord *lineDash;
80 SplashCoord lineDashPhase;
83 SplashState *next; // used by Splash class