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)Parameters
Section titled “Parameters”| Type | Description |
|---|---|
FiniteShell *shell | The FiniteShellwhere the window is. |
Code Example
Section titled “Code Example”#include <finite/draw.h>
finite_draw_load_snapshot(myShell);finite_draw_finish(myShell);Standard Usage
Section titled “Standard Usage”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.