finite_draw_create_snapshot
The finite_draw_create_snapshot function attempts to create a restore point of a cairo surface.
void finite_draw_create_snapshot(FiniteShell *shell)Parameters
Section titled “Parameters”| Type | Description |
|---|---|
FiniteShell *shell | The FiniteShell where the window is. |
Code Example
Section titled “Code Example”#include <finite/draw.h>
finite_shm_alloc(shell, true);finite_draw_create_snapshot(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.