swfrndr.h File Reference

(r1785/r1282)

#include "fillramp.h"
#include "vectrndr.h"
#include "nodetext.h"
#include "nodeshad.h"
#include "swfbitmp.h"
#include "swftext.h"
#include "swffont.h"
#include "swfshape.h"
#include "swfbuttn.h"
#include "swfplace.h"
#include "swfsprit.h"

Go to the source code of this file.

Classes

class  FlashRenderRegion
 Provides the necessary functions to convert image data stored in the Camelot tree into the correct values for exporting to the Flash 4 format, and output these to the relevant device context. More...

Functions

template<class T>
Max (T InputA, T InputB)
 Replacement for the Max macro. It's type safe, and can operate on any C++ data type.
template<class T>
Max (T InputA, T InputB, T InputC, T InputD)
 Wrapper around the Max function to return the maximum value from four values. (Used for finding the maximum value for the extends of a bounding rectangle.
template<class T>
Min (T InputA, T InputB)
 Replacement for the Min macro. It's type safe, and can operate on any C++ data type.
template<class T>
Min (T InputA, T InputB, T InputC, T InputD)
 Wrapper around the Min function to return the minimum value from four values. (Used for finding the minimum value for the extends of a bounding rectangle.
template<class T>
Absol (T a)
 Replacement for the Abs macro. It's got the advantage of being easier to debug, and fully type safe.


Function Documentation

template<class T>
T Absol a  ) 
 

Replacement for the Abs macro. It's got the advantage of being easier to debug, and fully type safe.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/8/99
Returns:
The maximum of either a or b.
See also:
-

Definition at line 214 of file swfrndr.h.

00215 {
00216     if ( a < 0 )
00217         return -a;
00218     else
00219         return a;
00220 }

template<class T>
T Max InputA,
InputB,
InputC,
InputD
 

Wrapper around the Max function to return the maximum value from four values. (Used for finding the maximum value for the extends of a bounding rectangle.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/8/99
Returns:
The maximum value of the four inputs.
See also:
-

Definition at line 156 of file swfrndr.h.

00157 {
00158     return Max ( Max ( InputA, InputB ), Max ( InputC, InputD ) );
00159 }

template<class T>
T Max InputA,
InputB
 

Replacement for the Max macro. It's type safe, and can operate on any C++ data type.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/8/99
Returns:
The maximum of either InputA or InputB.
See also:
-

Definition at line 134 of file swfrndr.h.

00135 {
00136     if ( InputA > InputB )
00137         return InputA;
00138     else
00139         return InputB;
00140 }

template<class T>
T Min InputA,
InputB,
InputC,
InputD
 

Wrapper around the Min function to return the minimum value from four values. (Used for finding the minimum value for the extends of a bounding rectangle.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/11/99
Returns:
The minimum value of the four inputs.
See also:
-

Definition at line 196 of file swfrndr.h.

00197 {
00198     return Min ( Min ( InputA, InputB ), Min ( InputC, InputD ) );
00199 }

template<class T>
T Min InputA,
InputB
 

Replacement for the Min macro. It's type safe, and can operate on any C++ data type.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/11/99
Returns:
The minimum of either InputA or InputB.
See also:
-

Definition at line 174 of file swfrndr.h.

00175 {
00176     if (  ( InputA ) <  ( InputB ) )
00177         return InputA;
00178     else
00179         return InputB;
00180 }


Generated on Sat Nov 10 03:49:21 2007 for Camelot by  doxygen 1.4.4