Dillo v3.1.1-119-g140d9ebd
|
#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. | |
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) |
Definition at line 15 of file fltkplatform.hh.
|
private |
Definition at line 98 of file fltkplatform.cc.
References dw::core::style::Font::ascent, dw::core::style::Font::copyAttrs(), dw::core::style::Font::descent, font, dw::core::style::FONT_STYLE_NORMAL, dw::fltk::FltkFont::FontFamily::get(), initSystemFonts(), dw::core::style::FontAttrs::letterSpacing, lout::misc::max(), dw::core::style::FontAttrs::name, dw::core::style::FontAttrs::size, dw::core::style::Font::spaceWidth, standardFontFamily, dw::core::style::FontAttrs::style, systemFonts, dw::core::style::FontAttrs::weight, dw::core::style::Font::xHeight, and dw::core::style::Font::zeroWidth.
|
private |
Definition at line 130 of file fltkplatform.cc.
References fontsTable.
|
static |
Definition at line 207 of file fltkplatform.cc.
References font, fontsTable, and get().
Referenced by dw::fltk::FltkPlatform::createFont().
|
static |
Definition at line 179 of file fltkplatform.cc.
References initSystemFonts(), dw::core::style::FontAttrs::name, and systemFonts.
Referenced by checkFont(), and dw::fltk::FltkPlatform::fontExists().
|
static |
Definition at line 188 of file fltkplatform.cc.
References dw::fltk::FltkFont::FontFamily::get(), initSystemFonts(), dw::core::style::FontAttrs::name, and systemFonts.
|
staticprivate |
Definition at line 142 of file fltkplatform.cc.
References _MSG, dStrdup(), dw::fltk::FltkFont::FontFamily::get(), dw::core::style::FontAttrs::name, dw::fltk::FltkFont::FontFamily::set(), dw::fltk::strstrip(), and systemFonts.
Referenced by FltkFont(), fontExists(), and get().
Fl_Font dw::fltk::FltkFont::font |
Definition at line 39 of file fltkplatform.hh.
Referenced by create(), dw::fltk::FltkWidgetView::drawSimpleWrappedText(), dw::fltk::FltkPreview::drawText(), dw::fltk::FltkWidgetView::drawText(), FltkFont(), dw::fltk::FltkFont::FontFamily::get(), dw::fltk::FltkFont::FontFamily::set(), dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkLabelButtonResource::sizeRequest(), dw::fltk::ui::FltkEntryResource::sizeRequest(), dw::fltk::ui::FltkMultiLineTextResource::sizeRequest(), dw::fltk::ui::FltkToggleButtonResource< I >::sizeRequest(), dw::fltk::ui::FltkOptionMenuResource::sizeRequest(), and dw::fltk::FltkPlatform::textWidth().
|
staticprivate |
Definition at line 31 of file fltkplatform.hh.
Referenced by create(), and ~FltkFont().
|
staticprivate |
Definition at line 26 of file fltkplatform.hh.
Referenced by FltkFont().
|
staticprivate |
Definition at line 29 of file fltkplatform.hh.
Referenced by FltkFont(), fontExists(), get(), and initSystemFonts().