Color Struct Reference

#include <domtool.h>

Collaboration diagram for Color:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 54 of file domtool.h.

Public Member Functions

void init (int r, int g, int b)
bool operator== (const Color &other) const

Public Attributes

Common common
int red
int green
int blue


Member Function Documentation

void Color::init ( int  r,
int  g,
int  b 
) [inline]

Definition at line 59 of file domtool.h.

References Common::kind, and Common::Kind_Color.

Referenced by Variant::createColor().

00060     {
00061         common.kind = Common::Kind_Color;
00062         red = r;
00063         green = g;
00064         blue = b;
00065     }

bool Color::operator== ( const Color other  )  const [inline]

Definition at line 67 of file domtool.h.

References blue, green, and red.

00068     { return red == other.red && green == other.green && blue == other.blue; }


Member Data Documentation

Common Color::common

Definition at line 56 of file domtool.h.

int Color::red

Definition at line 57 of file domtool.h.

Referenced by Ui3Reader::createColorGroupImpl(), and operator==().

int Color::green

Definition at line 57 of file domtool.h.

Referenced by Ui3Reader::createColorGroupImpl(), and operator==().

int Color::blue

Definition at line 57 of file domtool.h.

Referenced by Ui3Reader::createColorGroupImpl(), and operator==().


The documentation for this struct was generated from the following file:
Generated on Thu Mar 15 14:48:37 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1