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

« back to all changes in this revision

Viewing changes to plugins/widget/src/widget.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:
49
49
 
50
50
        enum WidgetState
51
51
        {
52
 
            StateOff = 0,
53
 
            StateFadeIn = 1,
54
 
            StateOn = 2,
 
52
            StateOff     = 0,
 
53
            StateFadeIn  = 1,
 
54
            StateOn      = 2,
55
55
            StateFadeOut = 3
56
56
        };
57
57
 
58
58
    public:
 
59
 
59
60
        WidgetScreen (CompScreen *screen);
60
61
        ~WidgetScreen ();
61
62
 
97
98
        updateStatus (CompWindow *w);
98
99
 
99
100
        void
100
 
        optionChanged (CompOption *,
101
 
                       WidgetOptions::Options  num);
102
 
 
103
 
        Window mLastActiveWindow;
104
 
        Atom   mCompizWidgetAtom;
105
 
 
106
 
        WidgetState mState;
107
 
        int         mFadeTime;
108
 
        CompScreen::GrabHandle  mGrabIndex;
109
 
        Cursor      mCursor;
 
101
        optionChanged (CompOption             *,
 
102
                       WidgetOptions::Options num);
 
103
 
 
104
        Window                 mLastActiveWindow;
 
105
        Atom                   mCompizWidgetAtom;
 
106
 
 
107
        WidgetState            mState;
 
108
        int                    mFadeTime;
 
109
        CompScreen::GrabHandle mGrabIndex;
 
110
        Cursor                 mCursor;
110
111
};
111
112
 
112
113
#define WIDGET_SCREEN(screen)                                                  \
132
133
        ~WidgetWindow ();
133
134
 
134
135
        CompWindow *window;
135
 
        GLWindow *gWindow;
 
136
        GLWindow   *gWindow;
136
137
 
137
138
        bool
138
 
        glPaint (const GLWindowPaintAttrib &, const GLMatrix &,
139
 
                 const CompRegion &, unsigned int);
 
139
        glPaint (const GLWindowPaintAttrib &,
 
140
                 const GLMatrix            &,
 
141
                 const CompRegion          &,
 
142
                 unsigned int                );
140
143
 
141
144
        bool
142
145
        focus ();
159
162
        bool
160
163
        managed () const;
161
164
 
162
 
        bool mIsWidget;
163
 
        bool mWasHidden;
164
 
        CompWindow *mParentWidget;
165
 
        CompTimer  mMatchUpdate;
166
 
        CompTimer  mWidgetStatusUpdate;
 
165
        bool                mIsWidget;
 
166
        bool                mWasHidden;
 
167
        CompWindow          *mParentWidget;
 
168
        CompTimer           mMatchUpdate;
 
169
        CompTimer           mWidgetStatusUpdate;
167
170
        WidgetPropertyState mPropertyState;
168
171
};
169
172