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::Color Class Reference

#include <style.hh>

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

Public Types

enum  Shading {
  SHADING_NORMAL, SHADING_INVERSE, SHADING_DARK, SHADING_LIGHT,
  SHADING_NUM
}
 

Public Member Functions

void ref ()
 
void unref ()
 
- Public Member Functions inherited from dw::core::style::ColorAttrs
 ColorAttrs (int color)
 
int getColor ()
 
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 Colorcreate (Layout *layout, int color)
 

Protected Member Functions

 Color (int color)
 
virtual ~Color ()
 
int shadeColor (int color, Shading shading)
 

Private Member Functions

void remove (dw::core::Layout *layout)
 
int shadeColor (int color, int d)
 

Private Attributes

int refCount
 

Additional Inherited Members

- Protected Attributes inherited from dw::core::style::ColorAttrs
int color
 

Detailed Description

See also
dw::core::style

Definition at line 709 of file style.hh.

Member Enumeration Documentation

◆ Shading

Enumerator
SHADING_NORMAL 
SHADING_INVERSE 
SHADING_DARK 
SHADING_LIGHT 
SHADING_NUM 

Definition at line 725 of file style.hh.

Constructor & Destructor Documentation

◆ Color()

dw::core::style::Color::Color ( int  color)
inlineprotected

Definition at line 718 of file style.hh.

References DBG_OBJ_CREATE, and refCount.

◆ ~Color()

dw::core::style::Color::~Color ( )
protectedvirtual

Definition at line 415 of file style.cc.

References DBG_OBJ_DELETE.

Member Function Documentation

◆ create()

Color * dw::core::style::Color::create ( Layout layout,
int  color 
)
static

Definition at line 477 of file style.cc.

References dw::core::Layout::createColor().

Referenced by a_Web_dispatch_by_type(), and UIcmd_tab_new().

◆ ref()

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

Definition at line 734 of file style.hh.

References refCount.

Referenced by dw::core::Layout::setBgColor().

◆ remove()

void dw::core::style::Color::remove ( dw::core::Layout layout)
private

◆ shadeColor() [1/2]

int dw::core::style::Color::shadeColor ( int  color,
int  d 
)
private

Definition at line 420 of file style.cc.

References lout::misc::max().

Referenced by dw::fltk::FltkColor::FltkColor().

◆ shadeColor() [2/2]

int dw::core::style::Color::shadeColor ( int  color,
Shading  shading 
)
protected

Definition at line 454 of file style.cc.

References lout::misc::assertNotReached().

◆ unref()

void dw::core::style::Color::unref ( )
inline

Definition at line 735 of file style.hh.

References refCount.

Member Data Documentation

◆ refCount

int dw::core::style::Color::refCount
private

Definition at line 712 of file style.hh.

Referenced by Color(), ref(), and unref().


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