~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to plugins/fade/src/fade.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    public FadeOptions
39
39
{
40
40
    public:
 
41
 
41
42
        FadeScreen (CompScreen *s);
42
43
 
43
 
        bool setOption (const CompString &, CompOption::Value &);
44
 
 
45
 
        bool bell (CompAction *, CompAction::State state, CompOption::Vector &);
 
44
        bool setOption (const CompString  &,
 
45
                        CompOption::Value &);
 
46
 
 
47
        bool bell (CompAction         *,
 
48
                   CompAction::State  state,
 
49
                   CompOption::Vector &);
 
50
 
46
51
        void handleEvent (XEvent *);
 
52
 
47
53
        void preparePaint (int);
48
54
 
49
 
        int displayModals;
50
 
        int fadeTime;
 
55
        int             displayModals;
 
56
        int             fadeTime;
51
57
 
52
58
        CompositeScreen *cScreen;
53
59
};
58
64
    public PluginClassHandler<FadeWindow, CompWindow>
59
65
{
60
66
    public:
 
67
 
61
68
        FadeWindow (CompWindow *w);
62
69
        ~FadeWindow ();
63
70
 
64
71
        void windowNotify (CompWindowNotify);
65
 
        void paintStep (unsigned int, int, int);
66
 
 
67
 
        bool glPaint (const GLWindowPaintAttrib&, const GLMatrix&,
68
 
                      const CompRegion&, unsigned int);
 
72
 
 
73
        void paintStep (unsigned int  ,
 
74
                        int           ,
 
75
                        int            );
 
76
 
 
77
        bool glPaint (const GLWindowPaintAttrib &,
 
78
                      const GLMatrix            &,
 
79
                      const CompRegion          &,
 
80
                      unsigned int                );
69
81
 
70
82
        void addDisplayModal ();
 
83
 
71
84
        void removeDisplayModal ();
72
85
 
73
86
        void dim (bool);
74
87
 
75
88
    private:
 
89
 
76
90
        FadeScreen      *fScreen;
77
91
        CompWindow      *window;
78
92
        CompositeWindow *cWindow;
79
93
        GLWindow        *gWindow;
80
94
 
81
 
        GLushort opacity;
82
 
        GLushort brightness;
83
 
        GLushort saturation;
84
 
 
85
 
        GLushort targetOpacity;
86
 
        GLushort targetBrightness;
87
 
        GLushort targetSaturation;
88
 
 
89
 
        bool dModal;
90
 
 
91
 
        int steps;
92
 
        int fadeTime;
93
 
 
94
 
        int opacityDiff;
95
 
        int brightnessDiff;
96
 
        int saturationDiff;
 
95
        GLushort        opacity;
 
96
        GLushort        brightness;
 
97
        GLushort        saturation;
 
98
 
 
99
        GLushort        targetOpacity;
 
100
        GLushort        targetBrightness;
 
101
        GLushort        targetSaturation;
 
102
 
 
103
        bool            dModal;
 
104
 
 
105
        int             steps;
 
106
        int             fadeTime;
 
107
 
 
108
        int             opacityDiff;
 
109
        int             brightnessDiff;
 
110
        int             saturationDiff;
97
111
};
98
112
 
99
113
class FadePluginVTable :
100
114
    public CompPlugin::VTableForScreenAndWindow<FadeScreen, FadeWindow>
101
115
{
102
116
    public:
 
117
 
103
118
        bool init ();
104
119
};