Skip to content

Modern Tui TuiRect Right

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

Home › Terminal TUI Library › Geometry › TuiRect.Right

TuiRect.Right

Returns x plus the width: the first column past the right edge.

Syntax

TuiRect.Right( ) as int32

Description

x + w -- one column PAST the last one inside the rect, the way an end iterator works. Right( ) - 1 is the last column.

Example

#import "std/tui"
using tui

dim as TuiRect r = TuiRectOf( 4, 2, 20, 6 )
print r.Right( )                  '' 24
print r.Contains( 23, 2 )         '' true  -- the last column
print r.Contains( 24, 2 )         '' false -- Right( ) itself is outside

See also

TuiRect TuiRect.IsEmpty TuiRect.Intersect TuiRect.Equals TuiSize TuiPos
TuiRect.Bottom TuiRect.Contains TuiRect.Inner TuiRectOf TuiSizeOf TuiMargin

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


Home · Keyword Index

Clone this wiki locally