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

FbTk::Color Class Reference

#include <Color.hh>

List of all members.


Detailed Description

Allocates rgb color and pixel value.

Definition at line 35 of file Color.hh.


Public Member Functions

unsigned short blue () const
 Color (const char *color_string, int screen)
 parses and sets rgb and pixel value from a string
 Color (unsigned short red, unsigned short green, unsigned short blue, int screen)
 Color (const Color &col_copy)
 Color (unsigned long pixel)
unsigned short green () const
bool isAllocated () const
Coloroperator= (const Color &col_copy)
unsigned long pixel () const
unsigned short red () const
bool setFromString (const char *color_string, int screen)
 parses and sets rgb and pixel value from a string
void setPixel (unsigned long pixel)
 TODO don't like this.

Private Member Functions

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

Private Attributes

bool m_allocated
unsigned short m_blue
unsigned short m_green
unsigned long m_pixel
unsigned short 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