home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IFRAMEXT.INL < prev    next >
Text File  |  1993-10-22  |  3KB  |  70 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. *   class(es) declared in iframext.hpp.                                        *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19. #ifndef _IFRAMEXT_
  20.   #undef  _IFRAMEXT_INL_
  21.   #define _IFRAMEXT_INL_ 1
  22.   #include <iframext.hpp>
  23. #endif
  24.  
  25. #if _IFRAMEXT_INL_
  26.   #define inline
  27. #endif
  28.  
  29. inline IFrameExtension :: IFrameExtension ( IWindow                     *window,
  30.                                             IFrameWindow::Location       location,
  31.                                             unsigned long                widthOrHeight,
  32.                                             IFrameWindow::SeparatorType  separator )
  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.   : extType( IFrameExtension::relative ),
  46.     extRelativeSize( percentage ),
  47.     extLocation( location ),
  48.     extSeparator( separator ),
  49.     extControl( window )
  50.   {
  51.   }
  52.  
  53. inline IFrameExtension::Type IFrameExtension :: type ( ) const
  54.   {
  55.   return this->extType;
  56.   }
  57.  
  58. inline IFrameWindow::Location IFrameExtension :: location ( ) const
  59.   {
  60.   return this->extLocation;
  61.   }
  62.  
  63.  
  64. inline IWindow *IFrameExtension :: control ( ) const
  65.   {
  66.   return this->extControl;
  67.   }
  68.  
  69. #endif // _IFRAMEXT_INL_
  70.