DEFINITION MODULE WPBITMAP;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPBitmap

  Copyright (c) 1994 by Juergen Neuhoff
****************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
(*$CDECL+    C-style procedures                                         *)
(*$A         default alignment for record fields                        *)

IMPORT SOM;
IMPORT WPDATAF;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPBitmap              = POINTER TO WPBitmap;
TYPE PM_WPBitmap            = POINTER TO M_WPBitmap;

(************************************************************************
  Additional TYPE- and CONST-declarations supporting WPBitmap
*************************************************************************)


(*************************************************************************
  SOM class API for WPBitmap, including type-bound procedures
**************************************************************************)

CONST
  WPBitmap_MajorVersion     = 1;
  WPBitmap_MinorVersion     = 2;

TYPE
  WPBitmapClassDataStructure     = RECORD
    classObject                    : PSOMClass;
                                   END;

VAR
  WPBitmapClassData : WPBitmapClassDataStructure;

TYPE
  (*$SOM+ *)
  WPBitmap = RECORD( WPDATAF.WPDataFile ) END;
  (*$SOM- *)


PROCEDURE WPBitmapNewClass
(
  majorVersion  : INTEGER4;
  minorVersion  : INTEGER4
)               : PSOMClass;


(*************************************************************************
  SOM class API for M_WPBitmap, including type-bound procedures
**************************************************************************)

CONST
  M_WPBitmap_MajorVersion   = 1;
  M_WPBitmap_MinorVersion   = 2;

TYPE
  M_WPBitmapClassDataStructure   = RECORD
    classObject                    : PSOMClass;
                                   END;

VAR
  M_WPBitmapClassData : M_WPBitmapClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPBitmap = RECORD( WPDATAF.M_WPDataFile ) END;
  (*$SOM- *)


PROCEDURE M_WPBitmapNewClass
(
  majorVersion : INTEGER4;
  minorVersion : INTEGER4
)              : PSOMClass;

END WPBITMAP.
