htop/FunctionBar.h

53 lines
1.0 KiB
C
Raw Permalink Normal View History

2006-06-06 20:28:42 +00:00
/* Do not edit this file. It was automatically generated. */
2006-03-04 18:16:49 +00:00
#ifndef HEADER_FunctionBar
#define HEADER_FunctionBar
/*
2006-06-06 20:28:42 +00:00
htop - FunctionBar.h
2006-03-04 18:16:49 +00:00
(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;
2006-06-06 20:28:42 +00:00
#ifdef DEBUG
2006-03-04 18:16:49 +00:00
extern char* FUNCTIONBAR_CLASS;
#else
#define FUNCTIONBAR_CLASS NULL
#endif
2006-03-04 18:16:49 +00:00
2009-06-02 04:51:23 +00:00
FunctionBar* FunctionBar_new(char** functions, char** keys, int* events);
2006-03-04 18:16:49 +00:00
2006-06-06 20:28:42 +00:00
void FunctionBar_delete(Object* cast);
2006-03-04 18:16:49 +00:00
void FunctionBar_setLabel(FunctionBar* this, int event, char* text);
2006-06-06 20:28:42 +00:00
void FunctionBar_draw(FunctionBar* this, char* buffer);
2006-03-04 18:16:49 +00:00
void FunctionBar_drawAttr(FunctionBar* this, char* buffer, int attr);
int FunctionBar_synthesizeEvent(FunctionBar* this, int pos);
#endif