~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to src/lm-graph.h

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by GOB (v2.0.14)   (do not edit directly) */
2
 
 
3
 
#include <glib.h>
4
 
#include <glib-object.h>
5
 
 
6
 
 
7
 
#include <gtk/gtk.h>
8
 
#include "lm-applet.h"
9
 
 
10
 
#ifndef __LM_GRAPH_H__
11
 
#define __LM_GRAPH_H__
12
 
 
13
 
#ifdef __cplusplus
14
 
extern "C" {
15
 
#endif /* __cplusplus */
16
 
 
17
 
 
18
 
/*
19
 
 * Type checking and casting macros
20
 
 */
21
 
#define LM_TYPE_GRAPH   (lm_graph_get_type())
22
 
#define LM_GRAPH(obj)   G_TYPE_CHECK_INSTANCE_CAST((obj), lm_graph_get_type(), LMGraph)
23
 
#define LM_GRAPH_CONST(obj)     G_TYPE_CHECK_INSTANCE_CAST((obj), lm_graph_get_type(), LMGraph const)
24
 
#define LM_GRAPH_CLASS(klass)   G_TYPE_CHECK_CLASS_CAST((klass), lm_graph_get_type(), LMGraphClass)
25
 
#define LM_IS_GRAPH(obj)        G_TYPE_CHECK_INSTANCE_TYPE((obj), lm_graph_get_type ())
26
 
 
27
 
#define LM_GRAPH_GET_CLASS(obj) G_TYPE_INSTANCE_GET_CLASS((obj), lm_graph_get_type(), LMGraphClass)
28
 
 
29
 
/* Private structure type */
30
 
typedef struct _LMGraphPrivate LMGraphPrivate;
31
 
 
32
 
/*
33
 
 * Main object structure
34
 
 */
35
 
#ifndef __TYPEDEF_LM_GRAPH__
36
 
#define __TYPEDEF_LM_GRAPH__
37
 
typedef struct _LMGraph LMGraph;
38
 
#endif
39
 
struct _LMGraph {
40
 
        GtkDrawingArea __parent__;
41
 
        /*< private >*/
42
 
        LMGraphPrivate *_priv;
43
 
};
44
 
 
45
 
/*
46
 
 * Class definition
47
 
 */
48
 
typedef struct _LMGraphClass LMGraphClass;
49
 
struct _LMGraphClass {
50
 
        GtkDrawingAreaClass __parent__;
51
 
};
52
 
 
53
 
 
54
 
/*
55
 
 * Public methods
56
 
 */
57
 
GType   lm_graph_get_type       (void);
58
 
void    lm_graph_set_data       (LMGraph * self,
59
 
                                        GArray * val);
60
 
void    lm_graph_set_markup     (LMGraph * self,
61
 
                                        gchar * val);
62
 
GtkWidget *     lm_graph_new    (LMApplet * applet);
63
 
 
64
 
/*
65
 
 * Argument wrapping macros
66
 
 */
67
 
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
68
 
#define LM_GRAPH_PROP_APPLET(arg)       "applet", __extension__ ({gpointer z = (arg); z;})
69
 
#define LM_GRAPH_GET_PROP_APPLET(arg)   "applet", __extension__ ({gpointer *z = (arg); z;})
70
 
#define LM_GRAPH_PROP_DATA(arg)         "data", __extension__ ({GArray * z = (arg); z;})
71
 
#define LM_GRAPH_PROP_MARKUP(arg)       "markup", __extension__ ({gchar *z = (arg); z;})
72
 
#else /* __GNUC__ && !__STRICT_ANSI__ */
73
 
#define LM_GRAPH_PROP_APPLET(arg)       "applet",(gpointer )(arg)
74
 
#define LM_GRAPH_GET_PROP_APPLET(arg)   "applet",(gpointer *)(arg)
75
 
#define LM_GRAPH_PROP_DATA(arg)         "data",(GArray * )(arg)
76
 
#define LM_GRAPH_PROP_MARKUP(arg)       "markup",(gchar *)(arg)
77
 
#endif /* __GNUC__ && !__STRICT_ANSI__ */
78
 
 
79
 
 
80
 
#ifdef __cplusplus
81
 
}
82
 
#endif /* __cplusplus */
83
 
 
84
 
#endif