GRID CARTOGRAPHER 4
Shortcuts

UIDisplayBackup

2019-04-12

This helper class simplifies capture of the current text buffer or graphics display contents. When creating full-screen interfaces that write over the whole screen, the previous contents can be preserved at startup and restored on exit.

Requirements

Header | uikit/displaybackup.nut

Methods

Constructor

var backup = UIDisplayBackup();

Create an instance of the UIDisplayBackup class.

Store

Backup.Store(): void

Take a copy of all current display settings and the contents of the text buffer or graphics display. Typically, this will be called at the start of the program.

Restore

Backup.Restore(): void

Restore the display backup after a call to class method Store. Typically, this will be called at the program end to undo any changes to the display made during operation.