Simple++
Powerfull and lightning fast C++ Library
Public Member Functions | List of all members
Graphic::FreeTypeChar Class Reference

#include <FreeTypeChar.h>

Inheritance diagram for Graphic::FreeTypeChar:
Graphic::_Image< T > BasicIO BasicSimpleIO

Public Member Functions

 FreeTypeChar (FT_Face ftFace, UTF8String::CodePoint codePoint)
 Constructor. More...
 
 FreeTypeChar (const FreeTypeChar &c)
 Copy Constructor. More...
 
 FreeTypeChar (std::fstream *fileStream)
 Constructor from a file Stream. More...
 
 FreeTypeChar (FreeTypeChar &&c)
 move Constructor More...
 
 ~FreeTypeChar ()
 
FreeTypeCharoperator= (const FreeTypeChar &c)
 Copy operator. More...
 
FreeTypeCharoperator= (FreeTypeChar &&c)
 move operator More...
 
float getHoriBearingX () const
 return the X coordinate of the horizontal bearing of this glyph More...
 
float getHoriBearingY () const
 return the Y coordinate of the horizontal bearing of this glyph More...
 
const Math::vec2fgetHoriBearing () const
 return the the horizontal bearing of this glyph More...
 
float getHoriOffsetY () const
 Get the Y coordinate of the Horizontal offset. More...
 
float getHoriAdvance () const
 Get the advance of this glyph when used horizontally. More...
 
UTF8String::CodePoint getCodePoint () const
 get the code point of this character More...
 
bool read (std::fstream *fileStream)
 read from a file stream More...
 
bool write (std::fstream *fileStream) const
 write this object as binary into a file stream More...
 
- Public Member Functions inherited from Graphic::_Image< T >
template<typename C >
 _Image (const _Image< C > &image)
 copy constructor with an another storage type More...
 
 _Image (Format format=Format::RGB)
 Empty constructor, create an image unallocated of size (0:0) More...
 
 _Image (const Math::Vec2< Size > &size, Format format=Format::RGB)
 Constructor to create an initialized image of specified size. More...
 
 _Image (std::fstream *fileStream)
 create a new image data from a file stream. More...
 
 _Image (const T *data, const Math::Vec2< Size > &size, LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false, size_t stride=0)
 Constructor to create an image from a data buffer. More...
 
 _Image (const _Image< T > &image)
 copy constructor More...
 
 _Image (_Image< T > &&image)
 move constructor More...
 
 ~_Image ()
 
const Math::Vec2< Size > & getSize () const
 get the actual size (width:height) of the image More...
 
Size getWidth () const
 get the actual width of the image More...
 
Size getHeight () const
 get the actual height of the image More...
 
size_t getNbPixels () const
 get the number of pixels of this image More...
 
void clear (const Math::Vec2< Size > &size)
 reset this image with a new size. More...
 
void clear (const Math::Vec2< Size > &size, Format format)
 reset this image with a new size and a new format More...
 
void setDatas (const T *data, const Math::Vec2< Size > &size, LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false, size_t stride=0)
 set the data from an another data buffer. More...
 
_Image< T > * createMipmap ()
 create a new image from this one with a size of width / 2 and height / 2 More...
 
const T * getDatas () const
 get the data buffer of this image More...
 
T * getDatas ()
 get the data buffer of this image More...
 
const T * getDatas (Size x, Size y) const
 get the data buffer of this image starting with the selected pixel More...
 
T * getDatas (Size x, Size y)
 get the data buffer of this image starting with the selected pixel More...
 
const T * getPixel (Size x, Size y) const
 get a pixel from this image More...
 
T * getPixel (Size x, Size y)
 get a pixel from this image More...
 
size_t getDataOffset (Size x, Size y) const
 get the offset of pixel from the beginning of the data More...
 
void setPixel (Size x, Size y, const T *p)
 set a pixel inside this image More...
 
template<typename C >
_Image< T > & operator= (const _Image< C > &image)
 copy operator with another type More...
 
_Image< T > & operator= (const _Image< T > &image)
 copy operator More...
 
_Image< T > & operator= (_Image< T > &&image)
 move operator More...
 
bool read (std::fstream *fileStream)
 read from a file stream More...
 
bool write (std::fstream *fileStream) const
 write this object as binary into a file stream More...
 
Format getFormat () const
 get the format of this image More...
 
unsigned int getNbComponents () const
 get the number of components per pixels of this image. More...
 
_Image< T > toFormat (Format newFormat, ConversionMode conversionMode=ConversionMode::Luminance) const
 Create a new Image from this one with a new format. More...
 
template<typename C , typename InterFunc >
size_t computeInterpolation (const GradientHorizontal< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const
 Compute the interpolation for horizontal gradient. More...
 
template<typename C , typename InterFunc >
size_t computeInterpolation (const GradientVertical< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const
 Compute the interpolation for vertical gradient. More...
 
template<typename C , typename InterFunc >
size_t computeInterpolation (const GradientLinear< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const
 Compute the interpolation for Linear gradient. More...
 
template<typename C , typename InterFunc >
size_t computeInterpolation (const GradientRadial< C, InterFunc > &gradient, C **buffer, const Rectangle &rectangle, Math::Rectangle< Size > *clampedRectangle) const
 Compute the interpolation for Radial gradient. More...
 
template<typename ThreshFunc >
void threshold (const ColorRGBA< T > &colorTrue, const ColorRGBA< T > &colorFalse, const ThreshFunc &threshFunc)
 Threshold the image with a specified functor. More...
 
void threshold (const ColorRGBA< T > &colorOver, const ColorRGBA< T > &colorUnder, const ColorRGBA< T > &limit)
 Threshold the image with a specified threshold. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawLine (const LineF &l, const ColorR< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an anti aliased line from point p1 to point p2 More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawLine (const LineF &l, const ColorRGB< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an anti aliased line from point p1 to point p2 More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawLine (const LineF &l, const ColorRGBA< T > &color, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an anti aliased line from point p1 to point p2 More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawLineFunctor (const LineF &l, ColorFunc &colorFunc, unsigned int thickness=1, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an anti aliased line from point p1 to point p2 More...
 
template<typename Functor >
void setPixels (Functor &functor, const Rectangle &rectangle)
 Set a functor to each pixels in the rectangle of this image. More...
 
template<typename Functor >
void setPixels (Functor &functor)
 Set a functor to each pixels of this image. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const ColorR< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const ColorRGB< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const ColorRGBA< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename C , typename InterFunc >
void drawRectangle (const Rectangle &rectangle, const GradientHorizontal< C, InterFunc > &gradient)
 draw a rectangle inside this image. More...
 
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const GradientLinear< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const GradientRadial< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename C , typename InterFunc , typename BlendFunc >
void drawRectangle (const Rectangle &rectangle, const GradientHorizontal< C, InterFunc > &gradient, const BlendFunc &blendFunc)
 draw a rectangle inside this image. More...
 
template<typename C , typename InterFunc , typename BlendFunc = BlendingFunc::Normal>
void drawRectangle (const Rectangle &rectangle, const GradientVertical< C, InterFunc > &gradient, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawRectangleFunctor (const Rectangle &rectangle, ColorFunc &colorFunc, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a rectangle inside this image. More...
 
void fillImage (const T *color)
 fill the complete image with a color. param color pointer to a color with the same number of component of this image More...
 
void fillImage (const T *color, const Rectangle &rectangle)
 fill the complete image with a color. More...
 
void fillImage (const ColorR< T > &color)
 fill the complete image with a color. More...
 
void fillImage (const ColorRGB< T > &color)
 fill the complete image with a color. More...
 
void fillImage (const ColorRGBA< T > &color)
 fill the complete image with a color. More...
 
void fillImage (const ColorR< T > &color, const Rectangle &rectangle)
 fill the complete image with a color. More...
 
void fillImage (const ColorRGB< T > &color, const Rectangle &rectangle)
 fill the complete image with a color. More...
 
void fillImage (const ColorRGBA< T > &color, const Rectangle &rectangle)
 fill the complete image with a color. More...
 
template<typename C , typename InterFunc >
void fillImage (const GradientHorizontal< C, InterFunc > &gradient, const Rectangle &rectangle)
 fill the complete image with a horizontal gradient. More...
 
template<typename C , typename InterFunc >
void fillImage (const GradientVertical< C, InterFunc > &gradient, const Rectangle &rectangle)
 fill the complete image with a vertical gradient. More...
 
template<typename C , typename InterFunc >
void fillImage (const GradientLinear< C, InterFunc > &gradient, const Rectangle &rectangle)
 fill the complete image with a Linear gradient. More...
 
template<typename C , typename InterFunc >
void fillImage (const GradientRadial< C, InterFunc > &gradient, const Rectangle &rectangle)
 fill the complete image with a Radial gradient. More...
 
void fillImage (const Point &point, const _Image< T > &image)
 fill an another image into this one (no blending will be applied) More...
 
void fillImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image)
 fill an another image into this one (no blending will be applied) More...
 
void drawImage (const Point &point, const _Image< T > &image)
 draw an another image into this one More...
 
void drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image)
 draw an another image into this one More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an another image into this one with a custom blending function More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorR< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorRGB< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorRGBA< T > &color, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorR< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorRGB< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const ColorRGBA< T > &color, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawImageFunctor (const Point &point, ColorFunc &colorFunc, const Rectangle &rectangle, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw a color to this image using a mask and a rectangle to know the part of the mask to use. More...
 
void drawImage (const Point &point, const _Image< T > &image, const _Image< T > &maskImage)
 draw an another image into this one with a mask image More...
 
void drawImage (const Point &point, const _Image< T > &image, const Point &maskPoint, const _Image< T > &maskImage)
 draw an another image into this one with a mask image More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawImage (const Point &point, const Rectangle &rectangle, const _Image< T > &image, const Point &maskPoint, const _Image< T > &maskImage, const BlendFunc &blendFunc=BlendingFunc::Normal())
 draw an another image into this one with a mask image More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawStrokeFunctor (const Point &point, const _Image< T > &image, unsigned int thickness, ColorFunc &colorFunc, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal())
 Stroke the image with a specified color functor. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorR< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal())
 Stroke the image with a specified color. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorRGB< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal())
 Stroke the image with a specified color. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawStroke (const Point &point, const _Image< T > &image, unsigned int thickness, const ColorRGBA< T > &color, StrokeType strokeType=StrokeType::Middle, const BlendFunc &blendFunc=BlendingFunc::Normal())
 Stroke the image with a specified color. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorR< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a Cubic Bezier curve. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorRGB< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawBezierCurve (const PointF &p0, const PointF &p1, const PointF p2, const PointF &p3, unsigned int thickness, ColorRGBA< T > &color, const BlendFunc &blendFunc=BlendingFunc::Normal())
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawGraphValuesFunctor (const Vector< Math::Vec2< float >> &values, const Rectangle &rectangle, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal())
 draw points (x,y) as a graph inside a rectangle More...
 
template<typename F , int N>
_Image< T > applyFilter (const F(&filter)[N], ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const
 apply a symmetrical convolution filter (Gaussian blur for example) More...
 
template<typename F >
_Image< T > applyFilter (const F *filter, size_t size, ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const
 apply a symmetrical convolution filter (Gaussian blur for example) More...
 
_Image< T > applyGaussianBlur (size_t radius, ConvolutionMode convolutionMode=ConvolutionMode::ExtendedSize, const ColorRGBA< T > &color=ColorRGBA< T >::null) const
 apply a Gaussian Blur Filter More...
 
Math::Rectangle< SizeclampRectangle (const Rectangle &rectangle) const
 Clamp a rectangle inside the image. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorR< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a rounded rectangle with a color. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorRGB< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a rounded rectangle with a color. More...
 
template<typename BlendFunc = BlendingFunc::Normal>
void drawRectangleRounded (const Rectangle &rectangle, unsigned int radius, const ColorRGBA< T > &color, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a rounded rectangle with a color. More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawRectangleRoundedFunctor (const Rectangle &rectangle, unsigned int radius, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a rounded rectangle with a color Functor. More...
 
_Image< T > resample (const Math::Vec2< Size > &newSize, ResamplingMode resamplingMode=ResamplingMode::Nearest) const
 Resize the image with re sampling and return the new one. More...
 
template<typename ColorFunc , typename BlendFunc = BlendingFunc::Normal>
void drawPolygonFunctor (const Math::Vec2< float > *vertices, typename Vector< Math::Vec2< float >>::Size nbVertices, const Rectangle &rectangle, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a filed Polygon. More...
 
template<typename ColorFunc , typename BlendFunc >
void drawDiskFunctor (const Point &p, float radius, ColorR< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a filed Disk. More...
 
template<typename ColorFunc , typename BlendFunc >
void drawDiskFunctor (const Point &p, float radius, ColorRGB< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a filed Disk. More...
 
template<typename ColorFunc , typename BlendFunc >
void drawDiskFunctor (const Point &p, float radius, ColorRGBA< T > &c, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a filed Disk. More...
 
template<typename ColorFunc , typename BlendFunc >
void drawDiskFunctor (const Point &p, float radius, ColorFunc &colorFunc, BlendFunc &blendFunc=BlendingFunc::Normal())
 Draw a filed Disk. More...
 
template<typename K >
computeGaussianKernel (K *kernel, size_t size, const float &sigma)
 compute the Vertical/Horizontal Gaussian Kernel (K : Type of Values in your Kernel ) More...
 
template<>
float getComponentMaxValue ()
 
template<>
double getComponentMaxValue ()
 
- Public Member Functions inherited from BasicSimpleIO
bool read (std::fstream *fileStream)
 read from a file stream More...
 
bool write (std::fstream *fileStream) const
 write this object as binary into a file stream More...
 

Additional Inherited Members

- Public Types inherited from Graphic::_Image< T >
enum  ResamplingMode { ResamplingMode::Nearest, ResamplingMode::Linear, ResamplingMode::Lanczos }
 
enum  ConvolutionMode { ConvolutionMode::NormalSize, ConvolutionMode::ExtendedSize }
 
enum  ConversionMode { ConversionMode::Luminance, ConversionMode::Trunquate, ConversionMode::Alpha }
 
enum  StrokeType { StrokeType::Outside, StrokeType::Inside, StrokeType::Middle }
 
typedef _ImageSumType< T >::Type SumType
 Type used to sum multiple pixels components. More...
 
- Static Public Member Functions inherited from Graphic::_Image< T >
static T getComponentMaxValue ()
 get the maximum value of a color component More...
 
static T getComponentMinValue ()
 get the maximum value of a color component More...
 
template<typename K >
static K getKernelSumNbBits ()
 Get the number of bits of the sum of a kernel depending of the types used. More...
 
template<typename K , size_t N>
static K computeGaussianKernel (K(&kernel)[N], const float &sigma)
 compute the Vertical/Horizontal Gaussian Kernel (K : Type of Values in your Kernel, N : Size of your kernel (has to be odd)) More...
 
template<typename K , size_t N>
static K computeGaussianKernel (K(&kernel)[N])
 compute the Vertical/Horizontal Gaussian Kernel (K : Type of Values in your Kernel, N : Size of your kernel (has to be odd)) More...
 
static float computeGaussianKernel (float *kernel, size_t size, const float &sigma)
 
static double computeGaussianKernel (double *kernel, size_t size, const double &sigma)
 
template<typename K >
static K computeGaussianKernel (K *kernel, size_t size)
 compute the Vertical/Horizontal Gaussian Kernel (K : Type of Values in your Kernel ) More...
 
static float computeGaussianKernel (float *kernel, size_t size)
 
static double computeGaussianKernel (double *kernel, size_t size)
 

Constructor & Destructor Documentation

Graphic::FreeTypeChar::FreeTypeChar ( FT_Face  ftFace,
UTF8String::CodePoint  codePoint 
)

Constructor.

Parameters
ftFaceFreeType char object used to create this glyph.
UnicodecodePoint representing this char.
Graphic::FreeTypeChar::FreeTypeChar ( const FreeTypeChar c)

Copy Constructor.

Parameters
cChar to be copied.
Graphic::FreeTypeChar::FreeTypeChar ( std::fstream *  fileStream)

Constructor from a file Stream.

Parameters
fileStreamfile stream to read
Graphic::FreeTypeChar::FreeTypeChar ( FreeTypeChar &&  c)

move Constructor

Parameters
cChar to be moved.
Graphic::FreeTypeChar::~FreeTypeChar ( )

Member Function Documentation

UTF8String::CodePoint Graphic::FreeTypeChar::getCodePoint ( ) const

get the code point of this character

Returns
code point in the Unicode table
float Graphic::FreeTypeChar::getHoriAdvance ( ) const

Get the advance of this glyph when used horizontally.

Returns
Advance of this glyph in pixels.
const Math::vec2f & Graphic::FreeTypeChar::getHoriBearing ( ) const

return the the horizontal bearing of this glyph

Returns
horizontal bearing in pixels
float Graphic::FreeTypeChar::getHoriBearingX ( ) const

return the X coordinate of the horizontal bearing of this glyph

Returns
X bearing in pixels
float Graphic::FreeTypeChar::getHoriBearingY ( ) const

return the Y coordinate of the horizontal bearing of this glyph

Returns
Y bearing in pixels
float Graphic::FreeTypeChar::getHoriOffsetY ( ) const

Get the Y coordinate of the Horizontal offset.

Returns
Y Offset when using this glyph horizontally
FreeTypeChar & Graphic::FreeTypeChar::operator= ( const FreeTypeChar c)

Copy operator.

Parameters
cChar to be copied.
Returns
reference to this
FreeTypeChar & Graphic::FreeTypeChar::operator= ( FreeTypeChar &&  c)

move operator

Parameters
cChar to be copied.
Returns
reference to this
bool Graphic::FreeTypeChar::read ( std::fstream *  fileStream)

read from a file stream

Parameters
fileStreamstream used to read load this object
Returns
boolean to know if the operation is a success of not.
bool Graphic::FreeTypeChar::write ( std::fstream *  fileStream) const

write this object as binary into a file stream

Parameters
fileStreamstream used to write this object
Returns
boolean to know if the operation is a success of not.

The documentation for this class was generated from the following files: