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/>.
20
#ifndef __RYTHMBOX_STRUCT__
21
#define __RYTHMBOX_STRUCT__
23
#include <cairo-dock.h>
26
MY_APPLET_NOTHING = 0,
27
MY_APPLET_TIME_ELAPSED,
31
MY_APPLET_NB_QUICK_INFO_TYPE
32
} MyAppletQuickInfoType;
41
} MyAppletPlayerStatus;
44
MY_APPLET_PERSONNAL = 0,
47
MY_APPLET_FRAME_REFLECTS,
49
MY_APPLET_FRAME_SCOTCH,
50
MY_APPLET_NB_DECORATIONS
53
#define NB_TRANSITION_STEP 8.
56
struct _AppletConfig {
57
gboolean enableDialogs;
60
gchar *changeAnimation;
61
MyAppletQuickInfoType quickInfoType;
63
gchar *cUserImage[PLAYER_NB_STATUS];
64
gboolean bStealTaskBarIcon;
65
//gboolean extendedDesklet;
67
gboolean bOpenglThemes;
72
cairo_surface_t *pSurfaces[PLAYER_NB_STATUS];
73
cairo_surface_t *pCover;
80
gboolean b3dThemesDebugMode;
84
gchar *playing_artist;
88
gchar *previous_cover;
90
gint iSidGetDistantCover;
91
gboolean bCoverNeedsTest;
92
gint iCurrentFileSize;
94
gint iCoverTransition;
95
GLuint iPrevTextureCover;
100
GLuint TextureReflect;
104
gdouble ibottomleftX;
105
gdouble ibottomleftY;
106
gdouble ibottomrightX;
107
gdouble ibottomrightY;
110
GLuint draw_cover; // calllist
114
/// A passer en structure...
115
gboolean mouseOnButton1;
116
GLuint TextureButton1;
117
gdouble button1coordX, button1coordY;
118
gdouble button1sizeX, button1sizeY;
120
GLuint TextureOsdPlay;
121
gdouble osdPlaycoordX, osdPlaycoordY;
122
gdouble osdPlaysizeX, osdPlaysizeY;
123
GLuint TextureOsdPause;
124
gdouble osdPausecoordX, osdPausecoordY;
125
gdouble osdPausesizeX, osdPausesizeY;
127
gboolean mouseOnButton2;
128
GLuint TextureButton2;
129
gdouble button2coordX, button2coordY;
130
gdouble button2sizeX, button2sizeY;
132
GLuint TextureOsdPrev;
133
gdouble osdPrevcoordX, osdPrevcoordY;
134
gdouble osdPrevsizeX, osdPrevsizeY;
136
gboolean mouseOnButton3;
137
GLuint TextureButton3;
138
gdouble button3coordX, button3coordY;
139
gdouble button3sizeX, button3sizeY;
141
GLuint TextureOsdNext;
142
gdouble osdNextcoordX, osdNextcoordY;
143
gdouble osdNextsizeX, osdNextsizeY;
145
gboolean mouseOnButton4;
146
GLuint TextureButton4;
147
gdouble button4coordX, button4coordY;
148
gdouble button4sizeX, button4sizeY;
150
GLuint TextureOsdHome;
151
gdouble osdHomecoordX, osdHomecoordY;
152
gdouble osdHomesizeX, osdHomesizeY;
156
gint iState; // combinaison des etats des differents boutons.
157
/*gboolean CoverWasDistant; // a degager en testant sur la taille ...
158
gint iCurrentFileSize;
160
gboolean bSizeIsConstant;
161
guint iSidLoopForMagnatune;
162
gboolean bLoopForMagnatune;
163
gboolean bLoopForMagnatuneDone;*/