#pragma once
#include <QImage>

// Captures the e-paper framebuffer's backing image by interposing
// EPFramebuffer::setBuffers (defined in FbCapture.cpp). The executable is linked
// with -Wl,--export-dynamic so its symbol wins the cross-DSO call from the
// epaper platform plugin into libqsgepaper. The ink engine then draws strokes
// straight into the framebuffer memory and refreshes with an explicit swap.
namespace FbCapture {
bool ready();
QImage framebuffer(); // a QImage wrapping the real buffer (no copy) — draw into it
}
