Dillo v3.1.1-14-g8f67d6e0
Loading...
Searching...
No Matches
dw::core::style::ColorAttrs Class Reference

#include <style.hh>

Public Member Functions

 ColorAttrs (int color)
 
int getColor ()
 
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 Objectclone ()
 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.
 

Protected Attributes

int color
 

Detailed Description

See also
dw::core::style

Definition at line 730 of file style.hh.

Constructor & Destructor Documentation

◆ ColorAttrs()

dw::core::style::ColorAttrs::ColorAttrs ( int  color)
inline

Definition at line 736 of file style.hh.

References color.

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

Member Function Documentation

◆ equals()

bool dw::core::style::ColorAttrs::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.

Definition at line 455 of file style.cc.

References color.

◆ getColor()

int dw::core::style::ColorAttrs::getColor ( )
inline

◆ hashValue()

int dw::core::style::ColorAttrs::hashValue ( )
virtual

Return a hash value for the object.

Reimplemented from lout::object::Object.

Definition at line 461 of file style.cc.

References color.

Member Data Documentation

◆ color


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