Dillo v3.2.0-181-g6856c501
Loading...
Searching...
No Matches
dw::fltk::FltkFont Class Reference

#include <fltkplatform.hh>

Classes

class  FontFamily
 

Static Public Member Functions

static FltkFont * create (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 Font * create (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
 
int zeroWidth
 
- 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 Object * clone ()
 Return an exact copy of the object.
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
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 35 of file fltkplatform.hh.

Constructor & Destructor Documentation

◆ FltkFont()

◆ ~FltkFont()

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

Definition at line 131 of file fltkplatform.cc.

References fontsTable.

Member Function Documentation

◆ create()

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

Definition at line 214 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 51 of file fltkplatform.hh.

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

◆ standardFontFamily

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

Definition at line 46 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 49 of file fltkplatform.hh.

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


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