~blue-shell-next/carbon-gtk/master

« back to all changes in this revision

Viewing changes to src/oxygenanimationmodes.h

  • Committer: David Edmundson
  • Date: 2015-02-11 15:48:54 UTC
  • Revision ID: git-v1:ed61428ce6f52c8b8551e5efd0cdc4f2ad956719
RenameĀ files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef oxygenanimationmodes_h
2
 
#define oxygenanimationmodes_h
3
 
 
4
 
/*
5
 
* oxygenanimationmodes.h
6
 
* animation modes
7
 
* -------------------
8
 
*
9
 
* Copyright (c) 2012 Hugo Pereira Da Costa <hugo.pereira@free.fr>
10
 
*
11
 
* Largely inspired from Qtcurve style
12
 
* Copyright (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com
13
 
*
14
 
* This  library is free  software; you can  redistribute it and/or
15
 
* modify it  under  the terms  of the  GNU Lesser  General  Public
16
 
* License  as published  by the Free  Software  Foundation; either
17
 
* version 2 of the License, or( at your option ) any later version.
18
 
*
19
 
* This library is distributed  in the hope that it will be useful,
20
 
* but  WITHOUT ANY WARRANTY; without even  the implied warranty of
21
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
 
* Lesser General Public License for more details.
23
 
*
24
 
* You should have received a copy of the GNU Lesser General Public
25
 
* License  along  with  this library;  if not,  write to  the Free
26
 
* Software Foundation, Inc., 51  Franklin St, Fifth Floor, Boston,
27
 
* MA 02110-1301, USA.
28
 
*/
29
 
 
30
 
#include "oxygenflags.h"
31
 
 
32
 
namespace Oxygen
33
 
{
34
 
 
35
 
    //! animation type
36
 
    /*! used for menubars, toolbars and menus */
37
 
    enum AnimationType
38
 
    {
39
 
        NoAnimation,
40
 
        Fade,
41
 
        FollowMouse
42
 
    };
43
 
 
44
 
    //! animated widget type
45
 
    /*!
46
 
    used for engines that keep track of previously(fade-out) and
47
 
    currently (fade-in) animated objects
48
 
    */
49
 
    enum WidgetType
50
 
    {
51
 
        AnimationCurrent,
52
 
        AnimationPrevious
53
 
    };
54
 
 
55
 
    //! animation mode
56
 
    enum AnimationMode
57
 
    {
58
 
        AnimationNone = 0,
59
 
        AnimationHover = 1<<0,
60
 
        AnimationFocus = 1<<1,
61
 
    };
62
 
 
63
 
    OX_DECLARE_FLAGS( AnimationModes, AnimationMode )
64
 
    OX_DECLARE_OPERATORS_FOR_FLAGS( AnimationModes )
65
 
 
66
 
}
67
 
 
68
 
#endif