cheshirekow  v0.1.0
fontconfig::Matrix Struct Reference

wraps FcMatrix with it's member methods More...

#include <cpp_fontconfig/Matrix.h>

Inheritance diagram for fontconfig::Matrix:

Public Member Functions

bool equal (const Matrix &other) const
 returns true if the two matrices are equal More...
 
void init ()
 initializes the matrix to be the identity matrix More...
 
 Matrix ()
 Default constructor, uninitialized memory. More...
 
 Matrix (const Matrix &other)
 copy constructor More...
 
Matrixoperator= (const Matrix &other)
 assignment operator, copies the values of the matrix in other More...
 
void rotate (double c, double s)
 rotate a matrix More...
 
void scale (double sx, double sy)
 scale a matrix More...
 
void shear (double sh, double sv)
 shear a matrix More...
 

Detailed Description

wraps FcMatrix with it's member methods

Matrix inherits from matrix (lowercase) which is a struct with the same definition as FcMatrix. Furthermore Matrix does not declare any virtual members so it is binary compatable with FcMatrix and can be casted without reserve

Definition at line 42 of file Matrix.h.

Constructor & Destructor Documentation

fontconfig::Matrix::Matrix ( )
inline

Default constructor, uninitialized memory.

Definition at line 47 of file Matrix.h.

fontconfig::Matrix::Matrix ( const Matrix other)

copy constructor

stack-allocates a new matrix and copies the contents from other

Member Function Documentation

bool fontconfig::Matrix::equal ( const Matrix other) const

returns true if the two matrices are equal

void fontconfig::Matrix::init ( )

initializes the matrix to be the identity matrix

Matrix& fontconfig::Matrix::operator= ( const Matrix other)

assignment operator, copies the values of the matrix in other

void fontconfig::Matrix::rotate ( double  c,
double  s 
)

rotate a matrix

void fontconfig::Matrix::scale ( double  sx,
double  sy 
)

scale a matrix

void fontconfig::Matrix::shear ( double  sh,
double  sv 
)

shear a matrix


The documentation for this struct was generated from the following file: