docs
Loading...
Searching...
No Matches
CAPI.h
Go to the documentation of this file.
1///
2/// Copyright (C) 2026 Ultralight, Inc. All rights reserved.
3/// A license is required for commercial use. https://ultralig.ht
4///
5
6///
7/// @file CAPI.h
8///
9/// C API umbrella header. Include this single header to access the core Ultralight C API.
10///
11/// `#include <Ultralight/CAPI.h>`
12///
13/// The native DOM family stays opt-in and is not pulled in here. Include what you use:
14/// `<Ultralight/CAPI/CAPI_DOMDocument.h>` and its `CAPI_DOM*` siblings for documents, nodes,
15/// elements, events, ranges, and selection; `<Ultralight/CAPI/CAPI_DOMTriggers.h>` for
16/// navigation-surviving page listeners; `<Ultralight/CAPI/CAPI_DOMData.h>` for declarative
17/// data binding.
18///
19/// ## API Note
20///
21/// You should only destroy objects that you explicitly create. Do not destroy any objects returned
22/// from the API or callbacks unless otherwise noted.
23///
24#ifndef ULTRALIGHT_CAPI_H
25#define ULTRALIGHT_CAPI_H
26
59
60#endif // ULTRALIGHT_CAPI_H
User-defined audio output interface.
A container for pixel data.
A fixed-size container for raw byte data.
User-defined clipboard interface.
An RGBA color value in a certain color space (with CSS parsing helpers).
Core configuration for the renderer.
Text-editing interface for a View.
User-defined file system interface.
Font file interface.
User-defined font loader interface.
User-defined GPU driver interface.
Gamepad event interface.
Geometry utilities.
User-defined image source to display custom images on a web-page.
A global JavaScript namespace attached to a View.
Functions for sharing raw binary memory with JavaScript through ArrayBuffers and typed arrays.
Native class definitions and instance wrappers for JavaScript.
JavaScript runtime functions for task posting, background work, and weak references.
JavaScript context and value handles for interacting with page script in C.
Key event interface.
User-defined logging interface.
Mouse event interface.
Global platform singleton, manages user-defined platform handlers.
Core renderer singleton for the library, coordinates all library functions.
Scroll event interface.
Storage for a browsing session (cookies, local storage, etc.).
Unicode string container (natively UTF-8).
User-defined pixel buffer surface.
User-defined factory for creating new threads.
Parsed web addresses for C.
Web-page container rendered to an offscreen surface.
Various defines and utility functions for the C API.