dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dw::core::style::Font Class Reference

#include <style.hh>

Inheritance diagram for dw::core::style::Font:
[legend]
Collaboration diagram for dw::core::style::Font:
[legend]

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

Definition at line 656 of file style.hh.

Constructor & Destructor Documentation

◆ Font()

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

Definition at line 664 of file style.hh.

References DBG_OBJ_CREATE, and refCount.

◆ ~Font()

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

Definition at line 370 of file style.cc.

References DBG_OBJ_DELETE.

Member Function Documentation

◆ copyAttrs()

◆ create()

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

Definition at line 392 of file style.cc.

◆ create0()

Font * dw::core::style::Font::create0 ( Layout layout,
FontAttrs attrs,
bool  tryEverything 
)
staticprivate

Definition at line 386 of file style.cc.

References dw::core::Layout::createFont().

◆ exists()

bool dw::core::style::Font::exists ( Layout layout,
const char *  name 
)
static

Definition at line 397 of file style.cc.

References dw::core::Layout::fontExists().

◆ ref()

void dw::core::style::Font::ref ( )
inline

Definition at line 680 of file style.hh.

References refCount.

◆ unref()

void dw::core::style::Font::unref ( )
inline

Definition at line 681 of file style.hh.

References refCount.

Member Data Documentation

◆ ascent

◆ descent

◆ refCount

int dw::core::style::Font::refCount
private

Definition at line 659 of file style.hh.

Referenced by Font(), ref(), and unref().

◆ spaceWidth

int dw::core::style::Font::spaceWidth

Definition at line 674 of file style.hh.

Referenced by dw::Textblock::fillSpace().

◆ xHeight

int dw::core::style::Font::xHeight

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