FreeBASIC  0.91.0
fb_hook.h
Go to the documentation of this file.
1 typedef FBSTRING *(*FB_INKEYPROC) ( void );
2 typedef int (*FB_GETKEYPROC) ( void );
3 typedef int (*FB_KEYHITPROC) ( void );
4 
5 FBCALL FBSTRING *fb_Inkey ( void );
6 FBCALL FBSTRING *fb_InkeyQB ( void );
7 FBCALL int fb_Getkey ( void );
8 FBCALL int fb_KeyHit ( void );
9 
10 typedef void (*FB_CLSPROC) ( int mode );
11 
12 FBCALL void fb_Cls ( int mode );
13 
14 typedef int (*FB_COLORPROC) ( int fc, int bc, int flags );
15 
16 FBCALL int fb_Color ( int fc, int bc, int flags );
17 
18 typedef int (*FB_LOCATEPROC) ( int row, int col, int cursor );
19 
20 FBCALL int fb_LocateEx ( int row, int col, int cursor, int *current_pos );
21 FBCALL int fb_Locate ( int row, int col, int cursor, int start, int stop );
22 FBCALL int fb_LocateSub ( int row, int col, int cursor );
23 
24 typedef void (*FB_VIEWUPDATEPROC)( void );
25 
26 FBCALL void fb_ViewUpdate ( void );
27 
28 typedef int (*FB_WIDTHPROC) ( int cols, int rows );
29 
30 FBCALL int fb_Width ( int cols, int rows );
31 FBCALL int fb_WidthDev ( FBSTRING *dev, int width );
32 FBCALL int fb_WidthFile ( int fnum, int width );
33 
34 typedef int (*FB_GETXPROC) ( void );
35 typedef int (*FB_GETYPROC) ( void );
36 typedef void (*FB_GETXYPROC) ( int *col, int *row );
37 typedef void (*FB_GETSIZEPROC) ( int *cols, int *rows );
38 
39 FBCALL int fb_Pos ( int dummy );
40 FBCALL int fb_GetX ( void );
41 FBCALL int fb_GetY ( void );
42 FBCALL void fb_GetXY ( int *col, int *row );
43 FBCALL void fb_GetSize ( int *cols, int *rows );
44 
45 typedef unsigned int (*FB_READXYPROC) ( int col, int row, int colorflag );
46 FBCALL unsigned int fb_ReadXY ( int col, int row, int colorflag );
47 
48 typedef void (*FB_PRINTBUFFPROC) ( const void *buffer, size_t len, int mask );
49 typedef void (*FB_PRINTBUFFWPROC)( const FB_WCHAR *buffer, size_t len, int mask );
50 
51 typedef char *(*FB_READSTRPROC) ( char *buffer, ssize_t len );
52  char *fb_ReadString ( char *buffer, ssize_t len, FILE *f );
53 
54 typedef int (*FB_LINEINPUTPROC) ( FBSTRING *text, void *dst, ssize_t dst_len,
55  int fillrem, int addquestion, int addnewline );
56 typedef int (*FB_LINEINPUTWPROC)( const FB_WCHAR *text, FB_WCHAR *dst,
57  ssize_t max_chars, int addquestion, int addnewline );
58 FBCALL int fb_LineInput ( FBSTRING *text, void *dst, ssize_t dst_len,
59  int fillrem, int addquestion, int addnewline );
60 FBCALL int fb_LineInputWstr ( const FB_WCHAR *text, FB_WCHAR *dst,
61  ssize_t max_chars, int addquestion, int addnewline );
62 
63 FBCALL int fb_Multikey ( int scancode );
64 FBCALL int fb_GetMouse ( int *x, int *y, int *z, int *buttons_, int *clip );
65 FBCALL int fb_GetMouse64 ( long long *x, long long *y, long long *z, long long *buttons_, long long *clip );
66 FBCALL int fb_SetMouse ( int x, int y, int cursor, int clip );
67 typedef int (*FB_MULTIKEYPROC) ( int scancode );
68 typedef int (*FB_GETMOUSEPROC) ( int *x, int *y, int *z, int *buttons_, int *clip );
69 typedef int (*FB_SETMOUSEPROC) ( int x, int y, int cursor, int clip );
70 
71 FBCALL int fb_In ( unsigned short port );
72 FBCALL int fb_Out ( unsigned short port, unsigned char value );
73 typedef int (*FB_INPROC) ( unsigned short port );
74 typedef int (*FB_OUTPROC) ( unsigned short port, unsigned char value );
75 
76 FBCALL void fb_Sleep ( int msecs );
77 FBCALL void fb_SleepQB ( int secs );
78 FBCALL void fb_Delay ( int msecs );
79 FBCALL int fb_SleepEx ( int msecs, int kind );
80 typedef void (*FB_SLEEPPROC) ( int msecs );
81 
82 FBCALL int fb_IsRedirected ( int is_input );
83 typedef int (*FB_ISREDIRPROC) ( int is_input );
84 
85 FBCALL int fb_PageCopy ( int src, int dst );
86 typedef int (*FB_PAGECOPYPROC) ( int src, int dst );
87 
88 FBCALL int fb_PageSet ( int active, int visible );
89 typedef int (*FB_PAGESETPROC) ( int active, int visible );
90 
91 typedef struct FB_HOOKSTB {
119 } FB_HOOKSTB;