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_CLOCK_STRUCT__
22
#define __CD_CLOCK_STRUCT__
24
#include <cairo-dock.h>
27
//Frame de fond pour chaque partie de l'heure
33
cairo_surface_t *pFrameSurface;
40
cairo_surface_t *pTextSurface;
43
//Mode digital de l'horloge, contient tout ce dont on a besoin
44
//Surfaces et paramètres X/Y/W/H
46
ClockDigitalFrame pFrame[4];
47
ClockDigitalText pText[4];
48
gboolean bSecondCapable;
57
typedef enum _LayerElement
59
CLOCK_DROP_SHADOW = 0,
62
CLOCK_HOUR_HAND_SHADOW,
63
CLOCK_MINUTE_HAND_SHADOW,
64
CLOCK_SECOND_HAND_SHADOW,
74
typedef enum _SurfaceKind
94
struct _AppletConfig {
95
CairoDockInfoDisplay iShowDate;
96
gboolean bShowSeconds;
100
double fDateColor[4];
103
gchar *cSetupTimeCommand;
108
gint iSmoothAnimationDuration;
112
cairo_surface_t *pBackgroundSurface;
113
cairo_surface_t *pForegroundSurface;
114
RsvgDimensionData DimensionData;
115
RsvgDimensionData needleDimension;
116
gint iNeedleRealWidth, iNeedleRealHeight;
117
gdouble iNeedleOffsetX, iNeedleOffsetY;
118
gdouble fNeedleScale;
119
RsvgHandle *pSvgHandles[CLOCK_ELEMENTS];
120
guint iSidUpdateClock;
122
CairoDialog *pCalendarDialog;
123
gchar *cSystemLocation;
124
gint iLastCheckedMinute, iLastCheckedDay, iLastCheckedMonth, iLastCheckedYear;
125
struct tm currentTime;
127
ClockDigital pDigitalClock;
129
GLuint iBgTexture, iFgTexture, iHourNeedleTexture, iMinuteNeedleTexture, iSecondNeedleTexture, iDateTexture;
130
gint iNeedleWidth, iNeedleHeight;
131
gint iDateWidth, iDateHeight;
132
gint iSmoothAnimationStep;