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
|
2011-05-26 16:35:07 +00:00
|
|
|
(C) 2004-2011 Hisham H. Muhammad
|
2006-03-04 18:16:49 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2015-03-23 18:26:56 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
typedef struct FunctionBar_ {
|
|
|
|
int size;
|
|
|
|
char** functions;
|
|
|
|
char** keys;
|
|
|
|
int* events;
|
|
|
|
bool staticData;
|
|
|
|
} FunctionBar;
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
|
2015-03-23 22:24:34 +00:00
|
|
|
|
|
|
|
FunctionBar* FunctionBar_newEnterEsc(const char* enter, const char* esc);
|
|
|
|
|
2017-07-23 02:41:19 +00:00
|
|
|
FunctionBar* FunctionBar_new(const char* const* functions, const char* const* keys, const int* events);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2015-03-23 18:26:56 +00:00
|
|
|
void FunctionBar_delete(FunctionBar* this);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2010-02-25 01:43:18 +00:00
|
|
|
void FunctionBar_setLabel(FunctionBar* this, int event, const char* text);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2018-01-28 01:28:37 +00:00
|
|
|
int FunctionBar_draw(const FunctionBar* this, char* buffer);
|
2006-06-06 20:28:42 +00:00
|
|
|
|
2018-01-28 01:28:37 +00:00
|
|
|
int FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2011-03-22 20:37:08 +00:00
|
|
|
int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#endif
|