dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dw::core::style::Style Class Reference

#include <style.hh>

Inheritance diagram for dw::core::style::Style:
[legend]
Collaboration diagram for dw::core::style::Style:
[legend]

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. More...
 
bool sizeDiffs (StyleAttrs *otherStyleAttrs)
 This method returns whether something may change its size, when its style changes from this style to otherStyle. More...
 
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. 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 Objectclone ()
 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...
 

Static Public Member Functions

static Stylecreate (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
 

Additional Inherited Members

- Public Attributes inherited from dw::core::style::StyleAttrs
Fontfont
 
int textDecoration
 
Colorcolor
 
ColorbackgroundColor
 
StyleImagebackgroundImage
 
BackgroundRepeat backgroundRepeat
 
BackgroundAttachment backgroundAttachment
 
Length backgroundPositionX
 
Length backgroundPositionY
 
TextAlignType textAlign
 
VAlignType valign
 
char textAlignChar
 
TextTransform textTransform
 
int hBorderSpacing
 
int vBorderSpacing
 
int wordSpacing
 
Length width
 
Length height
 
Length lineHeight
 
Length textIndent
 
Box margin
 
Box borderWidth
 
Box padding
 
BorderCollapse borderCollapse
 
struct {
   Color *   top
 
   Color *   right
 
   Color *   bottom
 
   Color *   left
 
borderColor
 
struct {
   BorderStyle   top
 
   BorderStyle   right
 
   BorderStyle   bottom
 
   BorderStyle   left
 
borderStyle
 
DisplayType display
 
WhiteSpace whiteSpace
 
ListStylePosition listStylePosition
 
ListStyleType listStyleType
 
Cursor cursor
 
int x_link
 
int x_img
 
Tooltipx_tooltip
 
char x_lang [2]
 

Detailed Description

See also
dw::core::style

Definition at line 571 of file style.hh.

Constructor & Destructor Documentation

◆ Style()

dw::core::style::Style::Style ( StyleAttrs attrs)
private

Definition at line 238 of file style.cc.

References DBG_OBJ_ASSOC_CHILD, and DBG_OBJ_CREATE.

Referenced by create().

◆ ~Style()

dw::core::style::Style::~Style ( )
protected

Definition at line 277 of file style.cc.

References DBG_OBJ_DELETE.

Member Function Documentation

◆ copyAttrs()

void dw::core::style::Style::copyAttrs ( StyleAttrs attrs)
protected

Definition at line 304 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::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::lineHeight, dw::core::style::StyleAttrs::listStylePosition, dw::core::style::StyleAttrs::listStyleType, dw::core::style::StyleAttrs::margin, dw::core::style::StyleAttrs::padding, 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::valign, dw::core::style::StyleAttrs::vBorderSpacing, 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, and dw::core::style::StyleAttrs::x_tooltip.

◆ create()

static Style* dw::core::style::Style::create ( StyleAttrs attrs)
inlinestatic

Definition at line 586 of file style.hh.

References ref(), Style(), and styleTable.

Referenced by Html_set_collapsing_border_model(), and Html_set_separate_border_model().

◆ ref()

void dw::core::style::Style::ref ( )
inline

◆ unref()

Member Data Documentation

◆ refCount

int dw::core::style::Style::refCount
private

Definition at line 575 of file style.hh.

Referenced by ref(), and unref().

◆ styleTable

container::typed::HashTable< StyleAttrs, Style > * dw::core::style::Style::styleTable
staticprivate
Initial value:
=
new container::typed::HashTable <StyleAttrs, Style> (false, false, 1024)

Definition at line 576 of file style.hh.

Referenced by create().

◆ totalRef

int dw::core::style::Style::totalRef = 0
staticprivate

Definition at line 574 of file style.hh.


The documentation for this class was generated from the following files: