Skip to content
ConsoleMonster
Class

FrameScale

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
sealed

The size and length of one frame render. The frame creates it from the terminal at render time and hands it to section content and the compact view, so frames on a laptop and on a wide screen follow the same rules. Authors read it; they never read the console.

Inheritance

  • object
  • FrameScale

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 1

Methods

public int MatrixCapacity(int labelWidth, int cellWidth, int? width = null) #

How many matrix columns fit after a label block.

Parameters

labelWidth int required
Cells taken by row labels.
cellWidth int required
Cells per column including its gap.
width int? = null optional
Available width, or the content width.

Returns

int The column capacity.

Properties

public int Width { get; } #

Terminal width in cells.

public int Height { get; } #

Terminal height in rows.

public ConsoleViewLength Length { get; } #

The length for this render.

public int ContentWidth { get; } #

Usable width: one gutter cell on the left and one free cell on the right.