Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Glyph associated to a character of a given Font. More...
#include <Font.hpp>
Public Member Functions | |
Glyph () | |
~Glyph () | |
unsigned int | textureHandle () const |
void | setTextureHandle (unsigned int handle) |
int | width () const |
void | setWidth (int width) |
int | height () const |
void | setHeight (int height) |
int | left () const |
void | setLeft (int left) |
int | top () const |
void | setTop (int top) |
float | s0 () const |
void | setS0 (float s0) |
float | t0 () const |
void | setT0 (float t0) |
float | s1 () const |
void | setS1 (float s1) |
float | t1 () const |
void | setT1 (float t1) |
const fvec2 & | advance () const |
void | setAdvance (const fvec2 &advance) |
unsigned int | glyphIndex () const |
void | setGlyphIndex (unsigned int glyph_index) |
const Font * | font () const |
void | setFont (Font *font) |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
Font * | mFont |
fvec2 | mAdvance |
float | mS0 |
float | mT0 |
float | mS1 |
float | mT1 |
unsigned int | mGlyphIndex |
unsigned int | mTextureHandle |
int | mWidth |
int | mHeight |
int | mLeft |
int | mTop |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
vl::Glyph::~Glyph | ( | ) |
Referenced by Glyph().
|
inline |
Definition at line 98 of file Font.hpp.
References mAdvance.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), vl::CoreText::renderText(), and setAdvance().
|
inline |
|
inline |
Definition at line 101 of file Font.hpp.
References mGlyphIndex.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), and vl::CoreText::renderText().
|
inline |
Definition at line 77 of file Font.hpp.
References mHeight.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), vl::CoreText::renderText(), and setHeight().
|
inline |
Definition at line 80 of file Font.hpp.
References mLeft.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), vl::CoreText::renderText(), and setLeft().
|
inline |
Definition at line 86 of file Font.hpp.
References mS0.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS0().
|
inline |
Definition at line 92 of file Font.hpp.
References mS1.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS1().
|
inline |
|
inline |
|
inline |
Definition at line 102 of file Font.hpp.
References mGlyphIndex.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 72 of file Font.hpp.
References mTextureHandle.
|
inline |
|
inline |
|
inline |
Definition at line 89 of file Font.hpp.
References mT0.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT0().
|
inline |
Definition at line 95 of file Font.hpp.
References mT1.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT1().
|
inline |
Definition at line 71 of file Font.hpp.
References mTextureHandle.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), and vl::CoreText::renderText().
|
inline |
Definition at line 83 of file Font.hpp.
References mTop.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), vl::CoreText::renderText(), and setTop().
|
inline |
Definition at line 74 of file Font.hpp.
References mWidth.
Referenced by vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::Text::renderText(), vl::CoreText::renderText(), and setWidth().
|
protected |
Definition at line 109 of file Font.hpp.
Referenced by advance(), and setAdvance().
|
protected |
|
protected |
Definition at line 114 of file Font.hpp.
Referenced by glyphIndex(), and setGlyphIndex().
|
protected |
Definition at line 117 of file Font.hpp.
Referenced by height(), and setHeight().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 115 of file Font.hpp.
Referenced by setTextureHandle(), and textureHandle().
|
protected |
|
protected |
Definition at line 116 of file Font.hpp.
Referenced by setWidth(), and width().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:08.
© Copyright Michele Bosi. All rights reserved.