gpui-component/crates/wef/cpp/wef.h
Sunli b70b229370
wef: Added a new WebView component named "Wef" based on CEF. (#877)
Wef is a Rust library for embedding WebView functionality using Chromium
Embedded Framework (CEF3) with offscreen rendering support.
2025-06-17 18:57:44 +08:00

15 lines
278 B
C++

#pragma once
#include <optional>
#include "client.h"
#include "include/cef_browser.h"
struct WefBrowser {
std::string url;
bool focus;
CefRefPtr<WefClient> client;
bool deleteBrowser = false;
std::optional<CefRefPtr<CefBrowser>> browser;
int cursorX, cursorY;
};