Dillo v3.1.1-111-gd4f56d0d
|
#include <style.hh>
Public Member Functions | |
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. | |
Public Attributes | |
const char * | name |
int | size |
int | weight |
int | letterSpacing |
FontVariant | fontVariant |
FontStyle | style |
|
virtual |
Returns, whether two objects are equal.
The caller should ensure, that this and the object have the same class; this makes casting of "other" safe. Typically, an implementation should check this == other first, the caller can assume a fast implementation.
Reimplemented from lout::object::Object.
Definition at line 398 of file style.cc.
References fontVariant, letterSpacing, name, size, style, and weight.
|
virtual |
Return a hash value for the object.
Reimplemented from lout::object::Object.
Definition at line 411 of file style.cc.
References fontVariant, letterSpacing, name, size, style, and weight.
FontVariant dw::core::style::FontAttrs::fontVariant |
Definition at line 688 of file style.hh.
Referenced by StyleEngine::apply(), dw::core::style::Font::copyAttrs(), dw::fltk::FltkWidgetView::drawText(), equals(), hashValue(), main(), StyleEngine::StyleEngine(), and dw::fltk::FltkPlatform::textWidth().
int dw::core::style::FontAttrs::letterSpacing |
Definition at line 687 of file style.hh.
Referenced by StyleEngine::apply(), dw::core::style::Font::copyAttrs(), dw::fltk::FltkWidgetView::drawText(), equals(), dw::fltk::FltkFont::FltkFont(), hashValue(), main(), StyleEngine::StyleEngine(), and dw::fltk::FltkPlatform::textWidth().
const char* dw::core::style::FontAttrs::name |
Definition at line 684 of file style.hh.
Referenced by StyleEngine::apply(), dw::core::style::Font::copyAttrs(), equals(), dw::core::style::Font::exists(), dw::fltk::FltkFont::FltkFont(), dw::fltk::FltkFont::fontExists(), dw::fltk::FltkPlatform::fontExists(), dw::fltk::FltkFont::get(), hashValue(), dw::fltk::FltkFont::initSystemFonts(), main(), StyleEngine::StyleEngine(), and dw::core::style::Font::~Font().
int dw::core::style::FontAttrs::size |
Definition at line 685 of file style.hh.
Referenced by StyleEngine::apply(), dw::Textblock::calcTextSize(), StyleEngine::computeValue(), dw::core::style::Font::copyAttrs(), dw::fltk::FltkWidgetView::drawSimpleWrappedText(), dw::fltk::FltkPreview::drawText(), dw::fltk::FltkWidgetView::drawText(), equals(), dw::fltk::FltkFont::FltkFont(), hashValue(), main(), 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(), StyleEngine::StyleEngine(), and dw::fltk::FltkPlatform::textWidth().
FontStyle dw::core::style::FontAttrs::style |
Definition at line 689 of file style.hh.
Referenced by StyleEngine::apply(), dw::core::style::Font::copyAttrs(), equals(), dw::fltk::FltkFont::FltkFont(), hashValue(), main(), and StyleEngine::StyleEngine().
int dw::core::style::FontAttrs::weight |
Definition at line 686 of file style.hh.
Referenced by StyleEngine::apply(), dw::core::style::Font::copyAttrs(), equals(), dw::fltk::FltkFont::FltkFont(), hashValue(), main(), and StyleEngine::StyleEngine().