test: output.h File Reference

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# output.h File Reference

Go to the source code of this file.

## Classes

struct | _CHAR_ROW
struct | _ATTR_PAIR
struct | _ATTR_ROW
struct | _ROW
struct | _TEXT_BUFFER_FONT_INFO
struct | _TEXT_BUFFER_INFO
struct | _GRAPHICS_BUFFER_INFO
struct | _SCREEN_INFORMATION
struct | _WINDOW_LIMITS

## Defines

#define | CONSOLE_TEXTMODE_BUFFER 1
#define | CONSOLE_GRAPHICS_BUFFER 2
#define | CONSOLE_OEMFONT_DISPLAY 4
#define | TEXT_VALID_HINT 1
#define | SINGLE_ATTRIBUTES_PER_LINE 2
#define | INVALID_OLD_LENGTH -1
#define | VALID_TEXT_ATTRIBUTES (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED | BACKGROUND_INTENSITY)
#define | CURSOR_SIZE_IN_PIXELS(FONT_SIZE_Y, SIZE) ((((FONT_SIZE_Y)*(SIZE))+99)/100)
#define | CURSOR_Y_OFFSET_IN_PIXELS(FONT_SIZE_Y, YSIZE) ((FONT_SIZE_Y) - (YSIZE))
#define | CURSOR_TIMER 1
#define | CURSOR_SMALL_SIZE 25
#define | CURSOR_BIG_SIZE 50
#define | ACTIVE_SCREEN_BUFFER(SCREEN_INFO) ((SCREEN_INFO)->Console->CurrentScreenBuffer == SCREEN_INFO)
#define | CONSOLE_WINDOW_FLAGS (WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL)
#define | CONSOLE_WINDOW_EX_FLAGS (WS_EX_OVERLAPPEDWINDOW | WS_EX_ACCEPTFILES | WS_EX_APPWINDOW )
#define | WINDOW_SIZE_X(WINDOW) ((SHORT)(((WINDOW)->Right - (WINDOW)->Left + 1)))
#define | WINDOW_SIZE_Y(WINDOW) ((SHORT)(((WINDOW)->Bottom - (WINDOW)->Top + 1)))
#define | CONSOLE_WINDOW_SIZE_X(SCREEN) (WINDOW_SIZE_X(&(SCREEN)->Window))
#define | CONSOLE_WINDOW_SIZE_Y(SCREEN) (WINDOW_SIZE_Y(&(SCREEN)->Window))
#define | CONSOLE_MIN_SCREENBUFFER_X 1
#define | CONSOLE_MIN_SCREENBUFFER_Y 1

## Typedefs

typedef _CHAR_ROW | CHAR_ROW
typedef _CHAR_ROW * | PCHAR_ROW
typedef _ATTR_PAIR | ATTR_PAIR
typedef _ATTR_PAIR * | PATTR_PAIR
typedef _ATTR_ROW | ATTR_ROW
typedef _ATTR_ROW * | PATTR_ROW
typedef _ROW | ROW
typedef _ROW * | PROW
typedef _TEXT_BUFFER_FONT_INFO | TEXT_BUFFER_FONT_INFO
typedef _TEXT_BUFFER_FONT_INFO * | PTEXT_BUFFER_FONT_INFO
typedef _TEXT_BUFFER_INFO | TEXT_BUFFER_INFO
typedef _TEXT_BUFFER_INFO * | PTEXT_BUFFER_INFO
typedef _GRAPHICS_BUFFER_INFO | GRAPHICS_BUFFER_INFO
typedef _GRAPHICS_BUFFER_INFO * | PGRAPHICS_BUFFER_INFO
typedef _SCREEN_INFORMATION | SCREEN_INFORMATION
typedef _SCREEN_INFORMATION * | PSCREEN_INFORMATION
typedef _WINDOW_LIMITS | WINDOW_LIMITS
typedef _WINDOW_LIMITS * | PWINDOW_LIMITS

## Define Documentation

#define ACTIVE_SCREEN_BUFFER | ( | SCREEN_INFO |  | ) | ((SCREEN_INFO)->Console->CurrentScreenBuffer == SCREEN_INFO)

| Definition at line 258 of file output.h. Referenced by InternalUpdateScrollBars(), ResizeWindow(), ScrollRegion(), ScrollScreen(), SetFont(), SetScreenBufferFont(), SetScreenColors(), SetWindowOrigin(), SrvSetConsoleDisplayMode(), SrvSetConsoleWindowInfo(), StreamScrollRegion(), UpdateScrollBars(), WWSB_DoWriteConsole(), and WWSB_WriteToScreen().

#define CONSOLE_GRAPHICS_BUFFER 2

| Definition at line 149 of file output.h. Referenced by ConsoleWindowProc(), ConvertToFullScreen(), CreateConsoleScreenBuffer(), DisplayModeTransition(), main(), SrvCreateConsoleScreenBuffer(), WriteCharsFromInput(), WWSB_DoSrvWriteConsole(), and WWSB_WriteToScreen().

#define CONSOLE_MIN_SCREENBUFFER_X 1

| Definition at line 272 of file output.h.

#define CONSOLE_MIN_SCREENBUFFER_Y 1

| Definition at line 273 of file output.h.

#define CONSOLE_OEMFONT_DISPLAY 4

| Definition at line 150 of file output.h. Referenced by BeginPopup(), ConvertToFullScreen(), ConvertToWindowed(), CreateScreenBuffer(), DrawCommandListPopup(), ds(), EndPopup(), ReadOutputString(), SB_TranslateOutputToOem(), SB_TranslateOutputToUnicode(), SetScreenBufferFont(), SrvInvalidateBitMapRect(), SrvReadConsoleOutput(), SrvScrollConsoleScreenBuffer(), SrvWriteConsoleOutput(), StoreSelection(), WriteCharsFromInput(), WWSB_DoSrvWriteConsole(), WWSB_FillOutput(), WWSB_PolyTextOutCandidate(), WWSB_WriteChars(), WWSB_WriteOutputString(), and WWSB_WriteRegionToScreen().

#define CONSOLE_TEXTMODE_BUFFER 1

| Definition at line 148 of file output.h. Referenced by CancelKeySelection(), ConsoleHideCursor(), ConsoleShowCursor(), ConsoleWindowProc(), ConvertToFullScreen(), ConvertToWindowed(), CreateConsoleScreenBuffer(), CreateScreenBuffer(), CreateWindowsWindow(), CursorTimerRoutine(), dmem(), DoCreateScreenBuffer(), DoPaste(), ds(), dt(), ExtendSelection(), FE_StreamWriteToScreenBuffer(), FreeScreenBuffer(), GetWindowLimits(), HandleKeyEvent(), HandleMouseEvent(), InitializeMenu(), InternalSetWindowSize(), MyInvert(), ProcessResizeWindow(), PropertiesDlgShow(), ReCreateDbcsScreenBuffer(), ReCreateDbcsScreenBufferWorker(), ResizeScreenBuffer(), ResizeWindow(), ScrollIfNecessary(), ScrollScreen(), SetActiveScreenBuffer(), SetCursorInformation(), SetCursorMode(), SetScreenBufferFont(), SetScreenColors(), SetWindowOrigin(), SrvGetLargestConsoleWindowSize(), SrvRegisterConsoleVDM(), SrvSetConsoleDisplayMode(), SrvSetConsoleMode(), StoreSelection(), StreamScrollRegion(), UnregisterVDM(), UpdateComplexRegion(), VerticalScroll(), WWSB_AdjustCursorPosition(), WWSB_FillOutput(), WWSB_FillRectangle(), WWSB_PolyTextOutCandidate(), WWSB_WriteOutputString(), WWSB_WriteRectToScreenBuffer(), and WWSB_WriteRegionToScreen().

#define CONSOLE_WINDOW_EX_FLAGS (WS_EX_OVERLAPPEDWINDOW | WS_EX_ACCEPTFILES | WS_EX_APPWINDOW )

| Definition at line 265 of file output.h. Referenced by CreateWindowsWindow(), and InitializeSystemMetrics().

#define CONSOLE_WINDOW_FLAGS (WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL)

| Definition at line 264 of file output.h. Referenced by CreateWindowsWindow(), and InitializeSystemMetrics().

#define CONSOLE_WINDOW_SIZE_X | ( | SCREEN |  | ) | (WINDOW_SIZE_X(&(SCREEN)->Window))

| Definition at line 269 of file output.h. Referenced by BeginPopup(), ConsoleWindowProc(), ConvertToFullScreen(), CreateScreenBuffer(), CreateWindowsWindow(), FE_WriteRegionToScreenHW(), FindDialogProc(), GetAvailableFonts(), GetCurrentFont(), GetScreenBufferInformation(), HorizontalScroll(), InternalUpdateScrollBars(), ProcessResizeWindow(), PropertiesDlgShow(), PropertiesUpdate(), ResizeScreenBuffer(), ResizeWindow(), SetScreenBufferFont(), SetWindowOrigin(), SrvCreateConsoleScreenBuffer(), SrvSetConsoleScreenBufferSize(), and SrvSetConsoleWindowInfo().

#define CONSOLE_WINDOW_SIZE_Y | ( | SCREEN |  | ) | (WINDOW_SIZE_Y(&(SCREEN)->Window))

| Definition at line 270 of file output.h. Referenced by BeginPopup(), ConsoleWindowProc(), ConvertToFullScreen(), CreateScreenBuffer(), CreateWindowsWindow(), FE_WriteRegionToScreenHW(), FindDialogProc(), GetAvailableFonts(), GetCurrentFont(), GetScreenBufferInformation(), HandleKeyEvent(), InternalUpdateScrollBars(), ProcessResizeWindow(), PropertiesDlgShow(), PropertiesUpdate(), ResizeScreenBuffer(), ResizeWindow(), SetScreenBufferFont(), SetWindowOrigin(), SrvCreateConsoleScreenBuffer(), SrvSetConsoleScreenBufferSize(), SrvSetConsoleWindowInfo(), VerticalScroll(), and WWSB_AdjustCursorPosition().

#define CURSOR_BIG_SIZE 50

| Definition at line 251 of file output.h.

#define CURSOR_SIZE_IN_PIXELS | ( | FONT_SIZE_Y,
|  | SIZE |  | ) | ((((FONT_SIZE_Y)*(SIZE))+99)/100)

| Definition at line 242 of file output.h. Referenced by CreateScreenBuffer(), and SetCursorInformation().

#define CURSOR_SMALL_SIZE 25

| Definition at line 250 of file output.h. Referenced by InitializeConsoleAttributes(), and SrvCreateConsoleScreenBuffer().

#define CURSOR_TIMER 1

| Definition at line 249 of file output.h. Referenced by ConsoleWindowProc(), and DestroyWindowsWindow().

#define CURSOR_Y_OFFSET_IN_PIXELS | ( | FONT_SIZE_Y,
|  | YSIZE |  | ) | ((FONT_SIZE_Y) - (YSIZE))

| Definition at line 243 of file output.h. Referenced by InvertPixels().

#define INVALID_OLD_LENGTH -1

| Definition at line 223 of file output.h. Referenced by CopyRow(), CreateScreenBuffer(), DisplayModeTransition(), FE_StreamWriteToScreenBuffer(), ResizeScreenBuffer(), StreamScrollRegion(), WWSB_ConsolePolyTextOut(), WWSB_FillOutput(), WWSB_FillRectangle(), WWSB_WriteOutputString(), WWSB_WriteRectToScreenBuffer(), and WWSB_WriteRegionToScreen().

#define SINGLE_ATTRIBUTES_PER_LINE 2

| Definition at line 213 of file output.h. Referenced by CreateScreenBuffer(), ResetTextFlags(), and WWSB_PolyTextOutCandidate().

#define TEXT_VALID_HINT 1

| Definition at line 212 of file output.h. Referenced by ConsoleWindowProc(), ConvertToFullScreen(), ConvertToWindowed(), FE_StreamWriteToScreenBuffer(), ResizeWindow(), ScrollEntireScreen(), SetActiveScreenBuffer(), SetScreenColors(), SetWindowOrigin(), SrvWriteConsoleOutput(), StreamScrollRegion(), UpdateComplexRegion(), VerticalScroll(), WWSB_ConsolePolyTextOut(), WWSB_FillOutput(), WWSB_FillRectangle(), WWSB_WriteOutputString(), WWSB_WriteRectToScreenBuffer(), and WWSB_WriteRegionToScreen().

#define VALID_TEXT_ATTRIBUTES (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED | BACKGROUND_INTENSITY)

| Definition at line 233 of file output.h. Referenced by SrvSetConsoleTextAttribute().

#define WINDOW_SIZE_X | ( | WINDOW |  | ) | ((SHORT)(((WINDOW)->Right - (WINDOW)->Left + 1)))

| Definition at line 267 of file output.h. Referenced by FE_WriteRegionToScreenHW(), InternalSetWindowSize(), SrvSetConsoleWindowInfo(), StoreSelection(), and StreamScrollRegion().

#define WINDOW_SIZE_Y | ( | WINDOW |  | ) | ((SHORT)(((WINDOW)->Bottom - (WINDOW)->Top + 1)))

| Definition at line 268 of file output.h. Referenced by InternalSetWindowSize(), ScrollEntireScreen(), SrvSetConsoleWindowInfo(), StoreSelection(), and StreamScrollRegion().

## Typedef Documentation

typedef struct _ATTR_PAIR ATTR_PAIR

typedef struct _ATTR_ROW ATTR_ROW

typedef struct _CHAR_ROW CHAR_ROW

typedef struct _GRAPHICS_BUFFER_INFO GRAPHICS_BUFFER_INFO

typedef struct _ATTR_PAIR * PATTR_PAIR

typedef struct _ATTR_ROW * PATTR_ROW

typedef struct _CHAR_ROW * PCHAR_ROW

typedef struct _GRAPHICS_BUFFER_INFO * PGRAPHICS_BUFFER_INFO

typedef struct _ROW * PROW

| Referenced by FE_StreamWriteToScreenBuffer().

typedef struct _SCREEN_INFORMATION * PSCREEN_INFORMATION

typedef struct _TEXT_BUFFER_FONT_INFO * PTEXT_BUFFER_FONT_INFO

| Referenced by ds().

typedef struct _TEXT_BUFFER_INFO * PTEXT_BUFFER_INFO

typedef struct _WINDOW_LIMITS * PWINDOW_LIMITS

| Referenced by GetWindowLimits().

typedef struct _ROW ROW

| Referenced by CreateScreenBuffer(), dt(), and ResizeScreenBuffer().

typedef struct _SCREEN_INFORMATION SCREEN_INFORMATION

| Referenced by CreateScreenBuffer(), and dt().

typedef struct _TEXT_BUFFER_FONT_INFO TEXT_BUFFER_FONT_INFO

| Referenced by ds().

typedef struct _TEXT_BUFFER_INFO TEXT_BUFFER_INFO

typedef struct _WINDOW_LIMITS WINDOW_LIMITS

| Referenced by SrvGetLargestConsoleWindowSize().