FunctionBar.h 900 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
12
13
14
15
16
17
18
19
20
21
22
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#include "Object.h"

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

Hisham Muhammad's avatar
Hisham Muhammad committed
23

24
extern ObjectClass FunctionBar_class;
Hisham Muhammad's avatar
Hisham Muhammad committed
25

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

Hisham Muhammad's avatar
Hisham Muhammad committed
28
void FunctionBar_delete(Object* cast);
Hisham Muhammad's avatar
Hisham Muhammad committed
29

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

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

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

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

#endif