Skip to content

Modern Tui TuiFrame FillRect

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

Home › Terminal TUI Library › Buffer and Frame › TuiFrame.FillRect

TuiFrame.FillRect

Fills a rectangle with one character in one style.

Syntax

TuiFrame.FillRect( byval r as TuiRect, byref ch as ustring, byval st as TuiStyle )

Description

Fills a rect with one character in one style. This is how a block paints its background.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 20, 6 )
dim as TuiFrame ptr f = scr.BeginFrame( )

f->FillRect( TuiRectOf( 2, 1, 6, 3 ), " ", TuiStyleOf( TuiWhite( ), TuiBlue( ) ) )
print scr.Back( )->At( 2, 1 )->st.bg.Index( )      '' 4
print scr.Back( )->At( 8, 1 )->st.bg.IsDefault( )  '' true -- outside the fill

See also

TuiCell TuiCell.Equals TuiBuffer TuiBuffer.Clear TuiBuffer.At TuiFrame
TuiCell.SetChar TuiCellBlank TuiBuffer.Resize TuiBuffer.InBounds TuiBuffer.Count TuiFrame.Area

Library: Terminal TUI Library
Category: Terminal TUI Library
Documented under: Buffer and Frame
Working examples: hello.tiko · form.tiko · dashboard.tiko


Home · Keyword Index

Clone this wiki locally