Dillo
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
dw::core::style::Font Class Reference

#include <style.hh>

Public Member Functions

void ref ()
 
void unref ()
 
- Public Member Functions inherited from dw::core::style::FontAttrs
bool equals (lout::object::Object *other)
 Returns, whether two objects are equal. More...
 
int hashValue ()
 Return a hash value for the object. More...
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. More...
 
virtual Objectclone ()
 Return an exact copy of the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

Static Public Member Functions

static Fontcreate (Layout *layout, FontAttrs *attrs)
 
static bool exists (Layout *layout, const char *name)
 

Public Attributes

int ascent
 
int descent
 
int spaceWidth
 
int xHeight
 
- Public Attributes inherited from dw::core::style::FontAttrs
const char * name
 
int size
 
int weight
 
int letterSpacing
 
FontVariant fontVariant
 
FontStyle style
 

Protected Member Functions

 Font ()
 
virtual ~Font ()
 
void copyAttrs (FontAttrs *attrs)
 

Static Private Member Functions

static Fontcreate0 (Layout *layout, FontAttrs *attrs, bool tryEverything)
 

Private Attributes

int refCount
 

Detailed Description

See also
dw::core::style

Constructor & Destructor Documentation

dw::core::style::Font::Font ( )
inlineprotected

References DBG_OBJ_CREATE.

dw::core::style::Font::~Font ( )
protectedvirtual

References DBG_OBJ_DELETE.

Member Function Documentation

void dw::core::style::Font::copyAttrs ( FontAttrs attrs)
protected
Font * dw::core::style::Font::create ( Layout layout,
FontAttrs attrs 
)
static

Referenced by main().

Font * dw::core::style::Font::create0 ( Layout layout,
FontAttrs attrs,
bool  tryEverything 
)
staticprivate
bool dw::core::style::Font::exists ( Layout layout,
const char *  name 
)
static
void dw::core::style::Font::ref ( )
inline
void dw::core::style::Font::unref ( )
inline

Member Data Documentation

int dw::core::style::Font::ascent
int dw::core::style::Font::descent
int dw::core::style::Font::refCount
private
int dw::core::style::Font::spaceWidth
int dw::core::style::Font::xHeight

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