1 #ifndef GUI_OPENGL___GL_FONT__HPP
2 #define GUI_OPENGL___GL_FONT__HPP
151 int len = -1)
const = 0;
177 static vector<float>
EncodeText(GLfloat pos[4],
182 static vector<float>
EncodeText(GLfloat pos[4],
186 static void DecodeText(
const vector<float>& textbuf,
class CRgbaColor provides a simple abstraction for managing colors.
EAlignMode
alignment modes
virtual TModelUnit TextWidth(const char *text) const =0
static vector< float > EncodeText(GLfloat pos[4], const CRgbaColor &color, const char *text, size_t length)
virtual void TextOut(const char *text) const =0
static void DecodeText(const vector< float > &textbuf, GLfloat *pos, GLfloat *color, string &text)
virtual bool IsBitmapFont() const
This is needed by pdf but really on for gltexture font subclass since those may be either texture or ...
virtual TModelUnit TextHeight(void) const =0
virtual void TextOut(TModelUnit x, TModelUnit y, const char *text) const =0
virtual TModelUnit GetMetric(EMetric metric, const char *text=NULL, int len=-1) const =0
virtual void TextOut(TModelUnit x, TModelUnit y, TModelUnit w, TModelUnit h, const char *text, TAlign align=eAlign_Center, ETruncate trunc=eTruncate_Ellipsis, TModelUnit scale_x=1.0, TModelUnit scale_y=1.0) const =0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void text(MDB_val *v)
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Standard mechanism to include OpenGL headers for all platforms.