~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to libcore/styles.h

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifndef GNASH_STYLES_H
10
10
#define GNASH_STYLES_H
11
11
 
12
 
#include "impl.h"
13
12
#include "RGBA.h"
14
 
#include "swf.h"
 
13
#include "SWF.h"
15
14
 
16
15
namespace gnash {
17
16
 
18
17
class SWFStream;
19
18
class movie_definition;
 
19
class RunResources;
20
20
 
21
21
  typedef enum { CAP_ROUND=0, CAP_NONE=1, CAP_SQUARE=2 } cap_style_e;
22
22
  typedef enum { JOIN_ROUND=0, JOIN_BEVEL=1, JOIN_MITER=2 } join_style_e;
83
83
        /// Throw a ParserException if there's no enough bytes in the
84
84
        /// currently opened tag for reading. See stream::ensureBytes()
85
85
        ///
86
 
        void    read(SWFStream& in, SWF::TagType t, movie_definition& md);
 
86
        void read(SWFStream& in, SWF::TagType t, movie_definition& md,
 
87
            const RunResources& r);
87
88
        
88
89
        /// Read two lines styles from the SWF stream
89
90
        /// at the same time -- this is used in morphing.
90
91
        void read_morph(SWFStream& in, SWF::TagType t, movie_definition& md,
91
 
                line_style *pOther);
 
92
            const RunResources& r, line_style *pOther);
92
93
 
93
94
        /// Return thickness of the line, in TWIPS
94
95
        boost::uint16_t getThickness() const