home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / window / evision1 / tdesktop.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-19  |  3.3 KB  |  65 lines

  1. #if !defined (TDESKTOP)                   // To prevent multiple declarations
  2. #define TDESKTOP
  3.  
  4. // ---- Header Files --------------------------------------------------------
  5.  
  6. #include "screen.hpp"
  7. #include "tstatusline.hpp"
  8. #include "tmenubar.hpp"
  9.  
  10.  
  11. // ---- Class Declarations --------------------------------------------------
  12.  
  13. class tdesktop
  14. {
  15.    int              deskbackcolor ;               // Desktop background color
  16.    int              deskforecolor ;               // Desktop foreground color
  17.    char             desktexture ;             // ASCII code to create desktop
  18.    char        huge *desktitle ;                             // Desktop title
  19.    int              desktitlebackcolor ;            // Title background color
  20.    int              desktitleforecolor ;            // Title foreground color
  21.    int              desktextmode ;        // Text mode to use to open desktop
  22.    text_info        deskti ;                     // To save screen attributes
  23.    cur_info         deskci ;                     // To save cursor attributes
  24.    char        huge *desksavedscr ;                 // To save screen content
  25.    tstatusline huge *deskslptr ;                     // Ptr to the statusline
  26.    tmenubar    huge *deskmbptr ;                        // Ptr to the menubar
  27.    int              deskstatus ;                            // 0:close 1:open
  28.  
  29.    int              screenheight ;                          // Current height
  30.    int              screenwidth ;                            // Current width
  31.  
  32.    public:
  33.  
  34.         far tdesktop () ;                                      // Constructor
  35.         far ~tdesktop () ;                                      // Destructor
  36.  
  37.    void far settextmode                                       // Set textmode
  38.       ( int mode ) ;                                  // Textmode code number
  39.    void far setdeskcolors                               // Set desktop colors
  40.       ( int back,                              // Background color of desktop
  41.         int fore ) ;                           // Foreground color of desktop
  42.    void far settexture                                 // Set desktop texture
  43.       ( char asciicode ) ;           // ASCII code of char to use for texture
  44.    void far settitle                                  // Set title of desktop
  45.       ( char huge *text,                                        // Title text
  46.         int back=-1,                             // Background color of title
  47.         int fore=-1 ) ;                          // Foreground color of title
  48.    void far open () ;                            // Setup and display desktop
  49.    void far close () ;                    // Close desktop and restore screen
  50.    void far insert                               // Set ptr to the statusline
  51.       ( tstatusline huge *slptr ) ;                  // Ptr to the statusline
  52.    void far insert                                  // Set ptr to the menubar
  53.       ( tmenubar huge *mbptr ) ;                        // Ptr to the menubar
  54.    void far refresh () ;              // Redraw desktop, statline and menubar
  55.  
  56.    private:
  57.  
  58.    void far display () ;                                      // Draw desktop
  59. } ;
  60.  
  61.  
  62. // ---- End Header File -----------------------------------------------------
  63.  
  64. #endif
  65.