Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ColorWheel Class Reference
+ Inheritance diagram for ColorWheel:

Public Slots

void setColor (const QColor &color)
 

Signals

void colorSelected (const QColor &color)
 
void colorChanged (const QColor &color)
 

Public Member Functions

 ColorWheel (QWidget *parent=0)
 
virtual QSize sizeHint () const
 
virtual QSize minimumSizeHint () const
 
QColor color ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *)
 
void resizeEvent (QResizeEvent *event)
 
void paintEvent (QPaintEvent *)
 

Private Member Functions

void changeColor (const QColor &color)
 
void hueChanged (const int &hue)
 
void svChanged (const QColor &newcolor)
 
void alphaChanged (const int &alpha)
 
QColor pickColor (const QPoint &point)
 
void drawHueIndicator (const int &hue)
 
void drawPicker (const QColor &color)
 
void drawWheelImage (const QSize &newSize)
 
void drawSquareImage (const int &hue)
 
void composeWheel (QPixmap &pixmap)
 

Private Attributes

QSize m_initSize
 
QImage m_wheelImage
 
QImage m_squareImage
 
QPixmap m_wheelPixmap
 
int m_wheelThickness
 
QRegion m_wheelRegion
 
QRegion m_squareRegion
 
QColor m_currentColor
 
bool m_isInWheel
 
bool m_isInSquare
 

Detailed Description

Definition at line 23 of file colorwheel.h.


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