2
* Gauge 2 headers for Cairo-Dock
4
* Copyright : (C) 2009 by Fabrice Rey
5
* E-mail : fabounet@users.berlios.de
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
* http://www.gnu.org/licenses/licenses.html#GPL
19
#ifndef __CAIRO_DOCK_GAUGE2__
20
#define __CAIRO_DOCK_GAUGE2__
22
#include "cairo-dock-struct.h"
23
#include <cairo-dock-data-renderer.h>
24
#include <libxml/tree.h>
25
#include <libxml/parser.h>
29
RsvgHandle *pSvgHandle;
30
cairo_surface_t *pSurface;
39
gdouble posStart, posStop;
41
gint iNeedleRealWidth, iNeedleRealHeight;
42
gdouble iNeedleOffsetX, iNeedleOffsetY;
44
gint iNeedleWidth, iNeedleHeight;
45
GaugeImage2 *pImageNeedle;
49
GaugeImage2 *pImageList;
52
gdouble textWidth, textHeight;
57
CairoDataRenderer dataRenderer;
59
GaugeImage2 *pImageBackground;
60
GaugeImage2 *pImageForeground;
61
GList *pIndicatorList;
64
typedef struct _CairoGaugeAttribute CairoGaugeAttribute;
65
struct _CairoGaugeAttribute {
66
CairoDataRendererAttribute rendererAttribute;
71
void cairo_dock_xml_open_file2 (const gchar *filePath, const gchar *mainNodeName,xmlDocPtr *xmlDoc,xmlNodePtr *node);
73
void cairo_dock_render_gauge2 (Gauge2 *pGauge, cairo_t *pCairoContext);
75
void cairo_dock_render_gauge_opengl2 (Gauge2 *pGauge);
77
void cairo_dock_reload_gauge2 (Gauge2 *pGauge, cairo_t *pSourceContext);
79
void cairo_dock_free_gauge2 (Gauge2 *pGauge);
81
void cairo_dock_add_watermark_on_gauge2 (cairo_t *pSourceContext, Gauge2 *pGauge, gchar *cImagePath, double fAlpha);
83
Gauge2 *cairo_dock_new_gauge (void);
86
/*GHashTable *cairo_dock_list_available_gauges (void);
88
const gchar *cairo_dock_get_gauge_key_value (gchar *cAppletConfFilePath, GKeyFile *pKeyFile, gchar *cGroupName, gchar *cKeyName, gboolean *bFlushConfFileNeeded, gchar *cDefaultThemeName);*/