FunctionBar.h 945 Bytes
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
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

12
13

#include <stdbool.h>
Hisham Muhammad's avatar
Hisham Muhammad committed
14
15
16
17
18
19
20
21
22

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

Hisham Muhammad's avatar
Hisham Muhammad committed
23

Hisham Muhammad's avatar
Hisham Muhammad committed
24
25
26

FunctionBar* FunctionBar_newEnterEsc(const char* enter, const char* esc);

Richard's avatar
Richard committed
27
FunctionBar* FunctionBar_new(const char* const* functions, const char* const* keys, const int* events);
Hisham Muhammad's avatar
Hisham Muhammad committed
28

29
void FunctionBar_delete(FunctionBar* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
30

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

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

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

37
int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos);
Hisham Muhammad's avatar
Hisham Muhammad committed
38
39

#endif