home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tv20os2.zip
/
demos
/
gadgets.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-19
|
998b
|
58 lines
/*---------------------------------------------------------*/
/* */
/* Gadgets.h : Header file for gadgets.cpp */
/* */
/*---------------------------------------------------------*/
/*
* Turbo Vision - Version 2.0
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
*/
#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();
virtual long heapSize();
private:
long 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