GnomeProcBar

Name

GnomeProcBar — Gnome Process Bar

Synopsis


#include <gnome.h>


struct      GnomeProcBar;
#define     GNOME_PROC_BAR__CLASS           (klass)
GtkWidget*  gnome_proc_bar_new              (GtkWidget *label,
                                             gint n,
                                             GdkColor *colors,
                                             gint (*cb) ());
void        gnome_proc_bar_set_values       (GnomeProcBar *pb,
                                             unsigned val[]);
void        gnome_proc_bar_set_orient       (GnomeProcBar *pb,
                                             gboolean vertical);
void        gnome_proc_bar_start            (GnomeProcBar *pb,
                                             gint gtime,
                                             gpointer data);
void        gnome_proc_bar_stop             (GnomeProcBar *pb);
void        gnome_proc_bar_update           (GnomeProcBar *pb,
                                             GdkColor *colors);

Object Hierarchy


  GtkObject
   +----GtkWidget
         +----GtkContainer
               +----GtkBox
                     +----GtkHBox
                           +----GnomeProcBar

Description

The GnomeProcBar widget is used to display load graphs like cpu usage, memory and swap load. It is for instance used in the cpumemusage applet and in GTop.

Details

struct GnomeProcBar

struct GnomeProcBar;


GNOME_PROC_BAR__CLASS()

#define GNOME_PROC_BAR__CLASS(klass)	GTK_CHECK_CLASS_CAST (klass, gnome_proc_bar_get_type (), GnomeProcBarClass)

klass : 


gnome_proc_bar_new ()

GtkWidget*  gnome_proc_bar_new              (GtkWidget *label,
                                             gint n,
                                             GdkColor *colors,
                                             gint (*cb) ());

Creates a new Gnome Process Bar.

label : Either NULL or a GtkWidget that will be shown at the left side of the process bar.
n : Number of items.
colors : Pointer to an array of n GdkColor elements.
cb : Callback function to update the process bar.
Returns :the newly created GnomeProcBar widget.


gnome_proc_bar_set_values ()

void        gnome_proc_bar_set_values       (GnomeProcBar *pb,
                                             unsigned val[]);

pb : 
Param2 : 


gnome_proc_bar_set_orient ()

void        gnome_proc_bar_set_orient       (GnomeProcBar *pb,
                                             gboolean vertical);

pb : 
vertical : 


gnome_proc_bar_start ()

void        gnome_proc_bar_start            (GnomeProcBar *pb,
                                             gint gtime,
                                             gpointer data);

pb : 
gtime : 
data : 


gnome_proc_bar_stop ()

void        gnome_proc_bar_stop             (GnomeProcBar *pb);

pb : 


gnome_proc_bar_update ()

void        gnome_proc_bar_update           (GnomeProcBar *pb,
                                             GdkColor *colors);

pb : 
colors :