home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRSTAR.H < prev    next >
C/C++ Source or Header  |  1993-11-10  |  2KB  |  89 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: clrstar.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  * MODULE NAME: ClrPalet.CSC
  13.  * 
  14.  * DESCRIPTION:
  15.  *   Object class definition file for StarColorPalette object class.
  16.  */
  17.  
  18.  
  19. #ifndef clrstar_h
  20. #define clrstar_h
  21.  
  22.  
  23. #include <som.h>
  24.  
  25. /*
  26.  * Define the class name as an object type
  27.  */
  28. #ifndef StarColorPalette
  29. #define StarColorPalette SOMAny
  30. #endif
  31. #include "clrpalet.h"
  32.  
  33. #define StarColorPalette_MajorVersion 1
  34. #define StarColorPalette_MinorVersion 2
  35.  
  36. /*
  37.  * External name shortening if required
  38.  */
  39. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  40. #define StarColorPaletteNewClass clrsc
  41. #pragma linkage(clrsc, system)
  42. #define StarColorPaletteClassData clrsd
  43. #define StarColorPaletteCClassData clrsx
  44. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  45. /*--------------Migration------------*/
  46. #define StarColorPalette_classObj StarColorPaletteClassData.classObject
  47. #define _StarColorPalette StarColorPalette_classObj
  48.  
  49. /*
  50.  * New and Renew macros for StarColorPalette
  51.  */
  52. #define _StarColorPaletteNew() (_somNew(StarColorPaletteClassData.classObject))
  53. #define StarColorPaletteNew() \
  54.     ( StarColorPaletteClassData.classObject \
  55.         ? _StarColorPaletteNew() \
  56.         : ( StarColorPaletteNewClass(StarColorPalette_MajorVersion, StarColorPalette_MinorVersion), _StarColorPaletteNew() ) )
  57. #define StarColorPaletteRenew(buf) \
  58.     ( _somRenew(StarColorPaletteClassData.classObject, buf) )
  59.  
  60. /*
  61.  * Override method: QuerySampleShape
  62.  */
  63. #define StarColorPalette_QuerySampleShape(somSelf,pPoints,pcPoints) \
  64.     ColorPalette_QuerySampleShape(somSelf,pPoints,pcPoints)
  65.  
  66. /*
  67.  * Declare the class creation procedure
  68.  */
  69. SOMEXTERN SOMAny * SOMLINK StarColorPaletteNewClass(integer4 scemajorVersion,
  70.         integer4 sceminorVersion);
  71. #pragma linkage(StarColorPaletteNewClass, system)
  72.  
  73. /*
  74.  * Declare the class data structure
  75.  */
  76. SOMEXTERN struct StarColorPaletteClassDataStructure {
  77.     SOMAny *classObject;
  78. } StarColorPaletteClassData;
  79.  
  80. /*
  81.  * Declare the C specific class data structure
  82.  */
  83. SOMEXTERN struct StarColorPaletteCClassDataStructure {
  84.     somMethodTab *parentMtab;
  85.     somDToken instanceDataToken;
  86. } StarColorPaletteCClassData;
  87.  
  88. #endif       /* clrstar_h */
  89.