Dokumentacja struktury common::COLOR
[Moduł Math, Kolory]

Kolor w formacie A8R8G8B8. Więcej...

#include <Math.hpp>

Lista wszystkich składowych.

Metody publiczne

 COLOR ()
 COLOR (uint4 c)
 COLOR (unsigned long c)
 COLOR (uint1 R, uint1 G, uint1 B)
 COLOR (uint1 A, uint1 R, uint1 G, uint1 B)
bool operator== (COLOR c) const
bool operator!= (COLOR c) const
COLOR operator+ () const
COLOR operator- () const
COLOR operator+ (const COLOR &c) const
COLOR operator- (const COLOR &c) const
COLOR & operator+= (const COLOR &c)
COLOR & operator-= (const COLOR &c)
COLOR operator* (float s) const
COLOR operator/ (float s) const
COLOR & operator*= (float s)
COLOR & operator/= (float s)
COLOR operator* (const COLOR &c) const
COLOR & operator*= (const COLOR &c)

Atrybuty publiczne

union {
   uint4   ARGB
 Cały kolor razem.
   struct {
      uint1   B
      uint1   G
      uint1   R
      uint1   A
   } 
}; 


Opis szczegółowy

Kolor w formacie A8R8G8B8.

Operacje dodawania i odejmowania kolorów, a także dodawania, odejmowania, mnożenia i dzielenia przez liczbę pilnują zakresu i w razie czego obcinają, nie zawijają.


Dokumentacja konstruktora i destruktora

common::COLOR::COLOR (  )  [inline]

common::COLOR::COLOR ( uint4  c  )  [inline]

common::COLOR::COLOR ( unsigned long  c  )  [inline]

common::COLOR::COLOR ( uint1  R,
uint1  G,
uint1  B 
) [inline]

common::COLOR::COLOR ( uint1  A,
uint1  R,
uint1  G,
uint1  B 
) [inline]


Dokumentacja funkcji składowych

bool common::COLOR::operator== ( COLOR  c  )  const [inline]

bool common::COLOR::operator!= ( COLOR  c  )  const [inline]

COLOR common::COLOR::operator+ (  )  const [inline]

COLOR common::COLOR::operator- (  )  const [inline]

COLOR common::COLOR::operator+ ( const COLOR &  c  )  const [inline]

COLOR common::COLOR::operator- ( const COLOR &  c  )  const [inline]

COLOR& common::COLOR::operator+= ( const COLOR &  c  )  [inline]

COLOR& common::COLOR::operator-= ( const COLOR &  c  )  [inline]

COLOR common::COLOR::operator* ( float  s  )  const [inline]

COLOR common::COLOR::operator/ ( float  s  )  const [inline]

COLOR& common::COLOR::operator*= ( float  s  )  [inline]

COLOR& common::COLOR::operator/= ( float  s  )  [inline]

COLOR common::COLOR::operator* ( const COLOR &  c  )  const [inline]

COLOR& common::COLOR::operator*= ( const COLOR &  c  )  [inline]


Dokumentacja atrybutów składowych

Cały kolor razem.

union { ... }


Dokumentacja dla tej struktury została wygenerowana z pliku:

Wygenerowano Sat Mar 29 18:17:02 2008 dla CommonLib programem  doxygen 1.5.5