Gnash  0.8.11dev
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

§ ClipBounds

§ PathPtrVec

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

§ PathRefs

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

§ PathVec

typedef std::vector<Path> gnash::renderer::openvg::PathVec

Function Documentation

§ closepath()

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

Close the VGPath started by startpath()

Parameters
pathThe VGPath to close
Returns
nothing

§ create_handler()

DSOEXPORT Renderer * gnash::renderer::openvg::create_handler ( const char *  )

§ for_each()

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 
)

§ preparepath()

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 gnash::Edge::ap, gnash::Edge::cp, gnash::image::end(), MAX_SEG, start, gnash::Edge::straight(), gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.

§ startpath()

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.