The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
#if !defined( __GADGETS_H )
#define __GADGETS_H
#define Uses_TEvent
#define Uses_TRect
#define Uses_TView
#include <tvision/tv.h>
class THeapView : public TView
{
public :
THeapView( TRect& r );
virtual void update();
virtual void draw();
uint32_t heapSize();
private :
uint32_t oldMem, newMem;
char heapStr[16];
};
class TClockView : public TView
{
public :
TClockView( TRect& r );
virtual void draw();
virtual void update();
private :
char lastTime[9];
char curTime[9];
};
#endif // __GADGETS_H
|