14#define WSCW_API extern "C" __declspec(dllexport)
16#define WSCW_API extern "C" __declspec(dllimport)
24#define WSCW_VERSION_MAJOR 1
25#define WSCW_VERSION_MINOR 0
26#define WSCW_VERSION_PATCH 0
27#define WSCW_VERSION_STRING "1.0.0"
int WSCW_CreateBrowser(const char *url, int width, int height)
Create an off-screen browser and navigate to a URL.
WSCWResult WSCW_DestroyBrowser(int browserId)
Destroy a browser and free resources.
WSCWResult WSCW_SetFrameRate(int browserId, int fps)
Set the frame rate for off-screen rendering.
WSCWResult WSCW_Resize(int browserId, int width, int height)
Resize the virtual viewport.
WSCWResult WSCW_ExecuteJS(int browserId, const char *code)
Execute JavaScript code in the browser's main frame.
WSCWResult WSCW_Init()
Initialize CEF engine.
void WSCW_DoMessageLoopWork()
Pump CEF message loop.
void WSCW_Shutdown()
Shut down CEF engine and destroy all browsers.
WSCWResult WSCW_Navigate(int browserId, const char *url)
Navigate to a new URL.
WSCWResult WSCW_Reload(int browserId)
Reload the current page.
WSCWResult WSCW_GoBack(int browserId)
Navigate back.
WSCWResult WSCW_GoForward(int browserId)
Navigate forward.
WSCWResult WSCW_AttachOutput(int browserId, int outputId)
Attach a WSCLib output to this browser.
WSCWResult WSCW_DetachOutput(int browserId, int outputId)
Detach a WSCLib output from this browser.
WSCWResult
Result codes returned by WSCLibWeb functions.
Definition wscweb.h:52
@ WSCW_ERROR_ALLOC_FAIL
Definition wscweb.h:59
@ WSCW_ERROR_INVALID_ID
Definition wscweb.h:57
@ WSCW_ERROR_INVALID_PARAM
Definition wscweb.h:55
@ WSCW_ERROR_CEF_FAIL
Definition wscweb.h:56
@ WSCW_OK
Definition wscweb.h:53
@ WSCW_ERROR_ALREADY_INIT
Definition wscweb.h:58
@ WSCW_ERROR_NOT_INIT
Definition wscweb.h:54
WSCWVersion WSCW_GetVersion()
Get WSCLibWeb version info.
Version information structure.
Definition wscweb.h:31
const char * string
Definition wscweb.h:35
int patch
Definition wscweb.h:34
int minor
Definition wscweb.h:33
int major
Definition wscweb.h:32
#define WSCW_API
Definition wscweb.h:14