gui::color Class Reference

A simple color class (float RGBA). More...

#include <gui_color.hpp>

List of all members.

Public Types

typedef float chanel

Public Member Functions

 color ()
 color (chanel nr, chanel ng, chanel nb, chanel na=1.0f)
bool operator== (const color &c) const
bool operator!= (const color &c) const
void operator+= (const color &c)
void operator-= (const color &c)
void operator*= (const color &c)
void operator*= (float f)

Public Attributes

chanel r
chanel g
chanel b
chanel a

Static Public Attributes

static const color EMPTY
static const color WHITE
static const color BLACK
static const color RED
static const color GREEN
static const color BLUE
static const color GREY

Detailed Description

A simple color class (float RGBA).

Definition at line 9 of file gui_color.hpp.


Member Typedef Documentation

typedef float gui::color::chanel

Definition at line 13 of file gui_color.hpp.


Constructor & Destructor Documentation

gui::color::color (  ) 

Definition at line 15 of file gui_color.cpp.

gui::color::color ( chanel  nr,
chanel  ng,
chanel  nb,
chanel  na = 1.0f 
)

Definition at line 19 of file gui_color.cpp.


Member Function Documentation

bool gui::color::operator!= ( const color c  )  const

Definition at line 29 of file gui_color.cpp.

void gui::color::operator*= ( float  f  ) 

Definition at line 49 of file gui_color.cpp.

void gui::color::operator*= ( const color c  ) 

Definition at line 44 of file gui_color.cpp.

void gui::color::operator+= ( const color c  ) 

Definition at line 34 of file gui_color.cpp.

void gui::color::operator-= ( const color c  ) 

Definition at line 39 of file gui_color.cpp.

bool gui::color::operator== ( const color c  )  const

Definition at line 24 of file gui_color.cpp.


Member Data Documentation

Definition at line 26 of file gui_color.hpp.

Definition at line 26 of file gui_color.hpp.

const color gui::color::BLACK [static]

Definition at line 30 of file gui_color.hpp.

const color gui::color::BLUE [static]

Definition at line 33 of file gui_color.hpp.

const color gui::color::EMPTY [static]

Definition at line 28 of file gui_color.hpp.

Definition at line 26 of file gui_color.hpp.

const color gui::color::GREEN [static]

Definition at line 32 of file gui_color.hpp.

const color gui::color::GREY [static]

Definition at line 34 of file gui_color.hpp.

Definition at line 26 of file gui_color.hpp.

const color gui::color::RED [static]

Definition at line 31 of file gui_color.hpp.

const color gui::color::WHITE [static]

Definition at line 29 of file gui_color.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 1 21:58:12 2013 for gui by  doxygen 1.6.1