DEFINITION MODULE WPMOUSE;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPMouse;

  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 WPABS;
IMPORT OS2DEF;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPMouse               = POINTER TO WPMouse;
TYPE PM_WPMouse             = POINTER TO M_WPMouse;

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

TYPE HWND                   = OS2DEF.HWND;


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

CONST
  WPMouse_MajorVersion     = 1;
  WPMouse_MinorVersion     = 2;

TYPE 
  WPMouseClassDataStructure   = RECORD
    classObject                 : PSOMClass;
    wpAddMouseMappingsPage      : somMToken;
    wpAddMouseTimingPage        : somMToken;
    wpAddMouseTypePage          : somMToken;
                                END;

VAR
  WPMouseClassData : WPMouseClassDataStructure;

TYPE
  (*$SOM+ *)
  WPMouse = RECORD( WPABS.WPAbstract ) END;
  (*$SOM- *)


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

PROCEDURE( Self : PWPMouse ) wpAddMouseMappingsPage
(
  hwndNotebook  : HWND
)               : LONGCARD;

PROCEDURE( Self : PWPMouse ) wpAddMouseTimingPage
(
  hwndNotebook  : HWND
)               : LONGCARD;

PROCEDURE( Self : PWPMouse ) wpAddMouseTypePage
(
  hwndNotebook  : HWND
)               : LONGCARD;



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

CONST
  M_WPMouse_MajorVersion   = 1;
  M_WPMouse_MinorVersion   = 2;

TYPE 
  M_WPMouseClassDataStructure   = RECORD
    classObject                   : PSOMClass;
                                  END;

VAR
  M_WPMouseClassData : M_WPMouseClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPMouse = RECORD( WPABS.M_WPAbstract ) END;
  (*$SOM- *)


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

END WPMOUSE.
