Skip to content

Modern Tui TuiBlock Inner

Paul Squires edited this page Oct 19, 2026 · 6 revisions

Home › Terminal TUI Library › Core Widgets › TuiBlock.Inner

TuiBlock.Inner

Returns the space inside the border, which is empty for a very small block.

Syntax

TuiBlock.Inner( byval area as TuiRect ) as TuiRect

Description

The space left inside the border, which depends on which sides are drawn. ALWAYS CHECK IsEmpty on the result -- a bordered block two cells wide has nothing inside it.

Example

#import "std/tui"
using tui

dim as TuiBlock b
b.borderKind = TUIBORDER_PLAIN

b.sides = TUISIDE_ALL
print b.Inner( TuiRectOf( 0, 0, 20, 10 ) ).w    '' 18

b.sides = TUISIDE_TOP             '' only one side costs only one row
dim as TuiRect i = b.Inner( TuiRectOf( 0, 0, 20, 10 ) )
print i.w, i.h                                  '' 20 9

b.sides = TUISIDE_ALL
print b.Inner( TuiRectOf( 0, 0, 2, 2 ) ).IsEmpty( )      '' true

See also

TuiBlock TuiBorderSet TuiTitle TuiParagraph TuiListState TuiTable
TuiBlock.AddTitle TuiBorderGlyphs TuiTitleOf TuiList TuiRow TuiTableState

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Core Widgets
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally