Skip to content

Modern Tui TuiSplitV

Paul Squires edited this page Oct 26, 2026 · 7 revisions

Home › Terminal TUI Library › Layout › TuiSplitV

TuiSplitV

Splits a rectangle into rows stacked top to bottom, sized by constraints.

Syntax

TuiSplitV( byval area as TuiRect, byref cs as TuiConstraintArray ) as TuiRectArray

Description

Splits a rect into stacked rows. The header/body/status-bar shape is one call.

Example

#import "std/tui"
using tui

dim as TuiConstraintArray cs
cs.Push( TuiLength( 1 ) )         '' menu bar
cs.Push( TuiFill( ) )             '' body
cs.Push( TuiLength( 1 ) )         '' status bar

dim as TuiRectArray band = TuiSplitV( TuiRectOf( 0, 0, 80, 24 ), cs )
print band[0].y, band[0].h        '' 0 1
print band[1].y, band[1].h        '' 1 22
print band[2].y, band[2].h        '' 23 1

See also

TuiConstraint TuiPercent TuiAtLeast TuiFill TuiSplitH TuiPadAll
TuiLength TuiRatio TuiAtMost TuiSolve TuiPad TuiCenter

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


Home · Keyword Index

Clone this wiki locally