Gnash  0.8.10
Classes | Typedefs | Functions
gnash::renderer::openvg Namespace Reference

Classes

class  OpenVGBitmap
class  Renderer_ovg
struct  StyleHandler
 Transfer FillStyles to OpenVG styles. More...

Typedefs

typedef std::vector< const Path * > PathPtrVec
typedef std::vector< const Path * > PathRefs
typedef std::vector< PathPathVec
typedef std::vector
< geometry::Range2d< int > > 
ClipBounds

Functions

void startpath (VGPath path, const int x, const int y)
void closepath (VGPath path)
void preparepath (VGPath path, const std::vector< Edge > &edges, const float &anchor_x, const float &anchor_y)
template<typename C , typename T , typename R , typename A >
void for_each (C &container, R(T::*pmf)(const A &), const A &arg)
DSOEXPORT Renderercreate_handler (const char *)

Typedef Documentation

typedef std::vector< const Path * > gnash::renderer::openvg::PathPtrVec
typedef std::vector<const Path*> gnash::renderer::openvg::PathRefs
typedef std::vector<Path> gnash::renderer::openvg::PathVec

Function Documentation

void gnash::renderer::openvg::closepath ( VGPath  path) [inline]

Close the VGPath started by startpath()

Parameters:
pathThe VGPath to close
Returns:
nothing
DSOEXPORT Renderer * gnash::renderer::openvg::create_handler ( const char *  )
template<typename C , typename T , typename R , typename A >
void gnash::renderer::openvg::for_each ( C &  container,
R(T::*)(const A &)  pmf,
const A &  arg 
)
void gnash::renderer::openvg::preparepath ( VGPath  path,
const std::vector< Edge > &  edges,
const float &  anchor_x,
const float &  anchor_y 
) [inline]

Add a series of edges to the existing path created by startpath()

Parameters:
pathThe VGPath to append segments to
edgesThe segments to append to the path
anchor_xThe X coordinate to start from
anchor_yThe Y coordinate to start from
Returns:
nothing

References MAX_SEG, start, gnash::image::end(), gnash::Edge::ap, gnash::geometry::Point2d::x, gnash::geometry::Point2d::y, gnash::Edge::straight(), and gnash::Edge::cp.

void gnash::renderer::openvg::startpath ( VGPath  path,
const int  x,
const int  y 
) [inline]

Start a VGPath by moving to a specified location

Parameters:
pathThe VGPath to start
Returns:
nothing

References x, and y.