FreeBASIC  0.91.0
io_window.c File Reference
#include "../fb.h"
#include "fb_private_console.h"
Include dependency graph for io_window.c:

Go to the source code of this file.

Functions

static __inline__ void hReadConsoleRect (SMALL_RECT *pRect, int GetRealWindow)
 
FBCALL void fb_hUpdateConsoleWindow (void)
 Remembers the current console window coordinates. More...
 
void fb_InitConsoleWindow (void)
 
FBCALL void fb_hRestoreConsoleWindow (void)
 
void fb_ConsoleGetMaxWindowSize (int *cols, int *rows)
 
FBCALL void fb_hConvertToConsole (int *left, int *top, int *right, int *bottom)
 
FBCALL void fb_hConvertFromConsole (int *left, int *top, int *right, int *bottom)
 
void fb_hConsoleGetWindow (int *left, int *top, int *cols, int *rows)
 

Variables

static SMALL_RECT srRealConsoleWindow
 

Function Documentation

void fb_ConsoleGetMaxWindowSize ( int *  cols,
int *  rows 
)

Definition at line 96 of file io_window.c.

void fb_hConsoleGetWindow ( int *  left,
int *  top,
int *  cols,
int *  rows 
)

Definition at line 145 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_hConvertFromConsole ( int *  left,
int *  top,
int *  right,
int *  bottom 
)

Definition at line 125 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_hConvertToConsole ( int *  left,
int *  top,
int *  right,
int *  bottom 
)

Definition at line 105 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_hRestoreConsoleWindow ( void  )

Definition at line 67 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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:

  • Initialization
  • After screen buffer size change (using WIDTH)
  • After printing text

Definition at line 44 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_InitConsoleWindow ( void  )

Definition at line 56 of file io_window.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static __inline__ void hReadConsoleRect ( SMALL_RECT *  pRect,
int  GetRealWindow 
)
static

Definition at line 8 of file io_window.c.

Here is the caller graph for this function:

Variable Documentation

SMALL_RECT srRealConsoleWindow
static

Definition at line 6 of file io_window.c.