#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) |
Public Attributes | |
| Fl_Font | font |
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 |
| dw::fltk::FltkFont::FltkFont | ( | core::style::FontAttrs * | attrs | ) | [private] |
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(), lout::container::typed::HashTable< K, V >::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, and dw::core::style::Font::xHeight.
Referenced by create().
| dw::fltk::FltkFont::~FltkFont | ( | ) | [private] |
References fontsTable, and lout::container::typed::HashTable< K, V >::remove().
| FltkFont * dw::fltk::FltkFont::create | ( | core::style::FontAttrs * | attrs | ) | [static] |
References FltkFont(), font, fontsTable, lout::container::typed::HashTable< K, V >::get(), and lout::container::typed::HashTable< K, V >::put().
Referenced by dw::fltk::FltkPlatform::createFont().
| bool dw::fltk::FltkFont::fontExists | ( | const char * | name | ) | [static] |
References lout::container::typed::HashTable< K, V >::get(), initSystemFonts(), and systemFonts.
| Fl_Font dw::fltk::FltkFont::get | ( | const char * | name, | |
| int | attrs | |||
| ) | [static] |
| void dw::fltk::FltkFont::initSystemFonts | ( | ) | [static, private] |
| Fl_Font dw::fltk::FltkFont::font |
Referenced by create(), dw::fltk::FltkWidgetView::drawSimpleWrappedText(), dw::fltk::FltkWidgetView::drawText(), dw::fltk::FltkPreview::drawText(), FltkFont(), dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkListResource::sizeRequest(), dw::fltk::ui::FltkOptionMenuResource::sizeRequest(), dw::fltk::ui::FltkToggleButtonResource< I >::sizeRequest(), dw::fltk::ui::FltkMultiLineTextResource::sizeRequest(), dw::fltk::ui::FltkEntryResource::sizeRequest(), dw::fltk::ui::FltkLabelButtonResource::sizeRequest(), and dw::fltk::FltkPlatform::textWidth().
container::typed::HashTable< dw::core::style::FontAttrs, FltkFont > * dw::fltk::FltkFont::fontsTable [static, private] |
Initial value:
new container::typed::HashTable <dw::core::style::FontAttrs, FltkFont> (false, false)
Referenced by create(), and ~FltkFont().
FltkFont::FontFamily dw::fltk::FltkFont::standardFontFamily [static, private] |
Referenced by FltkFont().
container::typed::HashTable< lout::object::ConstString, FltkFont::FontFamily > * dw::fltk::FltkFont::systemFonts [static, private] |
1.5.9