Skip to content

ui.Canvas does not have a restoreToCount method #110324

@flar

Description

@flar

ui.Canvas implements getSaveCount() which returns the size of the internal save(Layer) stack, but it does not provide any methods to use that information. Typically a save/restore type of graphics object will provide a restoreToCount(save_count) method to quickly roll back a number of outstanding/unmatched save methods - often useful when the execution of a method had some of its save or saveLayer calls invoked conditionally so that a single "restore to the save count when we started" call can replace a nest of conditional restores at the end of that sequence.

Metadata

Metadata

Assignees

Labels

engineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions