~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to digikam/libs/themeengine/texture.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2006-05-15 01:15:02 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515011502-kpyuz7766hpbuia8
Tags: 0.8.2~rc1-0ubuntu1
* sync with debian (UVF see #44102)
  0.8.2~rc1-0ubuntu1 is identical to debian's 0.8.1+0.8.2-rc1-1.
  Version was changed due to latest 0.8.1.ubuntu-0ubuntu1 upload.
  This version is unfortunately bigger than debian's 0.8.1+0.8.2-rc1-1
* Merge in ubuntu changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ============================================================
 
2
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
2
3
 * Date  : 2004-07-26
3
4
 * Description : 
 
5
 *
 
6
 * Copyright 2004 by Renchi Raju
4
7
 * 
5
8
 * Adapted from fluxbox: Texture/TextureRender
6
9
 *
30
33
#ifndef TEXTURE_H
31
34
#define TEXTURE_H
32
35
 
33
 
#include <qpixmap.h>
 
36
// Qt includes.
 
37
 
34
38
#include <qcolor.h>
35
39
 
36
 
#include "theme.h"
37
 
 
38
 
class Texture
39
 
{
 
40
// Local includes.
 
41
 
 
42
#include "digikam_export.h"
 
43
 
 
44
namespace Digikam
 
45
{
 
46
 
 
47
class TexturePriv;
 
48
 
 
49
class DIGIKAM_EXPORT Texture
 
50
{
 
51
 
40
52
public:
41
53
 
42
54
    Texture(int w, int h, const QColor& from, const QColor& to,
57
69
 
58
70
    void buildImage();
59
71
 
60
 
    QPixmap       m_pixmap;
61
 
    QColor        m_color0;
62
 
    QColor        m_color1;
63
 
    int           m_width;
64
 
    int           m_height;
65
 
    bool          m_border;
66
 
    QColor        m_borderColor;
67
 
 
68
 
    unsigned char* m_red;
69
 
    unsigned char* m_green;
70
 
    unsigned char* m_blue;
71
 
 
72
 
    Theme::Bevel    m_bevel;
73
 
    Theme::Gradient m_gradient;
 
72
private:
 
73
 
 
74
    TexturePriv* d;
 
75
    
74
76
};
75
77
 
 
78
}  // NameSpace Digikam
 
79
 
76
80
#endif /* TEXTURE_H */