"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/irix65/gfxmeter.h" (11 Jul 2020, 646 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gfxmeter.h" see the Fossies "Dox" file reference documentation.

    1 //  
    2 //  Initial port performed by Stefan Eilemann (eilemann@gmail.com)
    3 //
    4 
    5 #ifndef _GFXMETER_H_
    6 #define _GFXMETER_H_
    7 
    8 #include "sarmeter.h"
    9 
   10 #include <rpcsvc/rstat.h>
   11 
   12 class GfxMeter : public FieldMeterGraph
   13 {
   14 public:
   15     GfxMeter(XOSView *parent, int max);
   16     ~GfxMeter(void);
   17     
   18     const char *name(void) const { return "GfxMeter"; }  
   19     void checkevent(void);
   20     
   21     void checkResources(void);
   22 
   23     static int nPipes( void );
   24 protected:
   25     void getgfxinfo(void);
   26     
   27     unsigned long swapgfxcol_, warngfxcol_, critgfxcol_;
   28     
   29 private:
   30     int warnThreshold, critThreshold, alarmstate, lastalarmstate;
   31     int _nPipes;
   32 };
   33 
   34 #endif