Namespaces | Data Structures | Functions | Variables

LibBoard Namespace Reference

Namespaces

namespace  Fonts

Data Structures

class  Board
 Class for EPS, FIG or SVG drawings. More...
class  Color
 Structure representing an RGB triple. More...
struct  Path
 A path, according to Postscript and SVG definition. More...
struct  Point
 Struct representing a 2D point. More...
struct  Rect
 Struct representing a rectangle on the plane. More...
struct  ShapeList
 A group of shapes. More...
struct  Group
 A group of shapes. A group is basically a ShapeList except that when rendered in either an SVG of a FIG file, it is a true compound element. More...
struct  Shape
 Abstract structure for a 2D shape. More...
struct  Dot
 A line between two points. More...
struct  Line
 A line between two points. More...
struct  Arrow
 A line between two points with an arrow at one extremity. More...
struct  Polyline
 A polygonal line described by a series of 2D points. More...
struct  Rectangle
 A rectangle. More...
struct  Image
 Used to draw image in figure. More...
struct  Triangle
 A triangle. Basically a Polyline with a convenient constructor. More...
struct  GouraudTriangle
 A triangle with shaded filling according to colors given for each vertex. More...
struct  Ellipse
 An ellipse. More...
struct  Circle
 A circle. More...
struct  Text
 A piece of text. More...
class  MessageStream
struct  Transform
struct  TransformEPS
 Structure representing a scaling and translation suitable for an EPS output. More...
struct  TransformFIG
 Structure representing a scaling and translation suitable for an XFig output. More...
struct  TransformSVG
 Structure representing a scaling and translation suitable for an SVG output. More...

Functions

Point operator+ (const Point &a, const Point &b)
Point operator- (const Point &a, const Point &b)
double operator* (const Point &a, const Point &b)
Point operator* (const Point &p, double s)
Point operator* (double s, const Point &p)
Point operator/ (const Point &p, double s)
bool operator== (const Point &a, const Point &b)
bool operator!= (const Point &a, const Point &b)
Rect operator|| (const Rect &rectA, const Rect &rectB)
Rect operator&& (const Rect &rectA, const Rect &rectB)
bool shapeGreaterDepth (const Shape *s1, const Shape *s2)
void secured_strncpy (char *dst, const char *src, size_t count)
void secured_ctime (char *str, const time_t *t, size_t count)

Variables

const char * PSFontNames []
const char * XFigPostscriptFontnames []
MessageStream error
MessageStream warning
MessageStream notice

Function Documentation

bool LibBoard::operator!= ( const Point &  a,
const Point &  b 
) [inline]
Rect LibBoard::operator&& ( const Rect &  rectA,
const Rect &  rectB 
)

Computes the intersection of two bounding boxes.

Parameters:
rectA A first rectangle.
rectB A second rectangle.
Returns:
The intersecting rectangle of two bounding boxes.
Point LibBoard::operator* ( const Point &  p,
double  s 
) [inline]
double LibBoard::operator* ( const Point &  a,
const Point &  b 
) [inline]
Point LibBoard::operator* ( double  s,
const Point &  p 
) [inline]
Point LibBoard::operator+ ( const Point &  a,
const Point &  b 
) [inline]
Point LibBoard::operator- ( const Point &  a,
const Point &  b 
) [inline]
Point LibBoard::operator/ ( const Point &  p,
double  s 
) [inline]
bool LibBoard::operator== ( const Point &  a,
const Point &  b 
) [inline]
Rect LibBoard::operator|| ( const Rect &  rectA,
const Rect &  rectB 
)

Computes the bounding box of two bounding boxes.

Parameters:
rectA A first rectangle.
rectB A second rectangle.
Returns:
The smallest rectangle that contains both rectA and rectB.
void LibBoard::secured_ctime ( char *  str,
const time_t *  t,
size_t  count 
) [inline]
void LibBoard::secured_strncpy ( char *  dst,
const char *  src,
size_t  count 
) [inline]
bool LibBoard::shapeGreaterDepth ( const Shape *  s1,
const Shape *  s2 
)

Compares two shapes according to their depths.

Parameters:
s1 A pointer to a first shape.
s2 A pointer to a second shape.
Returns:

Variable Documentation

const char * LibBoard::PSFontNames