FunctionBar.h 851 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
FunctionBar* FunctionBar_new(const char** functions, const char** keys, int* events);
Hisham Muhammad's avatar
Hisham Muhammad committed
25

26
void FunctionBar_delete(FunctionBar* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
27

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

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

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

34
int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos);
Hisham Muhammad's avatar
Hisham Muhammad committed
35
36

#endif