2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef __CD_APPLET_STRUCT__
22
#define __CD_APPLET_STRUCT__
24
#include <cairo-dock.h>
26
typedef enum _CDIllusionEffect {
27
CD_ILLUSION_EVAPORATE=0,
31
CD_ILLUSION_BLACK_HOLE,
32
CD_ILLUSION_NB_EFFECTS
36
//\___________ structure containing the applet's configuration parameters.
37
struct _AppletConfig {
38
CDIllusionEffect iDisappearanceEffect;
39
CDIllusionEffect iAppearanceEffect;
41
gint iEvaporateDuration;
42
gint iEvaporateNbParticles;
43
gdouble pEvaporateColor1[3];
44
gdouble pEvaporateColor2[3];
45
gboolean bMysticalEvaporate;
46
gint iNbEvaporateParticles;
47
gint iEvaporateParticleSize;
48
gdouble fEvaporateParticleSpeed;
49
gboolean bEvaporateFromBottom;
51
gint iFadeOutDuration;
53
gint iExplodeDuration;
54
gint iExplodeNbPiecesX, iExplodeNbPiecesY;
55
gdouble fExplosionRadius;
56
gboolean bExplodeCube;
59
gint iBreakNbBorderPoints;
61
gint iBlackHoleDuration;
62
gdouble fBlackHoleRotationSpeed;
66
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc.
68
GLuint iEvaporateTexture;
72
gdouble fRotationSpeed;
74
} CDIllusionExplosion;
80
gdouble fRotationAngle;
89
} CDIllusionBlackHole;
92
typedef struct _CDIllusionData {
93
CDIllusionEffect iCurrentEffect;
95
gdouble fTimeLimitPercent;
100
gdouble fEvaporatePercent;
101
CairoParticleSystem *pEvaporateSystem;
103
gdouble fFadeOutAlpha;
105
gdouble fExplosionRadius;
106
gdouble fExplosionRotation;
107
gdouble fExplodeAlpha;
108
CDIllusionExplosion *pExplosionPart;
110
CDIllusionBreak *pBreakPart;
114
CDIllusionBlackHole *pBlackHolePoints;
115
GLfloat *pBlackHoleCoords, *pBlackHoleVertices;