Dillo v3.1.1-98-g318d1f14
|
#include <style.hh>
Public Member Functions | |
void | ref () |
void | unref () |
Public Member Functions inherited from dw::core::style::StyleAttrs | |
void | initValues () |
void | resetValues () |
Reset those style attributes to their standard values, which are not inherited, according to CSS. | |
bool | sizeDiffs (StyleAttrs *otherStyleAttrs) |
This method returns whether something may change its size, when its style changes from this style to otherStyle. | |
void | setBorderColor (Color *val) |
void | setBorderStyle (BorderStyle val) |
int | boxOffsetX () |
int | boxRestWidth () |
int | boxDiffWidth () |
int | boxOffsetY () |
int | boxRestHeight () |
int | boxDiffHeight () |
bool | hasBackground () |
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 Style * | create (StyleAttrs *attrs) |
Protected Member Functions | |
~Style () | |
void | copyAttrs (StyleAttrs *attrs) |
Private Member Functions | |
Style (StyleAttrs *attrs) | |
Private Attributes | |
int | refCount |
Static Private Attributes | |
static int | totalRef = 0 |
static lout::container::typed::HashTable< StyleAttrs, Style > * | styleTable |
|
private |
Definition at line 277 of file style.cc.
References dw::core::style::StyleAttrs::backgroundColor, dw::core::style::StyleAttrs::backgroundImage, dw::core::style::StyleAttrs::borderColor, dw::core::style::StyleAttrs::color, copyAttrs(), DBG_OBJ_ASSOC_CHILD, DBG_OBJ_CREATE, dw::core::style::StyleAttrs::font, dw::core::style::Tooltip::ref(), dw::core::style::Font::ref(), dw::core::style::Color::ref(), dw::core::style::StyleImage::ref(), refCount, totalRef, and dw::core::style::StyleAttrs::x_tooltip.
|
protected |
Definition at line 316 of file style.cc.
References dw::core::style::StyleAttrs::backgroundColor, dw::core::style::StyleAttrs::backgroundImage, dw::core::style::StyleAttrs::borderColor, dw::core::style::StyleAttrs::color, DBG_OBJ_DELETE, dw::core::style::StyleAttrs::font, styleTable, totalRef, dw::core::style::Tooltip::unref(), dw::core::style::Font::unref(), dw::core::style::Color::unref(), dw::core::style::StyleImage::unref(), and dw::core::style::StyleAttrs::x_tooltip.
|
protected |
Definition at line 343 of file style.cc.
References dw::core::style::StyleAttrs::backgroundAttachment, dw::core::style::StyleAttrs::backgroundColor, dw::core::style::StyleAttrs::backgroundImage, dw::core::style::StyleAttrs::backgroundPositionX, dw::core::style::StyleAttrs::backgroundPositionY, dw::core::style::StyleAttrs::backgroundRepeat, dw::core::style::StyleAttrs::borderCollapse, dw::core::style::StyleAttrs::borderColor, dw::core::style::StyleAttrs::borderStyle, dw::core::style::StyleAttrs::borderWidth, dw::core::style::StyleAttrs::bottom, dw::core::style::StyleAttrs::clear, dw::core::style::StyleAttrs::color, dw::core::style::StyleAttrs::cursor, dw::core::style::StyleAttrs::display, dw::core::style::StyleAttrs::font, dw::core::style::StyleAttrs::hBorderSpacing, dw::core::style::StyleAttrs::height, dw::core::style::StyleAttrs::left, dw::core::style::StyleAttrs::lineHeight, dw::core::style::StyleAttrs::listStylePosition, dw::core::style::StyleAttrs::listStyleType, dw::core::style::StyleAttrs::margin, dw::core::style::StyleAttrs::maxHeight, dw::core::style::StyleAttrs::maxWidth, dw::core::style::StyleAttrs::minHeight, dw::core::style::StyleAttrs::minWidth, dw::core::style::StyleAttrs::overflow, dw::core::style::StyleAttrs::padding, dw::core::style::StyleAttrs::position, dw::core::style::StyleAttrs::right, dw::core::style::StyleAttrs::textAlign, dw::core::style::StyleAttrs::textAlignChar, dw::core::style::StyleAttrs::textDecoration, dw::core::style::StyleAttrs::textIndent, dw::core::style::StyleAttrs::textTransform, dw::core::style::StyleAttrs::top, dw::core::style::StyleAttrs::valign, dw::core::style::StyleAttrs::vBorderSpacing, dw::core::style::StyleAttrs::vloat, dw::core::style::StyleAttrs::whiteSpace, dw::core::style::StyleAttrs::width, dw::core::style::StyleAttrs::wordSpacing, dw::core::style::StyleAttrs::x_img, dw::core::style::StyleAttrs::x_lang, dw::core::style::StyleAttrs::x_link, dw::core::style::StyleAttrs::x_tooltip, and dw::core::style::StyleAttrs::zIndex.
Referenced by Style().
|
inlinestatic |
Definition at line 629 of file style.hh.
References ref(), and styleTable.
Referenced by StyleEngine::backgroundStyle(), dw::Textblock::changeLinkColor(), Html_add_textblock(), Html_set_collapsing_border_model(), Html_set_separate_border_model(), main(), StyleEngine::style0(), StyleEngine::StyleEngine(), and StyleEngine::wordStyle0().
|
inline |
Definition at line 641 of file style.hh.
References refCount.
Referenced by dw::Table::addRow(), create(), dw::Textblock::fillSpace(), dw::Textblock::fillWord(), Html_add_textblock(), dw::fltk::ui::FltkResource::setStyle(), and dw::core::Widget::setStyle().
|
inline |
Definition at line 642 of file style.hh.
References refCount.
Referenced by dw::Textblock::changeLinkColor(), dw::Textblock::cleanupWord(), Html_add_textblock(), dw::Textblock::hyphenateWord(), main(), StyleEngine::restyle(), dw::fltk::ui::FltkResource::setStyle(), dw::core::Widget::setStyle(), StyleEngine::stackPop(), dw::fltk::ui::FltkResource::~FltkResource(), and dw::core::Widget::~Widget().
|
private |
|
staticprivate |
|
staticprivate |