Guide API
Skip to main content

Module window

Module window 

Source
Expand description

The framed, selectable, movable Window.

A Window is the thing a user actually sees and drives: a Group that builds a Frame around itself, owns a window number / title / decoration flags (WindowFlags), can hold standard scroll bars, and zooms, moves, resizes, and closes. It sits on the Desktop and is the base type that Dialog and editor windows build on.

Its colour scheme is recorded as a WindowPalette (Blue for plain windows, Cyan and Gray for the alternate schemes dialogs use), which the frame turns into the matching Role styles.

Guide: Windows & the desktop.

§Turbo Vision heritage

Ports TWindow (twindow.cpp). The base-class container becomes an embedded Group that the View trait forwards to (deviation D2); frame title/flags/number are pushed down to the child instead of reached up for (deviation D3); the decoration flag word becomes WindowFlags (deviation D5); and the palette indirection becomes a WindowPalette → Role mapping (deviation D7).

Structs§

ScrollBarOptions
Options for Window::standard_scroll_bar: where to place the bar and whether it handles the keyboard.
Window
A framed, selectable window: a Group that builds a Frame around itself.
WindowFlags
Window decoration flags: which of move / grow / close / zoom the window allows.

Enums§

Fullscreen
Whether (and how) a window fills the screen with no frame border.
WindowPalette
Which colour scheme the window draws in.