#include <style.hh>
| int dw::core::style::StyleAttrs::boxDiffHeight | ( | ) | [inline] |
References boxOffsetY(), and boxRestHeight().
Referenced by dw::Textblock::calcWidgetSize(), and dw::core::Widget::getContentHeight().
| int dw::core::style::StyleAttrs::boxDiffWidth | ( | ) | [inline] |
References boxOffsetX(), and boxRestWidth().
Referenced by dw::Textblock::calcWidgetSize(), dw::core::Widget::getContentWidth(), and dw::Textblock::getWordExtremes().
| int dw::core::style::StyleAttrs::boxOffsetX | ( | ) | [inline] |
References borderWidth, dw::core::style::Box::left, margin, and padding.
Referenced by boxDiffWidth().
| int dw::core::style::StyleAttrs::boxOffsetY | ( | ) | [inline] |
References borderWidth, margin, padding, and dw::core::style::Box::top.
Referenced by boxDiffHeight().
| int dw::core::style::StyleAttrs::boxRestHeight | ( | ) | [inline] |
References borderWidth, dw::core::style::Box::bottom, margin, and padding.
Referenced by boxDiffHeight().
| int dw::core::style::StyleAttrs::boxRestWidth | ( | ) | [inline] |
References borderWidth, margin, padding, and dw::core::style::Box::right.
Referenced by boxDiffWidth().
| bool dw::core::style::StyleAttrs::equals | ( | lout::object::Object * | other | ) | [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 backgroundColor, borderCollapse, borderColor, borderStyle, borderWidth, bottom, color, cursor, display, dw::core::style::Box::equals(), font, hBorderSpacing, height, left, lineHeight, listStylePosition, listStyleType, margin, padding, right, textAlign, textAlignChar, textDecoration, textIndent, top, valign, vBorderSpacing, whiteSpace, width, wordSpacing, x_img, x_link, and x_tooltip.
| bool dw::core::style::StyleAttrs::hasBackground | ( | ) | [inline] |
| int dw::core::style::StyleAttrs::hashValue | ( | ) | [virtual] |
Return a hash value for the object.
Reimplemented from lout::object::Object.
References backgroundColor, borderCollapse, borderColor, borderStyle, borderWidth, color, cursor, display, font, dw::core::style::Box::hashValue(), hBorderSpacing, height, lineHeight, listStylePosition, listStyleType, margin, padding, textAlign, textAlignChar, textDecoration, textIndent, valign, vBorderSpacing, whiteSpace, width, wordSpacing, x_img, x_link, and x_tooltip.
| void dw::core::style::StyleAttrs::initValues | ( | ) |
References backgroundColor, dw::core::style::BORDER_MODEL_SEPARATE, dw::core::style::BORDER_NONE, borderCollapse, borderWidth, cursor, dw::core::style::CURSOR_DEFAULT, display, dw::core::style::DISPLAY_INLINE, hBorderSpacing, height, dw::core::style::LENGTH_AUTO, lineHeight, dw::core::style::LIST_STYLE_POSITION_OUTSIDE, dw::core::style::LIST_STYLE_TYPE_DISC, listStylePosition, listStyleType, margin, padding, setBorderColor(), setBorderStyle(), dw::core::style::Box::setVal(), dw::core::style::TEXT_ALIGN_LEFT, dw::core::style::TEXT_DECORATION_NONE, textAlign, textAlignChar, textDecoration, textIndent, valign, dw::core::style::VALIGN_BASELINE, vBorderSpacing, dw::core::style::WHITE_SPACE_NORMAL, whiteSpace, width, wordSpacing, x_img, x_link, and x_tooltip.
| void dw::core::style::StyleAttrs::resetValues | ( | ) |
Reset those style attributes to their standard values, which are not inherited, according to CSS.
References backgroundColor, dw::core::style::BORDER_NONE, borderWidth, display, dw::core::style::DISPLAY_INLINE, hBorderSpacing, height, dw::core::style::LENGTH_AUTO, margin, padding, setBorderColor(), setBorderStyle(), dw::core::style::Box::setVal(), textAlignChar, valign, dw::core::style::VALIGN_BASELINE, vBorderSpacing, width, and x_img.
| void dw::core::style::StyleAttrs::setBorderColor | ( | Color * | val | ) | [inline] |
References borderColor.
Referenced by dw::Textblock::changeLinkColor(), initValues(), and resetValues().
| void dw::core::style::StyleAttrs::setBorderStyle | ( | BorderStyle | val | ) | [inline] |
| bool dw::core::style::StyleAttrs::sizeDiffs | ( | StyleAttrs * | otherStyle | ) |
This method returns whether something may change its size, when its style changes from this style to otherStyle.
It is mainly for optimizing style changes where only colors etc change (where false would be returned), in some cases it may return true, although a size change does not actually happen (e.g. when in a certain context a particular attribute is ignored).
Referenced by dw::core::Widget::setStyle().
Referenced by dw::Table::addCell(), dw::core::style::Style::copyAttrs(), dw::core::style::drawBackground(), dw::core::Widget::drawBox(), dw::Textblock::drawSpace(), dw::Textblock::drawText(), dw::core::Widget::drawWidgetBox(), equals(), dw::core::Widget::getBgColor(), hasBackground(), hashValue(), initValues(), resetValues(), dw::fltk::ui::FltkResource::setWidgetStyle(), dw::core::style::Style::Style(), and dw::core::style::Style::~Style().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), and initValues().
| struct { ... } dw::core::style::StyleAttrs::borderColor |
Referenced by dw::core::style::Style::copyAttrs(), dw::core::style::drawBorderBottom(), dw::core::style::drawBorderLeft(), dw::core::style::drawBorderRight(), dw::core::style::drawBorderTop(), equals(), hashValue(), setBorderColor(), dw::core::style::Style::Style(), and dw::core::style::Style::~Style().
| struct { ... } dw::core::style::StyleAttrs::borderStyle |
Referenced by boxOffsetX(), boxOffsetY(), boxRestHeight(), boxRestWidth(), dw::core::style::Style::copyAttrs(), dw::core::style::drawBackground(), dw::core::style::drawBorderBottom(), dw::core::style::drawBorderLeft(), dw::core::style::drawBorderRight(), dw::core::style::drawBorderTop(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::core::style::drawBorderBottom(), and equals().
Referenced by dw::Textblock::changeLinkColor(), dw::core::style::Style::copyAttrs(), dw::Textblock::decorateText(), dw::core::Polygon::draw(), dw::core::Circle::draw(), dw::core::Rectangle::draw(), dw::Textblock::drawText(), equals(), hashValue(), dw::fltk::ui::FltkResource::setWidgetStyle(), dw::core::style::Style::Style(), and dw::core::style::Style::~Style().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::Textblock::addLinebreak(), dw::Textblock::addSpace(), dw::Textblock::calcTextSize(), dw::core::style::Style::copyAttrs(), dw::Textblock::decorateText(), dw::Textblock::drawSpace(), dw::Textblock::drawText(), equals(), dw::Textblock::TextblockIterator::getAllocation(), dw::TableCell::getValue(), hashValue(), dw::Textblock::sendSelectionEvent(), dw::fltk::ui::FltkResource::setWidgetStyle(), dw::fltk::ui::FltkListResource::sizeRequest(), dw::fltk::ui::FltkOptionMenuResource::sizeRequest(), dw::fltk::ui::FltkMultiLineTextResource::sizeRequest(), dw::fltk::ui::FltkEntryResource::sizeRequest(), dw::fltk::ui::FltkLabelButtonResource::sizeRequest(), dw::core::style::Style::Style(), dw::Textblock::wordWrap(), and dw::core::style::Style::~Style().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::Textblock::calcWidgetSize(), dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::core::style::drawBorderLeft(), and equals().
Referenced by dw::Textblock::calcTextSize(), dw::core::style::Style::copyAttrs(), equals(), hashValue(), and initValues().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), and initValues().
Referenced by boxOffsetX(), boxOffsetY(), boxRestHeight(), boxRestWidth(), dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::core::style::drawBorderRight(), and equals().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and dw::Textblock::wordWrap().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), resetValues(), and dw::TableCell::wordWrap().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), and initValues().
Referenced by dw::core::style::drawBorderTop(), and equals().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::Textblock::calcWidgetSize(), dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
Referenced by dw::Textblock::addSpace(), dw::core::style::Style::copyAttrs(), equals(), hashValue(), and initValues().
Referenced by dw::core::style::Style::copyAttrs(), equals(), hashValue(), initValues(), and resetValues().
1.5.9