2006-04-10 20:40:38 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#ifndef HEADER_Header
|
|
|
|
#define HEADER_Header
|
|
|
|
/*
|
2006-06-06 20:28:42 +00:00
|
|
|
htop - Header.h
|
2011-05-26 16:35:07 +00:00
|
|
|
(C) 2004-2011 Hisham H. Muhammad
|
2006-03-04 18:16:49 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2011-12-26 21:35:57 +00:00
|
|
|
#include "ProcessList.h"
|
2006-04-10 20:40:38 +00:00
|
|
|
#include "Meter.h"
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
typedef enum HeaderSide_ {
|
|
|
|
LEFT_HEADER,
|
|
|
|
RIGHT_HEADER
|
|
|
|
} HeaderSide;
|
|
|
|
|
|
|
|
typedef struct Header_ {
|
2006-05-30 13:45:40 +00:00
|
|
|
Vector* leftMeters;
|
|
|
|
Vector* rightMeters;
|
2006-03-04 18:16:49 +00:00
|
|
|
ProcessList* pl;
|
|
|
|
int height;
|
|
|
|
int pad;
|
2014-02-27 19:35:22 +00:00
|
|
|
bool margin;
|
2006-03-04 18:16:49 +00:00
|
|
|
} Header;
|
|
|
|
|
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(a,b) ((a)>(b)?(a):(b))
|
|
|
|
#endif
|
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
Header* Header_new(ProcessList* pl);
|
|
|
|
|
|
|
|
void Header_delete(Header* this);
|
|
|
|
|
|
|
|
void Header_createMeter(Header* this, char* name, HeaderSide side);
|
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
void Header_setMode(Header* this, int i, MeterModeId mode, HeaderSide side);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
Meter* Header_addMeter(Header* this, MeterClass* type, int param, HeaderSide side);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
int Header_size(Header* this, HeaderSide side);
|
|
|
|
|
|
|
|
char* Header_readMeterName(Header* this, int i, HeaderSide side);
|
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
MeterModeId Header_readMeterMode(Header* this, int i, HeaderSide side);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2011-03-22 20:37:08 +00:00
|
|
|
void Header_reinit(Header* this);
|
|
|
|
|
|
|
|
void Header_draw(const Header* this);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
int Header_calculateHeight(Header* this);
|
|
|
|
|
|
|
|
#endif
|