FunctionBar.h 1008 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
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

Hisham Muhammad's avatar
Hisham Muhammad committed
34
35
36
37
extern char* FUNCTIONBAR_CLASS;

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

Hisham Muhammad's avatar
Hisham Muhammad committed
38
void FunctionBar_delete(Object* cast);
Hisham Muhammad's avatar
Hisham Muhammad committed
39
40
41

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

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

Hisham Muhammad's avatar
Hisham Muhammad committed
44
45
46
47
48
void FunctionBar_drawAttr(FunctionBar* this, char* buffer, int attr);

int FunctionBar_synthesizeEvent(FunctionBar* this, int pos);

#endif