Main Page | Class List | Directories | File List | Class Members | File Members | Related Pages

Sample Class Reference

#include <sample.h>

List of all members.

Public Member Functions

 Sample (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~Sample ()
void setColor (const rColor &)

Private Attributes

QSize frSize
QSize txtSize
QString text
QPixmap bg
QPixmap fg
QPixmap txt


Detailed Description

This class was created to show color samples and is used for the "new" and "old" representation of colors. Here the color is painted on a white background with black letters, in order to make the effect of the alpha value visible.


Constructor & Destructor Documentation

Sample::Sample QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

The c'tor creates the fixed size frame and paints the background pixmap containing the letters.

Here is the call graph for this function:

Sample::~Sample  ) 
 


Member Function Documentation

void Sample::setColor const rColor c  ) 
 

Sets the currently shown color. The pixmap containing the text is copied to the background pixmap and painted with a pixmap created from the color c.

Here is the call graph for this function:


Member Data Documentation

QPixmap Sample::bg [private]
 

QPixmap Sample::fg [private]
 

QSize Sample::frSize [private]
 

QString Sample::text [private]
 

QPixmap Sample::txt [private]
 

QSize Sample::txtSize [private]
 


The documentation for this class was generated from the following files:
Go back to rwm - the window manager's - Home page.
created 13 Jun 2005 for colordlg $Revision:1.1$ by Rolf C. Rönnau using doxygen 1.4.2