• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Protected Member Functions | Properties | List of all members
KColorValueSelector Class Reference

#include <kcolorvalueselector.h>

Inheritance diagram for KColorValueSelector:
Inheritance graph
[legend]

Public Member Functions

 KColorValueSelector (QWidget *parent=0)
 
 KColorValueSelector (Qt::Orientation o, QWidget *parent=0)
 
 ~KColorValueSelector ()
 
KColorChooserMode chooserMode () const
 
int colorValue () const
 
int hue () const
 
int saturation () const
 
void setChooserMode (KColorChooserMode chooserMode)
 
void setColorValue (int colorValue)
 
void setHue (int hue)
 
void setSaturation (int saturation)
 
void updateContents ()
 
- Public Member Functions inherited from KSelector
 KSelector (QWidget *parent=0)
 
 KSelector (Qt::Orientation o, QWidget *parent=0)
 
 ~KSelector ()
 
Qt::ArrowType arrowDirection () const
 
QRect contentsRect () const
 
bool indent () const
 
void setArrowDirection (Qt::ArrowType direction)
 
void setIndent (bool i)
 

Protected Member Functions

virtual void drawContents (QPainter *painter)
 
virtual void drawPalette (QPixmap *pixmap)
 
virtual void resizeEvent (QResizeEvent *)
 
- Protected Member Functions inherited from KSelector
virtual void drawArrow (QPainter *painter, const QPoint &pos)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void paintEvent (QPaintEvent *)
 
virtual void wheelEvent (QWheelEvent *)
 

Properties

int colorValue
 
int hue
 
int saturation
 
- Properties inherited from KSelector
Qt::ArrowType arrowDirection
 
bool indent
 
int maxValue
 
int minValue
 
int value
 

Detailed Description

Definition at line 28 of file kcolorvalueselector.h.

Constructor & Destructor Documentation

KColorValueSelector::KColorValueSelector ( QWidget *  parent = 0)
explicit

Constructs a widget for color selection.

Definition at line 41 of file kcolorvalueselector.cpp.

KColorValueSelector::KColorValueSelector ( Qt::Orientation  o,
QWidget *  parent = 0 
)
explicit

Constructs a widget for color selection with a given orientation.

Definition at line 47 of file kcolorvalueselector.cpp.

KColorValueSelector::~KColorValueSelector ( )

Definition at line 53 of file kcolorvalueselector.cpp.

Member Function Documentation

KColorChooserMode KColorValueSelector::chooserMode ( ) const

Returns the current chooser mode.

Returns
The chooser mode (one of the KColorChooserMode constants)

Definition at line 118 of file kcolorvalueselector.cpp.

int KColorValueSelector::colorValue ( ) const

Returns the current color value.

Returns
The color value (0-255)
void KColorValueSelector::drawContents ( QPainter *  painter)
protectedvirtual

Reimplemented from KSelector.

The drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.

Reimplemented from KSelector.

Definition at line 100 of file kcolorvalueselector.cpp.

void KColorValueSelector::drawPalette ( QPixmap *  pixmap)
protectedvirtual

Draws the contents of the widget on a pixmap, which is used for buffering.

Definition at line 123 of file kcolorvalueselector.cpp.

int KColorValueSelector::hue ( ) const

Returns the current hue value.

Returns
The hue value (0-359)
void KColorValueSelector::resizeEvent ( QResizeEvent *  )
protectedvirtual

Definition at line 95 of file kcolorvalueselector.cpp.

int KColorValueSelector::saturation ( ) const

Returns the current saturation value.

Returns
The saturation value (0-255)
void KColorValueSelector::setChooserMode ( KColorChooserMode  chooserMode)

Sets the chooser mode.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters
chooserModeSets the chooser mode (one of the KColorChooserMode constants)

Definition at line 105 of file kcolorvalueselector.cpp.

void KColorValueSelector::setColorValue ( int  colorValue)

Sets the color value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters
colorValueSets the color value (0-255)

Definition at line 83 of file kcolorvalueselector.cpp.

void KColorValueSelector::setHue ( int  hue)

Sets the hue value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters
hueSets the hue value (0-359)

Definition at line 63 of file kcolorvalueselector.cpp.

void KColorValueSelector::setSaturation ( int  saturation)

Sets the saturation value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters
saturationSets the saturation value (0-255)

Definition at line 73 of file kcolorvalueselector.cpp.

void KColorValueSelector::updateContents ( )

Updates the widget's contents.

Definition at line 90 of file kcolorvalueselector.cpp.

Property Documentation

int KColorValueSelector::colorValue
readwrite

Definition at line 33 of file kcolorvalueselector.h.

int KColorValueSelector::hue
readwrite

Definition at line 31 of file kcolorvalueselector.h.

int KColorValueSelector::saturation
readwrite

Definition at line 32 of file kcolorvalueselector.h.


The documentation for this class was generated from the following files:
  • kcolorvalueselector.h
  • kcolorvalueselector.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal