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

« back to all changes in this revision

Viewing changes to src/implementations/cairo-dock-gauge.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-09-07 20:31:25 UTC
  • mto: (18.1.1 cairo-dock) (19.1.1 cairo-dock)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20100907203125-a91ch8odv2r6ziic
Tags: upstream-2.2.0~0rc1
ImportĀ upstreamĀ versionĀ 2.2.0~0rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
/**
31
31
*@file cairo-dock-gauge.h This class defines the Gauge, which derives from the DataRenderer.
32
 
* All you need to know is the attributes that define a Gauge, the API to use is the common API for DataRenderer, i ncairo-dock-data-renderer.h.
33
 
*/ 
 
32
* All you need to know is the attributes that define a Gauge, the API to use is the common API for DataRenderer, defined in cairo-dock-data-renderer.h.
 
33
*/
 
34
 
 
35
/// Attributes of a Gauge.
 
36
typedef struct _CairoGaugeAttribute CairoGaugeAttribute;
 
37
struct _CairoGaugeAttribute {
 
38
        /// General attributes of any DataRenderer.
 
39
        CairoDataRendererAttribute rendererAttribute;
 
40
        /// path to a gauge theme.
 
41
        const gchar *cThemePath;
 
42
};
 
43
 
34
44
 
35
45
typedef struct {
36
46
        RsvgHandle *pSvgHandle;
54
64
        gint iNbImages;
55
65
        gint iNbImageLoaded;
56
66
        GaugeImage *pImageList;
57
 
        // text zone
58
 
        CairoDataRendererTextZone textZone;
 
67
        // value text zone
 
68
        CairoDataRendererTextParam textZone;
59
69
        // logo zone
60
 
        CairoDataRendererEmblem emblem;
 
70
        CairoDataRendererEmblemParam emblem;
 
71
        // label text zone
 
72
        CairoDataRendererTextParam labelZone;
61
73
} GaugeIndicator;
62
74
 
63
75
typedef struct {
68
80
        GList *pIndicatorList;
69
81
} Gauge;
70
82
 
71
 
/// Attributes of a Gauge.
72
 
typedef struct _CairoGaugeAttribute CairoGaugeAttribute;
73
 
struct _CairoGaugeAttribute {
74
 
        /// General attributes of any DataRenderer.
75
 
        CairoDataRendererAttribute rendererAttribute;
76
 
        /// path to a gauge theme.
77
 
        const gchar *cThemePath;
78
 
};
79
 
 
80
 
 
81
 
Gauge *cairo_dock_new_gauge (void);
82
 
 
83
 
/**
84
 
GHashTable *cairo_dock_list_available_gauges (void);
85
 
 
86
 
gchar *cairo_dock_get_gauge_theme_path (const gchar *cThemeName, CairoDockPackageType iType);
87
 
 
88
 
gchar *cairo_dock_get_package_path_for_gauge (const gchar *cAppletConfFilePath, GKeyFile *pKeyFile, const gchar *cGroupName, const gchar *cKeyName, gboolean *bFlushConfFileNeeded, const gchar *cDefaultThemeName);
89
 
*/
 
83
 
 
84
void cairo_dock_register_data_renderer_gauge (void);
 
85
 
90
86
 
91
87
G_END_DECLS
92
88
#endif