Logo Search packages:      
Sourcecode: fbdesk version File versions  Download package

FbTk::Color Class Reference

#include <Color.hh>

List of all members.


Detailed Description

Holds rgb color and pixel value

Definition at line 36 of file Color.hh.


Public Member Functions

unsigned char blue () const
 Color (const char *color_string, int screen)
 Color (unsigned char red, unsigned char green, unsigned char blue, int screen)
 Color (const Color &col_copy)
 Color (unsigned long pixel)
unsigned char green () const
bool isAllocated () const
unsigned long pixel () const
unsigned char red () const
bool setFromString (const char *color_string, int screen)
void setPixel (unsigned long pixel)
 TODO don't like this.

Private Member Functions

void allocate (unsigned char red, unsigned char green, unsigned char blue, int screen)
void copy (const Color &col)
void free ()
void setAllocated (bool a)
void setRGB (unsigned char red, unsigned char green, unsigned char blue)

Private Attributes

bool m_allocated
unsigned char m_blue
unsigned char m_green
unsigned long m_pixel
unsigned char m_red
int m_screen

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

Generated by  Doxygen 1.6.0   Back to index