diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
commit | 266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch) | |
tree | b4bccc59b9a35f3acbe7560f3d633940c71aedef /FunctionBar.h | |
parent | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff) | |
download | debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.gz debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.bz2 debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.zip |
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'FunctionBar.h')
-rw-r--r-- | FunctionBar.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/FunctionBar.h b/FunctionBar.h index 3e08f8e..5bb2161 100644 --- a/FunctionBar.h +++ b/FunctionBar.h @@ -9,6 +9,7 @@ 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" @@ -21,21 +22,24 @@ in the source distribution for its full text. typedef struct FunctionBar_ { + Object super; int size; char** functions; char** keys; int* events; + bool staticData; } FunctionBar; - - +extern char* FUNCTIONBAR_CLASS; FunctionBar* FunctionBar_new(int size, char** functions, char** keys, int* events); -void FunctionBar_delete(FunctionBar* this); +void FunctionBar_delete(Object* this); void FunctionBar_draw(FunctionBar* this, char* buffer); +void FunctionBar_setLabel(FunctionBar* this, int event, char* text); + void FunctionBar_drawAttr(FunctionBar* this, char* buffer, int attr); int FunctionBar_synthesizeEvent(FunctionBar* this, int pos); |