diff options
Diffstat (limited to 'Panel.h')
-rw-r--r-- | Panel.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -1,9 +1,9 @@ -/* Do not edit this file. It was automatically genarated. */ +/* Do not edit this file. It was automatically generated. */ #ifndef HEADER_Panel #define HEADER_Panel /* -htop +htop - Panel.h (C) 2004-2006 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. @@ -15,7 +15,6 @@ in the source distribution for its full text. #include "RichString.h" #include <math.h> -#include <sys/param.h> #include <stdbool.h> #include "debug.h" @@ -48,9 +47,15 @@ struct Panel_ { Panel_EventHandler eventHandler; }; -extern char* PANEL_CLASS; +#ifndef MIN +#define MIN(a,b) ((a)<(b)?(a):(b)) +#endif +#ifndef MAX +#define MAX(a,b) ((a)>(b)?(a):(b)) +#endif +extern char* PANEL_CLASS; Panel* Panel_new(int x, int y, int w, int h, char* type, bool owner); @@ -60,11 +65,11 @@ void Panel_init(Panel* this, int x, int y, int w, int h, char* type, bool owner) void Panel_done(Panel* this); -void Panel_setEventHandler(Panel* this, Panel_EventHandler eh); +inline void Panel_setRichHeader(Panel* this, RichString header); -void Panel_setRichHeader(Panel* this, RichString header); +inline void Panel_setHeader(Panel* this, char* header); -void Panel_setHeader(Panel* this, char* header); +void Panel_setEventHandler(Panel* this, Panel_EventHandler eh); void Panel_move(Panel* this, int x, int y); |