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

« back to all changes in this revision

Viewing changes to src/cairo-dock-graph2.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
 
* Graph 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_GRAPH2__
20
 
#define  __CAIRO_DOCK_GRAPH2__
21
 
 
22
 
#include <gtk/gtk.h>
23
 
G_BEGIN_DECLS
24
 
 
25
 
#include <cairo-dock-struct.h>
26
 
#include <cairo-dock-data-renderer.h>
27
 
 
28
 
typedef enum {
29
 
        CAIRO_DOCK_GRAPH2_LINE=0,
30
 
        CAIRO_DOCK_GRAPH2_PLAIN,
31
 
        CAIRO_DOCK_GRAPH2_BAR,
32
 
        CAIRO_DOCK_GRAPH2_CIRCLE,
33
 
        CAIRO_DOCK_GRAPH2_CIRCLE_PLAIN
34
 
        } CairoDockTypeGraph2;
35
 
 
36
 
typedef struct _CairoGraph2Attribute CairoGraph2Attribute;
37
 
struct _CairoGraph2Attribute {
38
 
        CairoDataRendererAttribute rendererAttribute;
39
 
        CairoDockTypeGraph2 iType;
40
 
        gdouble *fHighColor;  // iNbValues triplets (r,v,b).
41
 
        gdouble *fLowColor;  // idem.
42
 
        gdouble fBackGroundColor[4];
43
 
        gint iRadius;
44
 
        gboolean bMixGraphs;
45
 
};
46
 
 
47
 
typedef struct _CairoDockGraph2 {
48
 
        CairoDataRenderer dataRenderer;
49
 
        CairoDockTypeGraph2 iType;
50
 
        gdouble *fHighColor;  // iNbValues triplets (r,v,b).
51
 
        gdouble *fLowColor;  // idem.
52
 
        cairo_pattern_t **pGradationPatterns;  // iNbValues patterns.
53
 
        gdouble fBackGroundColor[4];
54
 
        cairo_surface_t *pBackgroundSurface;
55
 
        GLuint iBackgroundTexture;
56
 
        gint iRadius;
57
 
        gdouble fMargin;
58
 
        gboolean bMixGraphs;
59
 
        } CairoDockGraph2;
60
 
 
61
 
void cairo_dock_render_graph2 (CairoDockGraph2 *pGraph, cairo_t *pCairoContext);
62
 
 
63
 
void cairo_dock_reload_graph2 (CairoDockGraph2 *pGraph, cairo_t *pSourceContext);
64
 
 
65
 
void cairo_dock_load_graph2 (CairoDockGraph2 *pGraph, cairo_t *pSourceContext, CairoContainer *pContainer, CairoGraph2Attribute *pAttribute);
66
 
 
67
 
void cairo_dock_free_graph2 (CairoDockGraph2 *pGraph);
68
 
 
69
 
CairoDockGraph2 *cairo_dock_new_graph2 (void);
70
 
 
71
 
 
72
 
void cairo_dock_add_watermark_on_graph2 (cairo_t *pSourceContext, CairoDockGraph2 *pGraph, gchar *cImagePath, double fAlpha);
73
 
 
74
 
 
75
 
G_END_DECLS
76
 
#endif