FunctionBar.h 1.04 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
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
(C) 2004-2006 Hisham H. Muhammad
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
40
41

FunctionBar* FunctionBar_new(int size, char** functions, char** keys, int* events);

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

void FunctionBar_setLabel(FunctionBar* this, int event, char* text);

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

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

int FunctionBar_synthesizeEvent(FunctionBar* this, int pos);

#endif