home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / mouseapi.h < prev    next >
C/C++ Source or Header  |  1999-09-15  |  3KB  |  72 lines

  1. /*
  2.  * $Id: mouseapi.h,v 1.3 1999/09/15 14:03:37 vszel Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Header file for the Mouse API
  8.  *
  9.  * Copyright 1999 Victor Szel <info@szelvesz.hu>
  10.  * www - http://www.harbour-project.org
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version, with one exception:
  16.  *
  17.  * The exception is that if you link the Harbour Runtime Library (HRL)
  18.  * and/or the Harbour Virtual Machine (HVM) with other files to produce
  19.  * an executable, this does not by itself cause the resulting executable
  20.  * to be covered by the GNU General Public License. Your use of that
  21.  * executable is in no way restricted on account of linking the HRL
  22.  * and/or HVM code into it.
  23.  *
  24.  * This program is distributed in the hope that it will be useful,
  25.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  * GNU General Public License for more details.
  28.  *
  29.  * You should have received a copy of the GNU General Public License
  30.  * along with this program; if not, write to the Free Software
  31.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
  32.  * their web site at http://www.gnu.org/).
  33.  *
  34.  */
  35.  
  36. #ifndef HB_MOUSEAPI_H_
  37. #define HB_MOUSEAPI_H_
  38.  
  39. #include "extend.h"
  40.  
  41. /* Public interface. These should never change, only be added to. */
  42.  
  43. extern void   hb_mouseInit( void );
  44. extern void   hb_mouseExit( void );
  45. extern BOOL   hb_mouseIsPresent( void );
  46. extern BOOL   hb_mouseGetCursor( void );
  47. extern void   hb_mouseSetCursor( BOOL bVisible );
  48. extern int    hb_mouseCol( void );
  49. extern int    hb_mouseRow( void );
  50. extern void   hb_mouseSetPos( int iRow, int iCol );
  51. extern BOOL   hb_mouseIsButtonPressed( int iButton );
  52. extern int    hb_mouseCountButton( void );
  53. extern void   hb_mouseSetBounds( int iTop, int iLeft, int iBottom, int iRight );
  54. extern void   hb_mouseGetBounds( int * piTop, int * piLeft, int * piBottom, int * piRight );
  55.  
  56. /* Private interface listed below. these are common to all platforms */
  57.  
  58. extern void   hb_mouse_Init( void );
  59. extern void   hb_mouse_Exit( void );
  60. extern BOOL   hb_mouse_IsPresent( void );
  61. extern void   hb_mouse_Show( void );
  62. extern void   hb_mouse_Hide( void );
  63. extern int    hb_mouse_Col( void );
  64. extern int    hb_mouse_Row( void );
  65. extern void   hb_mouse_SetPos( int iRow, int iCol );
  66. extern BOOL   hb_mouse_IsButtonPressed( int iButton );
  67. extern int    hb_mouse_CountButton( void );
  68. extern void   hb_mouse_SetBounds( int iTop, int iLeft, int iBottom, int iRight );
  69. extern void   hb_mouse_GetBounds( int * piTop, int * piLeft, int * piBottom, int * piRight );
  70.  
  71. #endif /* HB_MOUSEAPI_H_ */
  72.