A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/gltexturefont_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/opengl/gltexturefont.hpp Source File

1 #ifndef GUI_OPENGL___GLTEXTUREFONT__HPP 2 #define GUI_OPENGL___GLTEXTUREFONT__HPP 58

eFontFace_Helvetica = 0,

88

eFontFace_LastBitmapFont

93

fFontRotateBase = (1 << 0),

94

fFontRotateMid = (1 << 1),

95

fFontRotateCap = (1 << 2),

96

fReorientText = (1 << 4)

119  void

SetFontFace(EFontFace face,

bool

use_bitmap_overrides=

true

);

120

EFontFace GetFontFace()

const

;

123  void

SetFontSize(

unsigned int size

);

124  unsigned int

GetFontSize()

const

;

127  bool

SetFont(

string

font_file_name,

128  unsigned int

font_size,

129  bool

use_bitmap_overrides=

true

);

135  static string

GetFontFileForFace(EFontFace face);

146  void

SetSnapToPixel(

bool

xpix,

bool

ypix);

161  void

BeginText()

const

;

164  void

BeginText(

const TVPRect

& viewport)

const

;

165  void

BeginText(

const TVPRect

& viewport,

166

GLdouble* mview, GLdouble* proj )

const

;

169  void

EndText()

const

;

180

TAlign align = eAlign_Center,

181

ETruncate

trunc

= eTruncate_Ellipsis,

186  const float

*

color

,

194  const float

*

color

,

205

TAlign align = eAlign_Center,

206

ETruncate

trunc

= eTruncate_Ellipsis,

226

TAlign align = eAlign_Center,

227

ETruncate

trunc

= eTruncate_Ellipsis,

234

ETruncate

trunc

= eTruncate_Ellipsis)

const

;

267  int len

= -1)

const

;

275  static string

FaceToString(

EFontFace

face);

284  bool

FromString(

const string

&

value

);

291  static void

GetAllFaces(vector<string>& faces);

292  static void

GetAllSizes(vector<string>& sizes);

299  int

x_Truncate(

const char

*

text

,

304  int

x_Truncate2(

const char

*

text

,

318  bool

write_text)

const

;

323  string

font_file_name,

324  unsigned int

font_size,

325  bool

use_bitmap_overrides=

true

)

const

;

328  void

x_ComputeMetrics();

332  static string

s_FontFileNames[];

335  static string

s_FontNames[];

340  static int

s_FontSizes[];

374  mutable

GLint m_Viewport[4];

375  mutable

GLdouble m_ModelviewMatrix[16];

376  mutable

GLdouble m_ProjectionMatrix[16];

static const Colors colors

static const char * str(char *buf, int n)

TFontRotateFlags m_Rotate

flags for center of rotation and how to handle direction and orientation

string Truncate(const string &text, TModelUnit w, ETruncate trunc=eTruncate_Ellipsis) const

void SetFontRotate(TFontRotateFlags rot)

Set rotation flags (for center of rotation and re-orienting)

TFontRotateFlags GetFontRotate(void) const

virtual TModelUnit TextWidth(const char *text) const =0

EFontRotateFlags

Font rotate options.

bool m_SnapToPixelX

Normally, when text is written to the screen the position is synched to the nearest pixel.

virtual void TextOut(const char *text) const =0

TModelUnit m_MetricFullCharHeight

TModelUnit m_MetricMaxCharWidth

FTFont * m_Font

The current font for writing. These are owned by CFtglFontManager class.

string m_FontFile

File from which current font was loaded.

GLint m_PrevShader

Switch back to previous shader after writing text.

EFontFace m_FontFace

Current font face held by m_Font.

virtual bool IsBitmapFont() const

This is needed by pdf but really on for gltexture font subclass since those may be either texture or ...

TModelUnit m_MetricDescender

unsigned int m_FontSize

Size of current font.

virtual TModelUnit TextHeight(void) const =0

EFontFace

Set of pre-defined fonts for which we know we have valid font files.

CGlTextureFont(const string &font_file_name, unsigned int font_size=12)

create a font with a face loaded from a file

string GetFontFile() const

Get current font filename. Fonts set via EFontFace also have filenames.

virtual TModelUnit GetMetric(EMetric metric, const char *text=NULL, int len=-1) const =0

~CGlTextureFont()

use default copy ctor and operator=()

TModelUnit m_MetricCharHeight

Pre-computed metrics (may be computed first time accessed)

TModelUnit m_MetricAvgCharWidth

@ eFontFace_Helvetica_Bold

@ eFontFace_TimesRoman_Italic

@ eFontFace_Lucida_BoldItalic

@ eFontFace_BPMono_Italic

@ eFontFace_BPMono_BoldStencil

@ eFontFace_Courier_Italic

@ eFontFace_Helvetica_BoldItalic

@ eFontFace_Helvetica_Italic

@ eFontFace_Fixed_BoldItalic

@ eFontFace_TimesRoman_BoldItalic

@ eFontFace_TimesRoman_Bold

@ eFontFace_Courier_BoldItalic

@ eFontFace_Lucida_Italic

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

CTime Truncate(const CTime &t)

#define NCBI_GUIOPENGL_EXPORT

static void text(MDB_val *v)

const struct ncbi::grid::netcache::search::fields::SIZE size

const GenericPointer< typename T::ValueType > T2 value

string ToString(const wxRect &rc)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4