aboutsummaryrefslogtreecommitdiff
path: root/loadgraph.h
diff options
context:
space:
mode:
authorAgney Lopes Roth Ferraz <agney@debian.org>2006-05-22 19:43:53 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:34 -0500
commit1db37ee0b1dbfebe11ff6a0eee8000392e4f3f61 (patch)
tree02b7da09dbd8cdf8828c01f47154fc76269eb9cc /loadgraph.h
parent1a3b201e8e94d8c07b3e0a2ce1af22293a53b506 (diff)
parent854292407779593a401a1d5ce71add51880fa84f (diff)
Import Debian changes 0.4-1
hardinfo (0.4-1) unstable; urgency=low * new upstream release
Diffstat (limited to 'loadgraph.h')
-rw-r--r--loadgraph.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/loadgraph.h b/loadgraph.h
new file mode 100644
index 00000000..81bdcde4
--- /dev/null
+++ b/loadgraph.h
@@ -0,0 +1,61 @@
+/*
+ * Simple Load Graph
+ * Copyright (C) 2006 Leandro A. F. Pereira <leandro@linuxmag.com.br>
+ *
+ * The Simple Load Graph is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License, version 2.1, as published by the Free Software Foundation.
+ *
+ * The Simple Load Graph is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with the Simple Load Graph; if not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ * 02111-1307 USA.
+ */
+
+
+#ifndef __LOADGRAPH_H__
+#define __LOADGRAPH_H__
+
+#include <stdlib.h>
+#include <gtk/gtk.h>
+#include <math.h>
+
+typedef struct _LoadGraph LoadGraph;
+
+typedef enum {
+ LG_COLOR_GREEN = 0x4FB05A,
+ LG_COLOR_BLUE = 0x4F58B0,
+ LG_COLOR_RED = 0xB04F4F
+} LoadGraphColor;
+
+struct _LoadGraph {
+ GdkPixmap *buf;
+ GtkWidget *area;
+
+ GdkGC *grid;
+ GdkGC *trace;
+
+ gint *data;
+ gfloat scale;
+
+ gint size;
+ gint width, height;
+ LoadGraphColor color;
+
+};
+
+LoadGraph *load_graph_new(gint size);
+void load_graph_destroy(LoadGraph *lg);
+void load_graph_configure_expose(LoadGraph *lg);
+GtkWidget *load_graph_get_framed(LoadGraph *lg);
+
+void load_graph_update(LoadGraph *lg, gint value);
+void load_graph_set_color(LoadGraph *lg, LoadGraphColor color);
+void load_graph_clear(LoadGraph *lg);
+
+#endif /* __LOADGRAPH_H__ */