• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KStyles

scrollbar.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2007 Matthew Woehlke <mw_triad@users.sourceforge.net>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License version 2 as published by the Free Software Foundation.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public License
00014  * along with this library; see the file COPYING.LIB.  If not, write to
00015  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017  */
00018 
00019 #ifndef __OXYGEN_STYLE_SCROLLBAR_H
00020 #define __OXYGEN_STYLE_SCROLLBAR_H
00021 
00022 #include "tileset.h"
00023 
00024 class QPainter;
00025 class QLinearGradient;
00026 
00027 class OxygenScrollbar {
00028 public:
00029     OxygenScrollbar(const QColor&, double contrast);
00030 
00031     TileSet* horizontal(int size, int width, int offset) const;
00032     TileSet* vertical(int size, int width, int offset) const;
00033 
00034 private:
00035     void mask(QPainter &p, const QRectF &rect) const;
00036 
00037     QLinearGradient baseGradient(double width, Qt::Orientation orient) const;
00038     QLinearGradient shineGradient(double width, Qt::Orientation orient) const;
00039     QLinearGradient shimmerGradient(double offset, Qt::Orientation orient) const;
00040     QLinearGradient dimGradient(Qt::Orientation orient) const;
00041 
00042     QPixmap bevel(int width, int height, double w, double h, int rx, int ry) const;
00043 
00044     QColor color;
00045     QColor light;
00046     QColor mid;
00047     QColor dark;
00048     QColor shadow;
00049     QColor highlight;
00050 };
00051 
00052 #endif // __OXYGEN_STYLE_SCROLLBAR_H

KStyles

Skip menu "KStyles"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal