#include <dl_canvas.h>
Definition at line 239 of file dl_canvas.h.
◆ DlAutoCanvasRestore()
flutter::DlAutoCanvasRestore::DlAutoCanvasRestore |
( |
DlCanvas * |
canvas, |
|
|
bool |
do_save |
|
) |
| |
|
inline |
Definition at line 241 of file dl_canvas.h.
241 : canvas_(canvas) {
242 if (canvas) {
243 canvas_ = canvas;
244 restore_count_ = canvas->GetSaveCount();
245 if (do_save) {
247 }
248 } else {
249 canvas_ = nullptr;
250 restore_count_ = 0;
251 }
252 }
◆ ~DlAutoCanvasRestore()
flutter::DlAutoCanvasRestore::~DlAutoCanvasRestore |
( |
| ) |
|
|
inline |
◆ Restore()
void flutter::DlAutoCanvasRestore::Restore |
( |
| ) |
|
|
inline |
Definition at line 256 of file dl_canvas.h.
256 {
257 if (canvas_) {
259 canvas_ = nullptr;
260 }
261 }
virtual void RestoreToCount(int restore_count)=0
The documentation for this class was generated from the following file: