GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | Protected Attributes | List of all members
NullGFont Class Reference

Generic pure virtual & device-independant font class. More...

Inheritance diagram for NullGFont:
VGFont

Public Member Functions

 NullGFont (std::string name, int size, int prop)
 
virtual ~NullGFont ()
 
virtual const char * GetName () const
 Returns the current object's name (as a string) More...
 
virtual int GetSize () const
 Returns the current object's size (as an int) More...
 
virtual int GetProperties () const
 Returns the current object's property value(s) (see enum above) More...
 
virtual void GetExtent (const char *s, int inCharCount, float *outWidth, float *outHeight, VGDevice *context=0) const
 
virtual void GetExtent (int c, float *outWidth, float *outHeight, VGDevice *context=0) const
 
- Public Member Functions inherited from VGFont
virtual ~VGFont ()
 

Protected Attributes

std::string fName
 
int fSize
 
int fProperties
 

Additional Inherited Members

- Public Types inherited from VGFont
enum  { kFontNone = 0, kFontBold = 1, kFontItalic = 2, kFontUnderline = 4 }
 Font properties. More...
 
- Protected Member Functions inherited from VGFont
void * GetContext (VGDevice *context) const
 

Detailed Description

Generic pure virtual & device-independant font class.

Constructor & Destructor Documentation

◆ NullGFont()

NullGFont::NullGFont ( std::string  name,
int  size,
int  prop 
)
inline

◆ ~NullGFont()

virtual NullGFont::~NullGFont ( )
inlinevirtual

Member Function Documentation

◆ GetExtent() [1/2]

virtual void NullGFont::GetExtent ( const char *  s,
int  inCharCount,
float *  outWidth,
float *  outHeight,
VGDevice context = 0 
) const
inlinevirtual

Computes the width and height of the input string using the current font capabilities in the input VGDevice

Implements VGFont.

◆ GetExtent() [2/2]

virtual void NullGFont::GetExtent ( int  c,
float *  outWidth,
float *  outHeight,
VGDevice context = 0 
) const
inlinevirtual

Computes the width and height of the input character using the current font capabilities in the input VGDevice

Implements VGFont.

◆ GetName()

virtual const char* NullGFont::GetName ( ) const
inlinevirtual

Returns the current object's name (as a string)

Implements VGFont.

◆ GetProperties()

virtual int NullGFont::GetProperties ( ) const
inlinevirtual

Returns the current object's property value(s) (see enum above)

Implements VGFont.

◆ GetSize()

virtual int NullGFont::GetSize ( ) const
inlinevirtual

Returns the current object's size (as an int)

Implements VGFont.

Member Data Documentation

◆ fName

std::string NullGFont::fName
protected

◆ fProperties

int NullGFont::fProperties
protected

◆ fSize

int NullGFont::fSize
protected

Guido Project Copyright © 2019 Grame-CNCM