| 1 |
/** |
| 2 |
* This file is a part of the Cairo-Dock project |
| 3 |
* |
| 4 |
* Copyright : (C) see the 'copyright' file. |
| 5 |
* E-mail : see the 'copyright' file. |
| 6 |
* |
| 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. |
| 11 |
* |
| 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/>. |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef __CD_APPLET_STRUCT__ |
| 21 |
#define __CD_APPLET_STRUCT__ |
| 22 |
|
| 23 |
#include <cairo-dock.h> |
| 24 |
|
| 25 |
//\___________ structure containing the applet's configuration parameters. |
| 26 |
struct _AppletConfig { |
| 27 |
gboolean bShowKbdIndicator; |
| 28 |
gchar *cBackgroundImage; |
| 29 |
gdouble fTextRatio; |
| 30 |
GldiTextDescription textDescription; |
| 31 |
gint iTransitionDuration; |
| 32 |
gchar *cShortkey; |
| 33 |
gchar *cEmblemNumLock; |
| 34 |
gchar *cEmblemCapsLock; |
| 35 |
gint iNLetters; |
| 36 |
} ; |
| 37 |
|
| 38 |
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc. |
| 39 |
struct _AppletData { |
| 40 |
CairoDockImageBuffer bgImage; |
| 41 |
CairoDockImageBuffer *pCurrentImage; |
| 42 |
CairoDockImageBuffer *pOldImage; |
| 43 |
/**cairo_surface_t *pCurrentSurface; |
| 44 |
GLuint iCurrentTexture; |
| 45 |
gint iCurrentTextWidth, iCurrentTextHeight; |
| 46 |
cairo_surface_t *pOldSurface; |
| 47 |
GLuint iOldTexture; |
| 48 |
gint iOldTextWidth, iOldTextHeight;*/ |
| 49 |
gint iCurrentGroup; |
| 50 |
guint iCurrentIndic, iPreviousIndic; |
| 51 |
GldiShortkey *pKeyBinding; |
| 52 |
gchar *cEmblemNumLock; |
| 53 |
gchar *cEmblemCapsLock; |
| 54 |
gpointer pEngine; // const, should not be freed |
| 55 |
gchar *cShortGroupName; // current text displayed |
| 56 |
gchar *cGroupName; // current label displayed |
| 57 |
} ; |
| 58 |
|
| 59 |
|
| 60 |
#endif |