Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::SWF::Subshape Class Reference

#include <ShapeRecord.h>

Public Types

typedef std::vector< FillStyle > FillStyles
 
typedef std::vector< LineStyle > LineStyles
 
typedef std::vector< Path > Paths
 

Public Member Functions

const FillStyles & fillStyles () const
 
FillStyles & fillStyles ()
 
const LineStyles & lineStyles () const
 
LineStyles & lineStyles ()
 
const Paths & paths () const
 
Paths & paths ()
 
Path & currentPath ()
 For DynamicShape. More...
 
void addFillStyle (const FillStyle &fs)
 
void addPath (const Path &path)
 
void addLineStyle (const LineStyle &ls)
 
void clear ()
 
SWFRect computeBounds (int swfVersion) const
 Find the bounds of this subhape, and return them in a rectangle. More...
 

Member Typedef Documentation

typedef std::vector<Path> gnash::SWF::Subshape::Paths

Member Function Documentation

void gnash::SWF::Subshape::addFillStyle ( const FillStyle &  fs)
void gnash::SWF::Subshape::addLineStyle ( const LineStyle &  ls)
inline
void gnash::SWF::Subshape::addPath ( const Path &  path)
inline
void gnash::SWF::Subshape::clear ( )
inline
SWFRect gnash::SWF::Subshape::computeBounds ( int  swfVersion) const

Find the bounds of this subhape, and return them in a rectangle.

References gnash::key::p.

Referenced by clear().

Path& gnash::SWF::Subshape::currentPath ( )
inline

For DynamicShape.

TODO: rewrite DynamicShape to push paths when they're finished and drop this.

References addFillStyle().

Referenced by gnash::DynamicShape::add_path().

const FillStyles& gnash::SWF::Subshape::fillStyles ( ) const
inline
FillStyles& gnash::SWF::Subshape::fillStyles ( )
inline
const LineStyles& gnash::SWF::Subshape::lineStyles ( ) const
inline
LineStyles& gnash::SWF::Subshape::lineStyles ( )
inline
const Paths& gnash::SWF::Subshape::paths ( ) const
inline
Paths& gnash::SWF::Subshape::paths ( )
inline

The documentation for this class was generated from the following files: