~ubuntu-branches/ubuntu/oneiric/cairo-dock/oneiric-201110111206

« back to all changes in this revision

Viewing changes to src/cairo-dock-gauge2.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne, Matthieu Baerts (matttbe), Julien Lavergne
  • Date: 2009-10-04 16:33:52 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20091004163352-ttbbjfmpb8uzl8j4
Tags: 2.0.9-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version. (LP: #435587)
* Added apport hook in debian/apport
 - Add debian/apport
 - debian/cairo-dock-core.install: Added debian/apport/cairo-dock.py
* Use .desktop provided by upstream
 - Removed debian/*.desktop
 - debian/cairo-dock-core.install: install upstream desktop files. 

[ Julien Lavergne ]
* Adjust debian/changelog with Daniel Holbach suggestions.
* debian/patches/01_rename_cairo-dock-package-theme.patch: drop, 
  merged upstream.
* debian/patches/01-desktop-file-category.patch:
 - Remove Encoding field and set category to Utility.
* debian/patches/02-merge-changelog.patch:
 - Merge ChangeLog and ChangeLog-2.0.9.
* debian/apport: Remove commands with grep, python doesn't like it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
* Gauge 2 headers for Cairo-Dock
3
 
*
4
 
* Copyright : (C) 2009 by Fabrice Rey
5
 
* E-mail    : fabounet@users.berlios.de
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
 
*   http://www.gnu.org/licenses/licenses.html#GPL
17
 
*/
18
 
 
19
 
#ifndef __CAIRO_DOCK_GAUGE2__
20
 
#define  __CAIRO_DOCK_GAUGE2__
21
 
 
22
 
#include "cairo-dock-struct.h"
23
 
#include <cairo-dock-data-renderer.h>
24
 
#include <libxml/tree.h>
25
 
#include <libxml/parser.h>
26
 
G_BEGIN_DECLS
27
 
 
28
 
typedef struct {
29
 
        RsvgHandle *pSvgHandle;
30
 
        cairo_surface_t *pSurface;
31
 
        gint sizeX;
32
 
        gint sizeY;
33
 
        GLuint iTexture;
34
 
} GaugeImage2;
35
 
 
36
 
typedef struct {
37
 
        // needle
38
 
        gdouble posX, posY;
39
 
        gdouble posStart, posStop;
40
 
        gdouble direction;
41
 
        gint iNeedleRealWidth, iNeedleRealHeight;
42
 
        gdouble iNeedleOffsetX, iNeedleOffsetY;
43
 
        gdouble fNeedleScale;
44
 
        gint iNeedleWidth, iNeedleHeight;
45
 
        GaugeImage2 *pImageNeedle;
46
 
        // image list
47
 
        gint iNbImages;
48
 
        gint iNbImageLoaded;
49
 
        GaugeImage2 *pImageList;
50
 
        // text zone
51
 
        gdouble textX, textY;
52
 
        gdouble textWidth, textHeight;
53
 
        gdouble textColor[3];
54
 
} GaugeIndicator2;
55
 
 
56
 
typedef struct {
57
 
        CairoDataRenderer dataRenderer;
58
 
        gchar *cThemeName;
59
 
        GaugeImage2 *pImageBackground;
60
 
        GaugeImage2 *pImageForeground;
61
 
        GList *pIndicatorList;
62
 
} Gauge2;
63
 
 
64
 
typedef struct _CairoGaugeAttribute CairoGaugeAttribute;
65
 
struct _CairoGaugeAttribute {
66
 
        CairoDataRendererAttribute rendererAttribute;
67
 
        gchar *cThemePath;
68
 
};
69
 
 
70
 
 
71
 
void cairo_dock_xml_open_file2 (const gchar *filePath, const gchar *mainNodeName,xmlDocPtr *xmlDoc,xmlNodePtr *node);
72
 
 
73
 
void cairo_dock_render_gauge2 (Gauge2 *pGauge, cairo_t *pCairoContext);
74
 
 
75
 
void cairo_dock_render_gauge_opengl2 (Gauge2 *pGauge);
76
 
 
77
 
void cairo_dock_reload_gauge2 (Gauge2 *pGauge, cairo_t *pSourceContext);
78
 
 
79
 
void cairo_dock_free_gauge2 (Gauge2 *pGauge);
80
 
 
81
 
void cairo_dock_add_watermark_on_gauge2 (cairo_t *pSourceContext, Gauge2 *pGauge, gchar *cImagePath, double fAlpha);
82
 
 
83
 
Gauge2 *cairo_dock_new_gauge (void);
84
 
 
85
 
 
86
 
/*GHashTable *cairo_dock_list_available_gauges (void);
87
 
 
88
 
const gchar *cairo_dock_get_gauge_key_value (gchar *cAppletConfFilePath, GKeyFile *pKeyFile, gchar *cGroupName, gchar *cKeyName, gboolean *bFlushConfFileNeeded, gchar *cDefaultThemeName);*/
89
 
 
90
 
 
91
 
G_END_DECLS
92
 
#endif