Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::fltk::FltkFont Class Reference

#include <fltkplatform.hh>

Classes

class  FontFamily
 

Static Public Member Functions

static FltkFontcreate (core::style::FontAttrs *attrs)
 
static bool fontExists (const char *name)
 
static Fl_Font get (const char *name, int attrs)
 
- Static Public Member Functions inherited from dw::core::style::Font
static Fontcreate (Layout *layout, FontAttrs *attrs)
 
static bool exists (Layout *layout, const char *name)
 

Public Attributes

Fl_Font font
 
- Public Attributes inherited from dw::core::style::Font
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
 

Private Member Functions

 FltkFont (core::style::FontAttrs *attrs)
 
 ~FltkFont ()
 

Static Private Member Functions

static void initSystemFonts ()
 

Static Private Attributes

static FontFamily standardFontFamily
 
static lout::container::typed::HashTable< lout::object::ConstString, FontFamily > * systemFonts
 
static lout::container::typed::HashTable< dw::core::style::FontAttrs, FltkFont > * fontsTable
 

Additional Inherited Members

- Public Member Functions inherited from dw::core::style::Font
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.
 
int hashValue ()
 Return a hash value for the object.
 
- 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.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 
- Protected Member Functions inherited from dw::core::style::Font
 Font ()
 
virtual ~Font ()
 
void copyAttrs (FontAttrs *attrs)
 

Detailed Description

Definition at line 15 of file fltkplatform.hh.

Constructor & Destructor Documentation

◆ FltkFont()

◆ ~FltkFont()

dw::fltk::FltkFont::~FltkFont ( )
private

Definition at line 129 of file fltkplatform.cc.

References fontsTable.

Member Function Documentation

◆ create()

FltkFont * dw::fltk::FltkFont::create ( core::style::FontAttrs attrs)
static

Definition at line 206 of file fltkplatform.cc.

References font, fontsTable, and get().

Referenced by dw::fltk::FltkPlatform::createFont().

◆ fontExists()

bool dw::fltk::FltkFont::fontExists ( const char *  name)
static

◆ get()

Fl_Font dw::fltk::FltkFont::get ( const char *  name,
int  attrs 
)
static

◆ initSystemFonts()

void dw::fltk::FltkFont::initSystemFonts ( )
staticprivate

Member Data Documentation

◆ font

◆ fontsTable

container::typed::HashTable< dw::core::style::FontAttrs, FltkFont > * dw::fltk::FltkFont::fontsTable
staticprivate
Initial value:
=
new container::typed::HashTable <dw::core::style::FontAttrs,
FltkFont> (false, false)
FltkFont(core::style::FontAttrs *attrs)
Todo:
Distinction between italics and oblique would be nice.

Definition at line 31 of file fltkplatform.hh.

Referenced by create(), and ~FltkFont().

◆ standardFontFamily

FltkFont::FontFamily dw::fltk::FltkFont::standardFontFamily
staticprivate

Definition at line 26 of file fltkplatform.hh.

Referenced by FltkFont().

◆ systemFonts

container::typed::HashTable< lout::object::ConstString, FltkFont::FontFamily > * dw::fltk::FltkFont::systemFonts
staticprivate
Initial value:
=
NULL

Definition at line 29 of file fltkplatform.hh.

Referenced by FltkFont(), fontExists(), get(), and initSystemFonts().


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