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

  1. #ifndef _IEMBMOD_INL_
  2. #define _IEMBMOD_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: iembmod.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in iembmod.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 _IEMBMOD_
  19.   #undef  _IEMBMOD_INL_
  20.   #define _IEMBMOD_INL_ 1
  21.   #include <iembmod.hpp>
  22. #endif
  23.  
  24. #if _IEMBMOD_INL_
  25.   #define inline
  26. #endif
  27.  
  28.  
  29. //===============================================================================
  30. //
  31. // inline members of class IEmbeddedComponent
  32. //
  33.  
  34. inline
  35. IGrabHandles*
  36. IEmbeddedComponent::grabHandles() const
  37. {
  38.     return fpGrabHandles;
  39. }
  40.  
  41. inline
  42. IComponent::EAspect
  43. IEmbeddedComponent::aspect() const
  44. {
  45.     return fAspect;
  46. }
  47.  
  48. inline
  49. const IRectangle&
  50. IEmbeddedComponent::area() const
  51. {
  52.     return fArea;
  53. }
  54.  
  55. inline
  56. void
  57. IEmbeddedComponent::setArea( const IRectangle& r )
  58. {
  59.     fArea = r;
  60. }
  61.  
  62. inline
  63. IGUIBundle&
  64. IEmbeddedComponent::bundle() const
  65. {
  66.     return *fpBundle;
  67. }
  68.  
  69. inline
  70. unsigned
  71. IEmbeddedComponent::number() const
  72. {
  73.     return fNumber;
  74. }
  75.  
  76. inline
  77. IEmbeddedComponentImp*
  78. IEmbeddedComponent::containedObject() const
  79. {
  80.     return fpImplementation;
  81. }
  82.  
  83. inline
  84. IPoint
  85. IEmbeddedComponent::dragMouseOffset() const
  86. {
  87.     return ftDragMouseOffset;
  88. }
  89.  
  90.  
  91. //===============================================================================
  92. //
  93. // inline members of class IEmbedderModel
  94. //
  95.  
  96. inline
  97. const IEmbedderModel::ComponentList&
  98. IEmbedderModel::componentList() const
  99. {
  100.     return fComponentList;
  101. }
  102.  
  103. inline
  104. IEmbeddedComponent*
  105. IEmbedderModel::selectedComponent() const
  106. {
  107.     return fpSelectedComponent;
  108. }
  109.  
  110. inline
  111. CAswContainer*
  112. IEmbedderModel::container() const
  113. {
  114.     return fpContainer;
  115. }
  116.  
  117. inline
  118. CAswRootContainer*
  119. IEmbedderModel::rootContainer() const
  120. {
  121.     return fpRootContainer;
  122. }
  123.  
  124.  
  125. #endif /* _IEMBMOD_INL_ */
  126.