Skip to content

Modern Tui TuiFrame PopClip

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

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

TuiFrame.PopClip

Restores the drawing limit that PushClip returned.

Syntax

TuiFrame.PopClip( byval saved as TuiRect )

Description

Restores a clip returned by PushClip. Pass back exactly what PushClip gave you -- it is a saved value, not a stack pop.

Example

#import "std/tui"
using tui

dim as TuiScreen scr
scr.Resize( 20, 4 )
dim as TuiFrame ptr f = scr.BeginFrame( )
dim as TuiRect saved = f->PushClip( TuiRectOf( 1, 1, 3, 2 ) )
f->PopClip( saved )
print f->Clip( ).Equals( f->Area( ) )      '' true

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