FunctionBar.h 1.07 KB
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5

#ifndef HEADER_FunctionBar
#define HEADER_FunctionBar
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - FunctionBar.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2011 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#include "Object.h"
#include "CRT.h"

#include "debug.h"
#include <assert.h>

#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <curses.h>


typedef struct FunctionBar_ {
   Object super;
   int size;
   char** functions;
   char** keys;
   int* events;
   bool staticData;
} FunctionBar;

Hisham Muhammad's avatar
Hisham Muhammad committed
33

34
#ifdef DEBUG
Hisham Muhammad's avatar
Hisham Muhammad committed
35
extern char* FUNCTIONBAR_CLASS;
36
37
38
#else
#define FUNCTIONBAR_CLASS NULL
#endif
Hisham Muhammad's avatar
Hisham Muhammad committed
39

Hisham Muhammad's avatar
Hisham Muhammad committed
40
FunctionBar* FunctionBar_new(const char** functions, const char** keys, int* events);
Hisham Muhammad's avatar
Hisham Muhammad committed
41

Hisham Muhammad's avatar
Hisham Muhammad committed
42
void FunctionBar_delete(Object* cast);
Hisham Muhammad's avatar
Hisham Muhammad committed
43

Hisham Muhammad's avatar
Hisham Muhammad committed
44
void FunctionBar_setLabel(FunctionBar* this, int event, const char* text);
Hisham Muhammad's avatar
Hisham Muhammad committed
45

46
void FunctionBar_draw(const FunctionBar* this, char* buffer);
Hisham Muhammad's avatar
Hisham Muhammad committed
47

48
void FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr);
Hisham Muhammad's avatar
Hisham Muhammad committed
49

50
int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos);
Hisham Muhammad's avatar
Hisham Muhammad committed
51
52

#endif