synfig-core  1.0.3
Classes | Namespaces | Macros | Enumerations
target.h File Reference

Target Class Implementation. More...

#include <sigc++/signal.h>
#include "string.h"
#include <utility>
#include <map>
#include <ETL/handle>
#include "renddesc.h"
#include "color.h"
#include "canvas.h"
#include "targetparam.h"

Go to the source code of this file.

Classes

class  synfig::Target
 Used to produce rendered animations of the documents. More...
struct  synfig::Target::BookEntry

Namespaces

namespace  synfig
 Where every function and class of the synfig library can be found.

Macros

#define SYNFIG_TARGET_MODULE_EXT
#define SYNFIG_TARGET_SET_NAME(class, x)   const char class::name__[]=x
 Sets the name of the target.
#define SYNFIG_TARGET_SET_EXT(class, x)   const char class::ext__[]=x
 Sets the primary file extension of the target.
#define SYNFIG_TARGET_SET_VERSION(class, x)   const char class::version__[]=x
 Sets the version of the target.
#define SYNFIG_TARGET_SET_CVS_ID(class, x)   const char class::cvs_id__[]=x
 Sets the CVS ID of the target.
#define SYNFIG_TARGET_INIT(class)

Enumerations

enum  synfig::TargetAlphaMode { synfig::TARGET_ALPHA_MODE_KEEP, synfig::TARGET_ALPHA_MODE_FILL, synfig::TARGET_ALPHA_MODE_REDUCE, synfig::TARGET_ALPHA_MODE_EXTRACT }

Detailed Description

Target Class Implementation.

$Id$

Macro Definition Documentation

#define SYNFIG_TARGET_MODULE_EXT
Value:
public: static const char name__[], version__[], ext__[], cvs_id__[];\
static Target* create (const char *filename, synfig::TargetParam p);

Defines various variables and the create method, common for all Targets. To be used in the private part of the target class definition.

#define SYNFIG_TARGET_SET_NAME (   class,
 
)    const char class::name__[]=x

Sets the name of the target.

#define SYNFIG_TARGET_SET_EXT (   class,
 
)    const char class::ext__[]=x

Sets the primary file extension of the target.

#define SYNFIG_TARGET_SET_VERSION (   class,
 
)    const char class::version__[]=x

Sets the version of the target.

#define SYNFIG_TARGET_SET_CVS_ID (   class,
 
)    const char class::cvs_id__[]=x

Sets the CVS ID of the target.

#define SYNFIG_TARGET_INIT (   class)
Value:
synfig::Target* class::create (const char *filename, \
{ return new class(filename, p); }

Defines implementation of the create method for the target

Parameters
filenameThe file name to be created by the target.
pThe parameters passed to the target (bit rate and vcodec)