Dillo
|
#include <style.hh>
Public Member Functions | |
bool | equals (lout::object::Object *other) |
Returns, whether two objects are equal. More... | |
int | hashValue () |
Return a hash value for the object. More... | |
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. More... | |
virtual Object * | clone () |
Return an exact copy of the object. More... | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. More... | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. More... | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. More... | |
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.
References fontVariant, letterSpacing, name, size, style, and weight.
|
virtual |
Return a hash value for the object.
Reimplemented from lout::object::Object.
References lout::object::ConstString::hashValue().
FontVariant dw::core::style::FontAttrs::fontVariant |
int dw::core::style::FontAttrs::letterSpacing |
const char* dw::core::style::FontAttrs::name |
Referenced by dw::core::style::Font::copyAttrs(), equals(), and main().
int dw::core::style::FontAttrs::size |
Referenced by dw::Textblock::calcTextSize(), dw::core::style::Font::copyAttrs(), dw::fltk::FltkWidgetView::drawSimpleWrappedText(), dw::fltk::FltkPreview::drawText(), dw::fltk::FltkWidgetView::drawText(), equals(), 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(), and dw::fltk::FltkPlatform::textWidth().
FontStyle dw::core::style::FontAttrs::style |
Referenced by dw::core::style::Font::copyAttrs(), equals(), and main().
int dw::core::style::FontAttrs::weight |
Referenced by dw::core::style::Font::copyAttrs(), equals(), and main().