From 266ab52b3a741a58fb17c48b0f7939d7c5d266de Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:19 +0200 Subject: Imported Upstream version 0.6 --- FunctionBar.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'FunctionBar.h') 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); -- cgit v1.2.3