home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xled.h < prev    next >
C/C++ Source or Header  |  1998-01-18  |  1KB  |  37 lines

  1. #ifndef __OOL_XLED_H__
  2. #define __OOL_XLED_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XLED                                  */
  8. /*                       derived from: XUserWindow                           */
  9. /*                        last update: 7/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "XfrmWnd.h"
  15. #include "xuserwnd.h"
  16. #include "xtext.h"
  17.  
  18. class XBitmap;
  19. class XGraphicDevice;
  20.  
  21.  
  22. class _export_ XLED: public XUserWindow
  23. {
  24.    private:
  25.       BOOL state;
  26.       XGraphicDevice * dev;
  27.       XBitmap * map;
  28.    public:
  29.       virtual void Draw( void );
  30.       XLED( const XWindow *, const XPoint& = XPoint(), const USHORT id = 0);
  31.       ~XLED();
  32.       void Enable( const BOOL on = TRUE );
  33.       BOOL GetState() { return state; }
  34. };
  35.  
  36. #endif
  37.