* harbour/harbour.spec
* harbour/hbgtmk.sh
* harbour/make_rpm.sh
* harbour/bin/pack_src.sh
* updated for recent changes in make process
* harbour/contrib/Makefile
* added odbc lib for Linux compilation
* harbour/contrib/btree/Makefile
* changed lib name from hb_btree to hbtree
* harbour/contrib/btree/hb_btree.api
* harbour/contrib/btree/hb_btree.c
* fixed GCC compilation in HB_TR_DEBUG mode
* harbour/contrib/hbzlib/hbzip.h
* harbour/contrib/hbzlib/include/hbzip.h
* harbour/include/hbapi.h
* harbour/include/hbapicdp.h
* harbour/include/hbapierr.h
* harbour/include/hbapifs.h
* harbour/include/hbapigt.h
* harbour/include/hbapiitm.h
* harbour/include/hbapilng.h
* harbour/include/hbapirdd.h
* harbour/include/hbcomp.h
* harbour/include/hbdate.h
* harbour/include/hbdbsort.h
* harbour/include/hberrors.h
* harbour/include/hbexprb.c
* harbour/include/hbexprop.h
* harbour/include/hbhash.h
* harbour/include/hbinit.h
* harbour/include/hbmacro.h
* harbour/include/hbpp.h
* harbour/include/hbrdddel.h
* harbour/include/hbrddntx.h
* harbour/include/hbrddsdf.h
* harbour/include/hbrddwrk.h
* harbour/include/hbset.h
* harbour/include/hbstack.h
* harbour/include/hbtrace.h
* harbour/include/hbvm.h
* harbour/include/hbvmpub.h
* changed #if defined (HB_EXTERN_C) to HB_EXTERN_BEGIN / HB_EXTERN_END
macros for easier manipulation with different ABI
* added HB_IS_BADITEM() macro for debugging
* synced CDP with xHarbour - added basic Unicode support
* synced RDD with xHarbour
* harbour/source/codepage/Makefile
* harbour/source/codepage/cdp_tpl.c
* harbour/source/codepage/cdpeldos.c
* harbour/source/codepage/cdpelwin.c
* harbour/source/codepage/cdpesdos.c
* harbour/source/codepage/cdpeswin.c
* harbour/source/codepage/cdpgedos.c
* harbour/source/codepage/cdpgewin.c
* harbour/source/codepage/cdphu852.c
* harbour/source/codepage/cdphuwin.c
* harbour/source/codepage/cdppl852.c
* harbour/source/codepage/cdppliso.c
* harbour/source/codepage/cdpplmaz.c
* harbour/source/codepage/cdpplwin.c
* harbour/source/codepage/cdppt850.c
* harbour/source/codepage/cdpptiso.c
* harbour/source/codepage/cdpru866.c
* harbour/source/codepage/cdprukoi.c
* harbour/source/codepage/cdpruwin.c
* harbour/source/codepage/cdpsl437.c
* harbour/source/codepage/cdpsl852.c
* harbour/source/codepage/cdpsliso.c
* harbour/source/codepage/cdpslwin.c
* harbour/source/codepage/cdpsrwin.c
+ harbour/source/codepage/uc1250.c
+ harbour/source/codepage/uc1251.c
+ harbour/source/codepage/uc1253.c
+ harbour/source/codepage/uc1257.c
+ harbour/source/codepage/uc737.c
+ harbour/source/codepage/uc850.c
+ harbour/source/codepage/uc852.c
+ harbour/source/codepage/uc866.c
+ harbour/source/codepage/uc88591b.c
+ harbour/source/codepage/uc8859_1.c
+ harbour/source/codepage/uc8859_2.c
+ harbour/source/codepage/uckoi8.c
+ harbour/source/codepage/uckoi8u.c
+ harbour/source/codepage/ucmaz.c
* harbour/source/rtl/cdpapi.c
* synced HB CDP API with xHarbour - added basic Unicode support
* harbour/source/common/expropt2.c
* harbour/source/common/hbstr.c
* removed unnecessary initialization to avoid BCC warnings
* harbour/source/compiler/harbour.c
* formatting
hb_compCodeBlockStop() looks like work in progress or is has
some old unused code - Ryszard, can you look at it?
* harbour/source/macro/macro.y
* removed hack for GCC and old Bison versions
* harbour/source/pp/ppcore.c
* removed unnecessary initialization to avoid BCC warnings
* harbour/source/pp/pptable.c
+ added some sets for RDD synchronization with xHarbour
* harbour/source/rdd/dbcmd.c
+ added __RDDGETTEMPALIAS
* harbour/source/rdd/dbf1.c
* harbour/source/rdd/dbfuncs.prg
* harbour/source/rdd/dbnubs.c
* harbour/source/rdd/dbstrux.prg
* harbour/source/rdd/hbdbsort.c
* harbour/source/rdd/rddord.prg
* harbour/source/rdd/workarea.c
* harbour/source/rdd/dbfcdx/dbfcdx1.c
* harbour/source/rdd/dbfdbt/dbfdbt1.c
* harbour/source/rdd/dbffpt/dbffpt1.c
* harbour/source/rdd/dbfntx/dbfntx1.c
* synchronized with xHarbour - still dbcmd.c has to be synced yet
! fixed all known bugs
Alexander, please look at DBFNTX - I hope all is correct.
* harbour/source/vm/codebloc.c
* formatting
* harbour/source/vm/fm.c
+ added HB_PARANOID_MEM_CHECK to force reallocations in hb_xrealloc
and fill allocated and freed memory with HB_MEMFILER (0xff by default)
It's for debugging only.
* harbour/source/vm/hvm.c
! fixed hb_vmTopNumber() declaration for BCC
* use hb_gcCollectAll() at HVM exit instead of hb_gcReleaseAll() to
report allocated and not freed items - It could caused that some
programs begin to report memory leaks.
* harbour/source/vm/itemapi.c
* check for HB_IS_BADITEM inside hb_itemClear() when compiled with
HB_PARANOID_MEM_CHECK for debugging
* harbour/source/vm/memvars.c
* formatting
! fixed pItem initialization in hb_memvarDetachLocal()
BTW - is this really necessary? I copy it form hb_itemUnRef()
but in fact it cannot detect all possible item reference cycles
if they appear - can they appear?
331 lines
15 KiB
C
331 lines
15 KiB
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Project source code:
|
|
* Header file for the Terminal API
|
|
*
|
|
* Copyright 1999 {list of individual authors and e-mail addresses}
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* The following parts are Copyright of the individual authors.
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* Copyright 1999 David G. Holm <dholm@jsd-llc.com>
|
|
* Keyboard related declarations
|
|
* Cursor declarations
|
|
* See above for licensing terms.
|
|
*
|
|
* Copyright 1999-2001 Viktor Szakats <viktor.szakats@syenar.hu>
|
|
* Mouse related declarations
|
|
* Undocumented GT API declarations
|
|
* See doc/license.txt for licensing terms.
|
|
*
|
|
*/
|
|
|
|
#ifndef HB_APIGT_H_
|
|
#define HB_APIGT_H_
|
|
|
|
#include "hbapi.h"
|
|
|
|
HB_EXTERN_BEGIN
|
|
|
|
/* NOTE: The declaration of hb_gtSetPos(), hb_gtGetPos(), hb_gtWrite(),
|
|
hb_gtWriteAt(), hb_gtRepChar(), hb_gtBox(), hb_gtBoxS(), hb_gtBoxD()
|
|
hb_gtInit() differs in parameter types from the original CA-Cl*pper
|
|
versions. [vszakats] */
|
|
|
|
/* maximum length of color string */
|
|
#define CLR_STRLEN 64
|
|
|
|
/* attributes for color strings, these are the same as the ones in color.ch
|
|
but prefixed with HB_ to avoid collision. */
|
|
#define HB_CLR_STANDARD 0
|
|
#define HB_CLR_ENHANCED 1
|
|
#define HB_CLR_BORDER 2
|
|
#define HB_CLR_BACKGROUND 3
|
|
#define HB_CLR_UNSELECTED 4
|
|
#define HB_CLR_MAX_ HB_CLR_UNSELECTED
|
|
|
|
/* strings for borders (same as box.ch, but defined for use by C) */
|
|
|
|
/* Note. This part will never be used, but is being kept in the source,
|
|
so that if you use code page 437, you can see what the line
|
|
draw characters are supposed to look like.
|
|
01234567
|
|
#define _B_SINGLE "ÚÄ¿³ÙÄÀ³"
|
|
#define _B_DOUBLE "ÉÍ»º¼ÍȺ"
|
|
#define _B_SINGLE_DOUBLE "ÖÄ·º½ÄÓº"
|
|
#define _B_DOUBLE_SINGLE "Õ͸³¾ÍÔ³"
|
|
#define HB_B_SINGLE_V '³'
|
|
#define HB_B_SINGLE_H 'Ä'
|
|
#define HB_B_DOUBLE_V 'º'
|
|
#define HB_B_DOUBLE_H 'Í'
|
|
*/
|
|
#define _B_SINGLE "\xDA\xC4\xBF\xB3\xD9\xC4\xC0\xB3"
|
|
#define _B_DOUBLE "\xC9\xCD\xBB\xBA\xBC\xCD\xC8\xBA"
|
|
#define _B_SINGLE_DOUBLE "\xD6\xC4\xB7\xBA\xBD\xC4\xD3\xBA"
|
|
#define _B_DOUBLE_SINGLE "\xD5\xCD\xB8\xB3\xBE\xCD\xD4\xB3"
|
|
#define HB_B_SINGLE_V '\xB3'
|
|
#define HB_B_SINGLE_H '\xC4'
|
|
#define HB_B_DOUBLE_V '\xB3'
|
|
#define HB_B_DOUBLE_H '\xC4'
|
|
|
|
/* Used to tell hb_gt_SetPos() when the cursor position
|
|
is being set. Before or after text is or was displayed.
|
|
*/
|
|
#define HB_GT_SET_POS_AFTER 1
|
|
#define HB_GT_SET_POS_BEFORE 0
|
|
|
|
/* Keyboard filters */
|
|
|
|
typedef enum
|
|
{
|
|
INKEY_MOVE = 1, /* Mouse Events */
|
|
INKEY_LDOWN = 2, /* Mouse Left Click Down */
|
|
INKEY_LUP = 4, /* Mouse Left Click Up */
|
|
INKEY_RDOWN = 8, /* Mouse Right Click Down */
|
|
INKEY_RUP = 16, /* Mouse Right Click Up */
|
|
INKEY_KEYBOARD = 128, /* Keyboard Events */
|
|
INKEY_ALL = 159, /* All Mouse and Keyboard Events */
|
|
INKEY_RAW = 256 /* Minimally Decoded Keyboard Events */
|
|
} HB_inkey_enum;
|
|
|
|
/* Cursor style constants */
|
|
|
|
typedef enum
|
|
{
|
|
SC_NONE = 0, /* None */
|
|
SC_NORMAL = 1, /* Underline */
|
|
SC_INSERT = 2, /* Lower half block */
|
|
SC_SPECIAL1 = 3, /* Full block */
|
|
SC_SPECIAL2 = 4 /* Upper half block */
|
|
} HB_cursor_enum;
|
|
|
|
/* Public interface. These should never change, only be added to. */
|
|
|
|
extern void hb_gtInit( int iFilenoStdin, int iFilenoStdout, int iFilenoStderr );
|
|
extern void hb_gtExit( void );
|
|
extern void hb_gtAdjustPos( int iHandle, char * pStr, ULONG ulLen );
|
|
extern USHORT hb_gtBox( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight, BYTE * pbyFrame );
|
|
extern USHORT hb_gtBoxD( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight );
|
|
extern USHORT hb_gtBoxS( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight );
|
|
extern USHORT hb_gtColorSelect( USHORT uiColorIndex );
|
|
extern USHORT hb_gtColorToN( char * szColorString );
|
|
extern USHORT hb_gtDispBegin( void );
|
|
extern USHORT hb_gtDispCount( void );
|
|
extern USHORT hb_gtDispEnd( void );
|
|
extern USHORT hb_gtDrawShadow( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, BYTE byAttr );
|
|
extern USHORT hb_gtGetBlink( BOOL * pbBlink );
|
|
extern USHORT hb_gtGetColorStr( char * pszColorString );
|
|
extern USHORT hb_gtGetCursor( USHORT * puiCursorShape );
|
|
extern USHORT hb_gtGetPos( SHORT * piRow, SHORT * piCol );
|
|
extern BOOL hb_gtIsColor( void );
|
|
extern USHORT hb_gtMaxCol( void );
|
|
extern USHORT hb_gtMaxRow( void );
|
|
extern USHORT hb_gtPostExt( void );
|
|
extern USHORT hb_gtPreExt( void );
|
|
extern USHORT hb_gtSuspend( void ); /* prepare the reminal for shell output */
|
|
extern USHORT hb_gtResume( void ); /* resume the terminal after the shell output */
|
|
extern int hb_gtExtendedKeySupport( void );
|
|
extern int hb_gtReadKey( HB_inkey_enum eventmask );
|
|
extern USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, UINT * puiBuffSize );
|
|
extern USHORT hb_gtRepChar( USHORT uiRow, USHORT uiCol, BYTE byChar, USHORT uiCount );
|
|
extern USHORT hb_gtRest( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, void * pScrBuff );
|
|
extern USHORT hb_gtSave( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, void * pScrBuff );
|
|
extern USHORT hb_gtScrDim( USHORT * puiHeight, USHORT * puiWidth );
|
|
extern USHORT hb_gtScroll( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, SHORT iRows, SHORT iCols );
|
|
extern USHORT hb_gtSetBlink( BOOL bBlink );
|
|
extern USHORT hb_gtSetColorStr( char * pszColorString );
|
|
extern USHORT hb_gtSetCursor( USHORT uiCursorShape );
|
|
extern USHORT hb_gtSetMode( USHORT uiRows, USHORT uiCols );
|
|
extern USHORT hb_gtSetPos( SHORT iRow, SHORT iCol );
|
|
extern USHORT hb_gtSetPosContext( SHORT iRow, SHORT iCol, SHORT iMode );
|
|
extern USHORT hb_gtSetSnowFlag( BOOL bNoSnow );
|
|
extern void hb_gtTone( double dFrequency, double dDuration );
|
|
extern USHORT hb_gtWrite( BYTE * pbyStr, ULONG ulLen );
|
|
extern USHORT hb_gtWriteAt( USHORT uiRow, USHORT uiCol, BYTE * pbyStr, ULONG ulLen );
|
|
extern USHORT hb_gtWriteCon( BYTE * pbyStr, ULONG ulLen );
|
|
extern char * hb_gtVersion( void );
|
|
#define hb_gtOutStd( pbyStr, ulLen ) hb_gt_OutStd( pbyStr, ulLen )
|
|
#define hb_gtOutErr( pbyStr, ulLen ) hb_gt_OutErr( pbyStr, ulLen )
|
|
|
|
|
|
/* Undocumented CA-Clipper 5.x GT API calls */
|
|
|
|
#define HB_GT_RECT void
|
|
#define HB_GT_WND void
|
|
#define HB_GT_RGB void
|
|
#define HB_GT_SLR void
|
|
|
|
extern void hb_gtWCreate( HB_GT_RECT * rect, HB_GT_WND ** wnd );
|
|
extern void hb_gtWDestroy( HB_GT_WND * wnd );
|
|
extern BOOL hb_gtWFlash( void );
|
|
extern void hb_gtWApp( HB_GT_WND ** wnd );
|
|
extern void hb_gtWCurrent( HB_GT_WND * wnd );
|
|
extern void hb_gtWPos( HB_GT_WND * wnd, HB_GT_RECT * rect );
|
|
extern BOOL hb_gtWVis( HB_GT_WND * wnd, USHORT uiStatus );
|
|
|
|
extern USHORT hb_gtSLR( HB_GT_SLR * pSLR ); /* System Level Request */
|
|
extern USHORT hb_gtModalRead( void * );
|
|
extern USHORT hb_gtBeginWrite( void );
|
|
extern USHORT hb_gtEndWrite( void );
|
|
extern USHORT hb_gtFlushCursor( void );
|
|
extern USHORT hb_gtSetColor( HB_GT_RGB * color );
|
|
extern USHORT hb_gtGetColor( HB_GT_RGB * color );
|
|
extern USHORT hb_gtSetBorder( HB_GT_RGB * color );
|
|
|
|
/* Private interface listed below. these are common to all platforms */
|
|
|
|
extern void hb_gt_Init( int iFilenoStdin, int iFilenoStdout, int iFilenoStderr );
|
|
extern void hb_gt_Exit( void );
|
|
extern BOOL hb_gt_AdjustPos( BYTE * pStr, ULONG ulLen );
|
|
extern USHORT hb_gt_Box( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight, BYTE * pbyFrame, BYTE byAttr );
|
|
extern USHORT hb_gt_BoxD( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight, BYTE * pbyFrame, BYTE byAttr );
|
|
extern USHORT hb_gt_BoxS( SHORT uiTop, SHORT uiLeft, SHORT uiBottom, SHORT uiRight, BYTE * pbyFrame, BYTE byAttr );
|
|
extern SHORT hb_gt_Col( void );
|
|
extern void hb_gt_DispBegin( void );
|
|
extern USHORT hb_gt_DispCount( void );
|
|
extern void hb_gt_DispEnd( void );
|
|
extern BOOL hb_gt_GetBlink( void );
|
|
extern USHORT hb_gt_GetCursorStyle( void );
|
|
extern USHORT hb_gt_GetScreenHeight( void );
|
|
extern USHORT hb_gt_GetScreenWidth( void );
|
|
extern void hb_gt_GetText( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, BYTE * pbyDst );
|
|
extern USHORT hb_gt_HorizLine( SHORT uiRow, SHORT uiLeft, SHORT uiRight, BYTE byChar, BYTE byAttr );
|
|
extern BOOL hb_gt_IsColor( void );
|
|
extern BOOL hb_gt_PreExt( void );
|
|
extern BOOL hb_gt_PostExt( void );
|
|
extern BOOL hb_gt_Suspend( void ); /* suspend the terminal before the shell call */
|
|
extern BOOL hb_gt_Resume( void ); /* resume the terminal after the shell call */
|
|
extern void hb_gt_PutCharAttr( SHORT uiRow, SHORT uiCol, BYTE byChar, BYTE byAttr );
|
|
extern void hb_gt_PutChar( SHORT uiRow, SHORT uiCol, BYTE byChar );
|
|
extern void hb_gt_PutAttr( SHORT uiRow, SHORT uiCol, BYTE byAttr );
|
|
extern void hb_gt_GetCharAttr( SHORT uiRow, SHORT uiCol, BYTE * pbyChar, BYTE * pbyAttr );
|
|
extern void hb_gt_GetChar( SHORT uiRow, SHORT uiCol, BYTE * pbyChar );
|
|
extern void hb_gt_GetAttr( SHORT uiRow, SHORT uiCol, BYTE * pbyAttr );
|
|
extern void hb_gt_Puts( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE * pbyStr, ULONG ulLen );
|
|
extern void hb_gt_PutText( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, BYTE * pbySrc );
|
|
extern int hb_gt_ExtendedKeySupport( void );
|
|
extern int hb_gt_ReadKey( HB_inkey_enum eventmask );
|
|
extern int hb_gt_RectSize( USHORT rows, USHORT cols );
|
|
extern void hb_gt_Replicate( USHORT uiTop, USHORT uiLeft, BYTE byAttr, BYTE byChar, ULONG ulLen );
|
|
extern SHORT hb_gt_Row( void );
|
|
extern void hb_gt_Scroll( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, BYTE byAttr, SHORT iRows, SHORT iCols );
|
|
extern void hb_gt_SetAttribute( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, BYTE byAttr );
|
|
extern void hb_gt_SetBlink( BOOL bBlink );
|
|
extern void hb_gt_SetCursorStyle( USHORT uiCursorShape );
|
|
extern BOOL hb_gt_SetMode( USHORT uiRows, USHORT uiCols );
|
|
extern void hb_gt_SetPos( SHORT iRow, SHORT iCol, SHORT iMethod );
|
|
extern void hb_gt_Tone( double dFrequency, double dDuration );
|
|
extern char * hb_gt_Version( void );
|
|
extern USHORT hb_gt_VertLine( SHORT uiCol, SHORT uiTop, SHORT uiBottom, BYTE byChar, BYTE byAttr );
|
|
extern void hb_gt_OutStd( BYTE * pbyStr, ULONG ulLen );
|
|
extern void hb_gt_OutErr( BYTE * pbyStr, ULONG ulLen );
|
|
|
|
|
|
/* Keyboard related declarations */
|
|
|
|
#define HB_BREAK_FLAG 256 /* 256, because that's what DJGPP returns Ctrl+Break as.
|
|
Clipper has no key code 256, so it may as well be
|
|
used for all the Harbour builds that need it */
|
|
|
|
/* Harbour keyboard support functions */
|
|
extern int hb_inkey( BOOL bWait, double dSeconds, HB_inkey_enum event_mask ); /* Wait for keyboard input */
|
|
extern int hb_inkeyGet( HB_inkey_enum event_mask ); /* Extract the next key from the Harbour keyboard buffer */
|
|
extern void hb_inkeyPut( int ch ); /* Inserts an inkey code into the keyboard buffer */
|
|
extern int hb_inkeyLast( HB_inkey_enum event_mask ); /* Return the value of the last key that was extracted */
|
|
extern int hb_inkeyNext( HB_inkey_enum event_mask ); /* Return the next key without extracting it */
|
|
extern void hb_inkeyPoll( void ); /* Poll the console keyboard to stuff the Harbour buffer */
|
|
extern void hb_inkeyReset( BOOL allocate ); /* Reset the Harbour keyboard buffer */
|
|
extern int hb_inkeyTranslate( int key, HB_inkey_enum event_make ); /* Translation extended codes to normal codes, if needed */
|
|
extern void hb_inkeySetCancelKeys( int CancelKey, int CancelKeyEx ); /* Set keycodes for Cancel key (usually K_ALT_C) */
|
|
|
|
/* Mouse related declarations */
|
|
|
|
/* Public interface. These should never change, only be added to. */
|
|
|
|
extern BOOL hb_mouseIsPresent( void );
|
|
extern BOOL hb_mouseGetCursor( void );
|
|
extern void hb_mouseSetCursor( BOOL bVisible );
|
|
extern int hb_mouseCol( void );
|
|
extern int hb_mouseRow( void );
|
|
extern void hb_mouseSetPos( int iRow, int iCol );
|
|
extern BOOL hb_mouseIsButtonPressed( int iButton );
|
|
extern int hb_mouseCountButton( void );
|
|
extern void hb_mouseSetBounds( int iTop, int iLeft, int iBottom, int iRight );
|
|
extern void hb_mouseGetBounds( int * piTop, int * piLeft, int * piBottom, int * piRight );
|
|
|
|
/* Private interface listed below. these are common to all platforms */
|
|
|
|
extern void hb_mouse_Init( void );
|
|
extern void hb_mouse_Exit( void );
|
|
extern BOOL hb_mouse_IsPresent( void );
|
|
extern void hb_mouse_Show( void );
|
|
extern void hb_mouse_Hide( void );
|
|
extern int hb_mouse_Col( void );
|
|
extern int hb_mouse_Row( void );
|
|
extern void hb_mouse_SetPos( int iRow, int iCol );
|
|
extern BOOL hb_mouse_IsButtonPressed( int iButton );
|
|
extern int hb_mouse_CountButton( void );
|
|
extern void hb_mouse_SetBounds( int iTop, int iLeft, int iBottom, int iRight );
|
|
extern void hb_mouse_GetBounds( int * piTop, int * piLeft, int * piBottom, int * piRight );
|
|
|
|
/* SetKey related declarations */
|
|
|
|
/* Public interface. These should never change, only be added to. */
|
|
|
|
extern void hb_setkeyInit( void );
|
|
extern void hb_setkeyExit( void );
|
|
|
|
/* Private interface listed below. these are common to all platforms */
|
|
|
|
/* none as of yet */
|
|
|
|
HB_EXTERN_END
|
|
|
|
#endif /* HB_APIGT_H_ */
|