Skip to content

Modern Tui TuiConstraint

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

Home › Terminal TUI Library › Layout › TuiConstraint

TuiConstraint

Holds one sizing rule for a split, such as a fixed length or a share of the rest.

Syntax

type TuiConstraint
    as uint8 kind      '' TuiConstraintKind
    as int32 a, b
end type

Description

One rule in a split: Length, Percent, Ratio, Min, Max or Fill. Build them with the helper functions rather than by hand.

Example

#import "std/tui"
using tui

dim as TuiConstraintArray cs
cs.Push( TuiLength( 3 ) )
cs.Push( TuiFill( ) )
print cs.Count( )                 '' 2
print cs[0].kind = TUICON_LENGTH   '' -1 (true)

See also

TuiLength TuiRatio TuiAtMost TuiSolve TuiSplitV TuiPadAll
TuiPercent TuiAtLeast TuiFill TuiSplitH 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