home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 November / VPR9611B.ISO / vabasic / ntclnt.exe / DISK8 / data.8 / datab / INCLUDE / VWSCREEN.HH < prev    next >
Text File  |  1996-07-29  |  4KB  |  99 lines

  1. //--------------------------------------------------------------
  2. // $Source: /rcs/vwrcs/components/intel/vwscreen.hh,v $
  3. // Checked in by: $Author: georgeb $
  4. // $Date: 1996/03/08 21:49:49 $           $Revision: 1.5 $
  5. //--------------------------------------------------------------
  6. //         Copyright(c) 1992, Visual Edge Software Ltd.
  7. //
  8. // ALL RIGHTS RESERVED. This notice is intended as a precaution
  9. // against inadvertent publication, and shall not be deemed to
  10. // consitute an acknowledgment that publication has occurred
  11. // nor to imply any waiver of confidentiality. The year included
  12. // in the notice is the year of the creation of the work.
  13. //--------------------------------------------------------------
  14. // DESCRIPTION:
  15. //      This file contains the class declaration for the
  16. //      VwScreen class. It maintains the application
  17. //      screen object for any program build using the Viper
  18. //      components.
  19. //--------------------------------------------------------------
  20.  
  21. #ifndef VWSCREEN_HH
  22. #define VWSCREEN_HH
  23.  
  24. #include <vwglobal.hh>
  25. #include <vwguicmp.hh>
  26.  
  27. class VwScreen {
  28. friend  class VwApplication;
  29.  
  30. public:
  31.         /*-------------------------------------------------
  32.          * Destructor
  33.          *------------------------------------------------*/
  34.         virtual VOPERDECL ~VwScreen ();
  35.  
  36.         /*-------------------------------------------------
  37.          * Public Methods
  38.          *------------------------------------------------*/
  39.  
  40.         VMETHODDECL(VwGuiComponent*)            ActiveControl ();
  41.         VMETHODDECL(VwStatus)                   PutActiveControl (VwGuiComponent *);
  42.  
  43.         VMETHODDECL(VwGuiComponent*)            ActiveForm ();
  44.         VMETHODDECL(VwStatus)                   PutActiveForm (VwGuiComponent *);
  45.  
  46.         VMETHODDECL(VwInt)                      FontCount ();
  47.         VMETHODDECL(String)                     Fonts (VwInt);
  48.  
  49.         VMETHODDECL(VwMousePointer)             MousePointer ();
  50.         VMETHODDECL(VwStatus)                   PutMousePointer (VwMousePointer);
  51.  
  52.         static  VMETHODDECL(VwBool)             IsMonoDisplay();
  53.  
  54.         static  VMETHODDECL(VwSingle)           Height ();
  55.         static  VMETHODDECL(VwSingle)           Width ();
  56.  
  57.         static  VMETHODDECL(VwSingle)           TwipsPerPixelX ();
  58.         static  VMETHODDECL(VwSingle)           TwipsPerPixelY ();
  59.  
  60.         static  VMETHODDECL(VwSingle)           MillimeterVertScale();
  61.         static  VMETHODDECL(VwSingle)           MillimeterHorizScale();
  62.         VMETHODDECL(VwApplication *)            Application();
  63.         
  64. protected:
  65.         /*
  66.          * protected constructor friends can only instantiate class
  67.          */
  68.         VOPERDECL VwScreen (VwApplication*);
  69.  
  70. private:
  71.         void    AddFont(char*);
  72.  
  73. //      friend  int CALLBACK    EnumFontFamProc(const LOGFONT* plf,
  74. //                                                              const TEXTMETRIC*, int, LPARAM clientData);
  75.  
  76.         VwApplication   *itsApplication;
  77.         VwGuiComponent  *itsActiveControl;
  78.         VwGuiComponent  *itsActiveForm;
  79.         VwMousePointer  itsMousePointer;
  80.  
  81.         VwInt                   itsFontCount;
  82.         VwInt                   itsFontArraySize;
  83.         String*                 itsFonts;
  84.  
  85.         static  VwBool          isMonoDisplay;
  86.  
  87.         static  VwSingle        itsHeight;
  88.         static  VwSingle        itsWidth;
  89.  
  90.         static  VwSingle        itsTwipsPerPixelX;
  91.         static  VwSingle        itsTwipsPerPixelY;
  92.  
  93.         static  VwSingle        itsMillimeterHorzScale;
  94.         static  VwSingle        itsMillimeterVertScale;
  95. };
  96.  
  97. #endif
  98.  
  99.