FreeBASIC
0.91.0
|
#include <windows.h>
Go to the source code of this file.
Data Structures | |
struct | _FB_CONSOLE_CTX |
Macros | |
#define | __fb_in_handle fb_hConsoleGetHandle( TRUE ) |
#define | __fb_out_handle fb_hConsoleGetHandle( FALSE ) |
#define | FB_CON_CORRECT_POSITION() |
#define | FB_CONSOLE_WINDOW_EMPTY() |
Typedefs | |
typedef void(* | fb_FnProcessMouseEvent )(const MOUSE_EVENT_RECORD *pEvent) |
typedef struct _FB_CONSOLE_CTX | FB_CONSOLE_CTX |
Functions | |
int | fb_hConsoleTranslateKey (char AsciiChar, WORD wVsCode, WORD wVkCode, DWORD dwControlKeyState, int bEnhancedKeysOnly) |
Translates an ASCII character, Virtual scan code and Virtual key code to a single QB-compatible keyboard code. More... | |
int | fb_hVirtualToScancode (int vkey) |
void | fb_InitConsoleWindow (void) |
FBCALL void | fb_hRestoreConsoleWindow (void) |
FBCALL void | fb_hUpdateConsoleWindow (void) |
Remembers the current console window coordinates. More... | |
FBCALL void | fb_hConvertToConsole (int *left, int *top, int *right, int *bottom) |
FBCALL void | fb_hConvertFromConsole (int *left, int *top, int *right, int *bottom) |
FBCALL void | fb_ConsoleLocateRaw (int row, int col, int cursor) |
FBCALL void | fb_ConsoleGetScreenSize (int *cols, int *rows) |
void | fb_ConsoleGetMaxWindowSize (int *cols, int *rows) |
void | fb_ConsoleGetScreenSizeEx (HANDLE hConsole, int *cols, int *rows) |
int | fb_ConsoleGetRawYEx (HANDLE hConsole) |
int | fb_ConsoleGetRawXEx (HANDLE hConsole) |
void | fb_ConsoleGetRawXYEx (HANDLE hConsole, int *col, int *row) |
void | fb_ConsoleLocateRawEx (HANDLE hConsole, int row, int col, int cursor) |
int | fb_ConsoleGetColorAttEx (HANDLE hConsole) |
void | fb_ConsoleColorEx (HANDLE hConsole, int fc, int bc) |
void | fb_ConsoleClearViewRawEx (HANDLE hConsole, int x1, int y1, int x2, int y2) |
void | fb_hConsoleGetWindow (int *left, int *top, int *cols, int *rows) |
int | fb_ConsoleProcessEvents (void) |
int | fb_hConsoleGetKey (int full) |
int | fb_hConsolePeekKey (int full) |
void | fb_hConsolePutBackEvents (void) |
HANDLE | fb_hConsoleGetHandle (int is_input) |
void | fb_hConsoleResetHandles (void) |
int | fb_ConsoleGetRawX (void) |
int | fb_ConsoleGetRawY (void) |
HANDLE | fb_hConsoleCreateBuffer (void) |
Variables | |
FB_CONSOLE_CTX | __fb_con |
#define __fb_in_handle fb_hConsoleGetHandle( TRUE ) |
Definition at line 47 of file fb_private_console.h.
#define __fb_out_handle fb_hConsoleGetHandle( FALSE ) |
Definition at line 48 of file fb_private_console.h.
#define FB_CON_CORRECT_POSITION | ( | ) |
Definition at line 50 of file fb_private_console.h.
#define FB_CONSOLE_WINDOW_EMPTY | ( | ) |
typedef struct _FB_CONSOLE_CTX FB_CONSOLE_CTX |
typedef void(* fb_FnProcessMouseEvent)(const MOUSE_EVENT_RECORD *pEvent) |
Definition at line 3 of file fb_private_console.h.
void fb_ConsoleClearViewRawEx | ( | HANDLE | hConsole, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
void fb_ConsoleColorEx | ( | HANDLE | hConsole, |
int | fc, | ||
int | bc | ||
) |
int fb_ConsoleGetColorAttEx | ( | HANDLE | hConsole) |
void fb_ConsoleGetMaxWindowSize | ( | int * | cols, |
int * | rows | ||
) |
Definition at line 96 of file io_window.c.
int fb_ConsoleGetRawX | ( | void | ) |
int fb_ConsoleGetRawXEx | ( | HANDLE | hConsole) |
void fb_ConsoleGetRawXYEx | ( | HANDLE | hConsole, |
int * | col, | ||
int * | row | ||
) |
int fb_ConsoleGetRawY | ( | void | ) |
int fb_ConsoleGetRawYEx | ( | HANDLE | hConsole) |
FBCALL void fb_ConsoleGetScreenSize | ( | int * | cols, |
int * | rows | ||
) |
void fb_ConsoleGetScreenSizeEx | ( | HANDLE | hConsole, |
int * | cols, | ||
int * | rows | ||
) |
FBCALL void fb_ConsoleLocateRaw | ( | int | row, |
int | col, | ||
int | cursor | ||
) |
void fb_ConsoleLocateRawEx | ( | HANDLE | hConsole, |
int | row, | ||
int | col, | ||
int | cursor | ||
) |
Definition at line 27 of file io_locate.c.
int fb_ConsoleProcessEvents | ( | void | ) |
Definition at line 386 of file io_input.c.
HANDLE fb_hConsoleCreateBuffer | ( | void | ) |
HANDLE fb_hConsoleGetHandle | ( | int | is_input) |
int fb_hConsoleGetKey | ( | int | full) |
Definition at line 229 of file io_input.c.
void fb_hConsoleGetWindow | ( | int * | left, |
int * | top, | ||
int * | cols, | ||
int * | rows | ||
) |
Definition at line 145 of file io_window.c.
int fb_hConsolePeekKey | ( | int | full) |
Definition at line 234 of file io_input.c.
void fb_hConsolePutBackEvents | ( | void | ) |
Definition at line 239 of file io_input.c.
void fb_hConsoleResetHandles | ( | void | ) |
int fb_hConsoleTranslateKey | ( | char | AsciiChar, |
WORD | wVsCode, | ||
WORD | wVkCode, | ||
DWORD | dwControlKeyState, | ||
int | bEnhancedKeysOnly | ||
) |
Translates an ASCII character, Virtual scan code and Virtual key code to a single QB-compatible keyboard code.
Definition at line 434 of file io_input.c.
FBCALL void fb_hConvertFromConsole | ( | int * | left, |
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
Definition at line 125 of file io_window.c.
FBCALL void fb_hConvertToConsole | ( | int * | left, |
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
Definition at line 105 of file io_window.c.
FBCALL void fb_hRestoreConsoleWindow | ( | void | ) |
Definition at line 67 of file io_window.c.
FBCALL void fb_hUpdateConsoleWindow | ( | void | ) |
Remembers the current console window coordinates.
This function remembers the current console window coordinates. This is required because some applications showing using a SAA interface doesn't use WIDTH first to reduce the console screen buffer size which means that the scroll bar of the console window is always visible/accessible which also implies that the user might scroll up and down while the application is running.
When this library would always use the current console window coordinates, the application might show trash when the user scrolled up or down the buffer. But this is not what we want so we're only updating the console window coordinates under the following conditions:
Definition at line 44 of file io_window.c.
int fb_hVirtualToScancode | ( | int | vkey) |
void fb_InitConsoleWindow | ( | void | ) |
Definition at line 56 of file io_window.c.
FB_CONSOLE_CTX __fb_con |