GTK+2 panel 

GTK+2 panel Git Source Tree

Root/libgpwidgets/gpw-cpu-private.h

1/* Gtk2Panel - A bleeding edge Gtk+2 panel
2 * Copyright (C) 2009 Nicola Fontana <ntd at entidi.it>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20
21#ifndef __GPW_CPU_PRIVATE_H__
22#define __GPW_CPU_PRIVATE_H__
23
24
25G_BEGIN_DECLS
26
27#define GPW_CPU_GET_DATA(cpu) ((GpwCpuPrivate *) ((GpwCpu *) (cpu))->data)
28
29
30typedef struct _GpwCpuPrivate GpwCpuPrivate;
31
32
33struct _GpwCpuPrivate {
34 guint poll;
35
36 GdkPixmap *offscreen;
37 gint width;
38 gint height;
39
40 unsigned long user;
41 unsigned long nice;
42 unsigned long system;
43 unsigned long idle;
44};
45
46G_END_DECLS
47
48
49#endif /* __GPW_CPU_PRIVATE_H__ */

Archive Download this file

Branches

Tags