Dillo v3.1.1-111-gd4f56d0d
|
#include <style.hh>
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. | |
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. | |
Static Public Member Functions | |
static Font * | create (Layout *layout, FontAttrs *attrs) |
static bool | exists (Layout *layout, const char *name) |
Public Attributes | |
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 |
Protected Member Functions | |
Font () | |
virtual | ~Font () |
void | copyAttrs (FontAttrs *attrs) |
Static Private Member Functions | |
static Font * | create0 (Layout *layout, FontAttrs *attrs, bool tryEverything) |
Private Attributes | |
int | refCount |
|
inlineprotected |
Definition at line 707 of file style.hh.
References DBG_OBJ_CREATE, and refCount.
|
protectedvirtual |
Definition at line 422 of file style.cc.
References DBG_OBJ_DELETE, and dw::core::style::FontAttrs::name.
|
protected |
Definition at line 428 of file style.cc.
References dStrdup(), dw::core::style::FontAttrs::fontVariant, dw::core::style::FontAttrs::letterSpacing, dw::core::style::FontAttrs::name, dw::core::style::FontAttrs::size, dw::core::style::FontAttrs::style, and dw::core::style::FontAttrs::weight.
Referenced by dw::fltk::FltkFont::FltkFont().
Definition at line 444 of file style.cc.
References create0(), and layout.
Referenced by StyleEngine::apply(), main(), and StyleEngine::StyleEngine().
|
static |
Definition at line 449 of file style.cc.
References layout, and dw::core::style::FontAttrs::name.
Referenced by StyleEngine::apply().
|
inline |
Definition at line 724 of file style.hh.
References refCount.
Referenced by dw::core::style::Style::Style().
|
inline |
Definition at line 725 of file style.hh.
References refCount.
Referenced by dw::core::style::Style::~Style().
int dw::core::style::Font::ascent |
Definition at line 716 of file style.hh.
Referenced by dw::Textblock::accumulateWordForLine(), dw::Textblock::addLinebreak(), dw::Textblock::calcTextSize(), dw::Textblock::decorateText(), dw::Textblock::drawSpace(), dw::fltk::FltkPreview::drawText(), dw::Textblock::drawWord0(), dw::Textblock::findWord(), dw::fltk::FltkFont::FltkFont(), dw::Textblock::sendSelectionEvent(), dw::fltk::ui::FltkLabelButtonResource::sizeRequest(), dw::fltk::ui::FltkEntryResource::sizeRequest(), dw::fltk::ui::FltkMultiLineTextResource::sizeRequest(), dw::fltk::ui::FltkToggleButtonResource< I >::sizeRequest(), and dw::fltk::ui::FltkOptionMenuResource::sizeRequest().
int dw::core::style::Font::descent |
Definition at line 716 of file style.hh.
Referenced by dw::Textblock::accumulateWordForLine(), dw::Textblock::addLinebreak(), dw::Textblock::calcTextSize(), dw::Textblock::decorateText(), dw::Textblock::drawSpace(), dw::Textblock::drawWord0(), dw::Textblock::findWord(), dw::fltk::FltkFont::FltkFont(), dw::Textblock::sendSelectionEvent(), 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::ui::FltkListResource::sizeRequest().
|
private |
int dw::core::style::Font::spaceWidth |
Definition at line 717 of file style.hh.
Referenced by dw::Textblock::fillSpace(), and dw::fltk::FltkFont::FltkFont().
int dw::core::style::Font::xHeight |
Definition at line 718 of file style.hh.
Referenced by StyleEngine::computeValue(), dw::Textblock::decorateText(), dw::Bullet::draw(), and dw::fltk::FltkFont::FltkFont().
int dw::core::style::Font::zeroWidth |
Definition at line 719 of file style.hh.
Referenced by StyleEngine::computeValue(), and dw::fltk::FltkFont::FltkFont().