Skip to content

finite_draw_load_snapshot

The finite_draw_load_snapshot function attempts to restore a cairo surface from a restore point.

void finite_draw_load_snapshot(FiniteShell *shell)
TypeDescription
FiniteShell *shellThe FiniteShellwhere the window is.
#include <finite/draw.h>
finite_draw_load_snapshot(myShell);
finite_draw_finish(myShell);

This function must have a valid FiniteShell

This function uses Cairo which requires a valid cairo_surface_t in FiniteShell.cairo_surface beforehand.

This function copys all current data on screen and stores it in FiniteShell.snapshot in FiniteShell

At some point finite_draw_finish should be called to apply the changes made by the snapshot visually.