home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iframext.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  3.2 KB  |  83 lines

  1. #ifndef _IFRAMEXT_INL_
  2. #define _IFRAMEXT_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: iframext.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in iframext.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IFRAMEXT_
  19.   #undef  _IFRAMEXT_INL_
  20.   #define _IFRAMEXT_INL_ 1
  21.   #include <iframext.hpp>
  22. #endif
  23.  
  24. #if _IFRAMEXT_INL_
  25.   #define inline
  26. #endif
  27.  
  28. inline IFrameExtension :: IFrameExtension ( IWindow                     *window,
  29.                                             IFrameWindow::Location       location,
  30.                                             unsigned long                widthOrHeight,
  31.                                             IFrameWindow::SeparatorType  separator )
  32.   : pData( 0 ),
  33.     extType( IFrameExtension::fixed ),
  34.     extFixedSize( widthOrHeight ),
  35.     extLocation( location ),
  36.     extSeparator( separator ),
  37.     extControl( window )
  38.   {
  39.   }
  40.  
  41. inline IFrameExtension :: IFrameExtension ( IWindow                     *window,
  42.                                             IFrameWindow::Location       location,
  43.                                             double                       percentage,
  44.                                             IFrameWindow::SeparatorType  separator )
  45.   : pData( 0 ),
  46.     extType( IFrameExtension::relative ),
  47.     extRelativeSize( percentage ),
  48.     extLocation( location ),
  49.     extSeparator( separator ),
  50.     extControl( window )
  51.   {
  52.   }
  53.  
  54. inline IFrameExtension :: IFrameExtension ( IWindow                     *window,
  55.                                             IFrameWindow::Location       location,
  56.                                             IFrameWindow::SeparatorType  separator )
  57.   : pData( 0 ),
  58.     extType( IFrameExtension::minimumSize ),
  59.     extFixedSize( 0 ),
  60.     extLocation( location ),
  61.     extSeparator( separator ),
  62.     extControl( window )
  63.   {
  64.   }
  65.  
  66. inline IFrameExtension::Type IFrameExtension :: type ( ) const
  67.   {
  68.   return this->extType;
  69.   }
  70.  
  71. inline IFrameWindow::Location IFrameExtension :: location ( ) const
  72.   {
  73.   return this->extLocation;
  74.   }
  75.  
  76.  
  77. inline IWindow *IFrameExtension :: control ( ) const
  78.   {
  79.   return this->extControl;
  80.   }
  81.  
  82. #endif // _IFRAMEXT_INL_
  83.