Wef is a Rust library for embedding WebView functionality using Chromium Embedded Framework (CEF3) with offscreen rendering support.
14 lines
No EOL
345 B
C++
14 lines
No EOL
345 B
C++
#include "include/cef_render_handler.h"
|
|
|
|
extern "C" {
|
|
|
|
int wef_dirty_rects_len(const CefRenderHandler::RectList* dirtyRects) {
|
|
return static_cast<int>(dirtyRects->size());
|
|
}
|
|
|
|
void wef_dirty_rects_get(const CefRenderHandler::RectList* dirtyRects, int i,
|
|
CefRect* rect) {
|
|
*rect = dirtyRects->at(i);
|
|
}
|
|
|
|
} // extern "C"
|