File indexing completed on 2024-04-28 05:32:09
0001 #ifndef oxygenanimationmodes_h 0002 #define oxygenanimationmodes_h 0003 0004 /* 0005 * oxygenanimationmodes.h 0006 * animation modes 0007 * ------------------- 0008 * 0009 * SPDX-FileCopyrightText: 2012 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0010 * 0011 * Largely inspired from Qtcurve style 0012 * SPDX-FileCopyrightText: 2003-2010 Craig Drummond <craig.p.drummond@gmail.com> 0013 * 0014 * SPDX-License-Identifier: LGPL-2.0-or-later 0015 */ 0016 0017 #include "oxygenflags.h" 0018 0019 namespace Oxygen 0020 { 0021 0022 //! animation type 0023 /*! used for menubars, toolbars and menus */ 0024 enum AnimationType 0025 { 0026 NoAnimation, 0027 Fade, 0028 FollowMouse 0029 }; 0030 0031 //! animated widget type 0032 /*! 0033 used for engines that keep track of previously(fade-out) and 0034 currently (fade-in) animated objects 0035 */ 0036 enum WidgetType 0037 { 0038 AnimationCurrent, 0039 AnimationPrevious 0040 }; 0041 0042 //! animation mode 0043 enum AnimationMode 0044 { 0045 AnimationNone = 0, 0046 AnimationHover = 1<<0, 0047 AnimationFocus = 1<<1, 0048 }; 0049 0050 OX_DECLARE_FLAGS( AnimationModes, AnimationMode ) 0051 OX_DECLARE_OPERATORS_FOR_FLAGS( AnimationModes ) 0052 0053 } 0054 0055 #endif