gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server styles.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server styles.h
Date: Wed, 14 Feb 2007 01:40:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/02/14 01:40:27

Modified files:
        server         : styles.h 

Log message:
        Provide a constructor with explicit values for line_style

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/styles.h?cvsroot=gnash&r1=1.18&r2=1.19

Patches:
Index: styles.h
===================================================================
RCS file: /sources/gnash/gnash/server/styles.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- styles.h    13 Feb 2007 15:19:32 -0000      1.18
+++ styles.h    14 Feb 2007 01:40:27 -0000      1.19
@@ -5,7 +5,7 @@
 
 // line style types.
 
-/* $Id: styles.h,v 1.18 2007/02/13 15:19:32 strk Exp $ */
+/* $Id: styles.h,v 1.19 2007/02/14 01:40:27 strk Exp $ */
 
 #ifndef GNASH_STYLES_H
 #define GNASH_STYLES_H
@@ -32,9 +32,34 @@
 {
 public:
        line_style();
+
+       /// Construct a line style with explicit values
+       ///
+       /// @param width
+       ///     Thickness of line, in TWIPS. 
+       ///     Zero for hair line
+       ///
+       /// @param color
+       ///     Line color
+       ///
+       line_style(uint16_t width, const rgba& color)
+               :
+               m_width(width),
+               m_color(color)
+       {
+       }
+
+       /// Read the line style from an SWF stream
+       //
+       /// Stream is assumed to be positioned at 
+       /// the right place.
+       ///
        void    read(stream* in, int tag_type);
        
+       /// Return thickness of the line, in TWIPS
        uint16_t        get_width() const { return m_width; }
+
+       /// Return line color and alpha
        const rgba&     get_color() const { return m_color; }
        
 private:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]