16#ifndef ULTRALIGHT_CAPI_CONFIG_H
17#define ULTRALIGHT_CAPI_CONFIG_H
void ulConfigSetEffectQuality(ULConfig config, ULEffectQuality quality)
The quality of effects (blurs, CSS filters, SVG filters, etc.) to use when rendering.
void ulConfigSetResourceSampleInterval(ULConfig config, unsigned int interval_ms)
The interval (in milliseconds) at which the library samples and emits resource counters (memory usage...
void ulConfigSetDeveloperMode(ULConfig config, bool developer_mode)
Set whether or not the library runs in developer mode (Default = false).
void ulConfigSetPaintFullLayers(ULConfig config, bool enabled)
Whether to paint full layers when dirty instead of just the dirty subregion.
void ulConfigSetMediaProfile(ULConfig config, ULMediaProfile media_profile)
The memory-vs-performance profile for the HTML5 media subsystem.
void ulConfigSetEnablePhotonText(ULConfig config, bool enabled)
Whether or not text and color emoji also render analytically when analytic vector rendering is enable...
void ulConfigSetPageCacheSize(ULConfig config, unsigned int size)
The number of pages to keep in the cache.
void ulConfigSetFaceWinding(ULConfig config, ULFaceWinding winding)
The winding order for front-facing triangles.
void ulConfigSetBitmapAlignment(ULConfig config, unsigned int bitmap_alignment)
The alignment (in bytes) of the BitmapSurface when using the CPU renderer.
void ulConfigSetUserStylesheet(ULConfig config, ULString css_string)
Global user-defined CSS string (included before any CSS on the page).
void ulConfigSetOverrideRAMSize(ULConfig config, unsigned int size)
The system's physical RAM size in bytes.
ULDiagnosticsLevel
How much checking and warning the library does for mistakes made through one of its APIs.
Definition CAPI_Config.h:38
@ kULDiagnosticsLevel_Warn
Development warnings about each mistake as it happens.
Definition CAPI_Config.h:48
@ kULDiagnosticsLevel_Off
No per-operation warnings (a mistake the library only finds once, like an invalid setup call,...
Definition CAPI_Config.h:43
@ kULDiagnosticsLevel_Auto
Warn when developer mode is on, Off when it's off (see ulConfigSetDeveloperMode()).
Definition CAPI_Config.h:60
@ kULDiagnosticsLevel_Strict
Everything kULDiagnosticsLevel_Warn reports, plus stricter checks (eg, a lossy argument conversion in...
Definition CAPI_Config.h:55
void ulConfigSetMinSmallHeapSize(ULConfig config, unsigned int size)
The minimum size of small VM heaps in JavaScriptCore.
void ulConfigSetMaxHeapSize(ULConfig config, unsigned int size)
A soft target for the total JavaScriptCore heap size, in bytes.
void ulConfigSetFontProfile(ULConfig config, ULFontProfile font_profile)
The font-appearance preset providing default values for the text rendering knobs (font gamma,...
void ulConfigSetIdleGCIdleTime(ULConfig config, double idle_time)
How long (in seconds) a page must be idle, with no user input, before automatic idle collection begin...
void ulConfigSetNumRendererThreads(ULConfig config, unsigned int num_renderer_threads)
The number of threads to use in the Renderer (for parallel painting on the CPU, etc....
void ulConfigSetForceRepaint(ULConfig config, bool enabled)
Whether or not to continuously repaint any Views, regardless if they are dirty.
void ulConfigSetMemoryProfile(ULConfig config, ULMemoryProfile memory_profile)
Memory vs.
void ulDestroyConfig(ULConfig config)
Destroy a ULConfig instance created by ulCreateConfig().
void ulConfigSetFontBlendMode(ULConfig config, ULFontBlendMode font_blend_mode)
Set how antialiased glyph edges are blended into the page (Default = kFontBlendMode_Profile,...
void ulConfigSetResourcePathPrefix(ULConfig config, ULString resource_path_prefix)
The relative path to the resources folder (loaded via the FileSystem API).
void ulConfigSetMinLargeHeapSize(ULConfig config, unsigned int size)
The minimum size of large VM heaps in JavaScriptCore.
void ulConfigSetPhotonTextMinPx(ULConfig config, unsigned int min_px)
The minimum on-screen glyph size, in pixels, at which text renders analytically when analytic text is...
void ulConfigSetMaxUpdateTime(ULConfig config, double max_update_time)
The max amount of time (in seconds) to allow repeating timers to run during each call to Renderer::Up...
void ulConfigSetCachePath(ULConfig config, ULString cache_path)
A writable OS file path to store persistent Session data in.
void ulConfigSetFontEmbolden(ULConfig config, double font_embolden)
Extra stroke weight applied to glyph shapes, as a fraction of the font size (for example,...
void ulConfigSetRecycleDelay(ULConfig config, double delay)
The interval (in seconds) at which the library automatically recycles internal caches and reclaims me...
void ulConfigSetPageSettleCycles(ULConfig config, unsigned int cycles)
The number of consecutive idle samples the library requires before it declares a page settled.
void ulConfigSetIgnoreSSLErrors(ULConfig config, bool enabled)
Whether to ignore SSL certificate errors when using the built-in network backend.
void ulConfigSetPageSettleTick(ULConfig config, double tick)
How often (in seconds) the library samples a loading page for idleness.
void ulConfigSetPageSettleDelay(ULConfig config, double delay)
Additional delay (in seconds) on top of the engine's internal page-settled detection.
void ulConfigSetFontGamma(ULConfig config, double font_gamma)
The gamma to use when compositing font glyphs, change this value to adjust contrast (Adobe and Apple ...
void ulConfigSetFontStemDarkening(ULConfig config, double font_stem_darkening)
Stem-darkening strength for rendered text.
ULConfig ulCreateConfig(void)
Create config with default values (see <Ultralight/platform/Config.h>).
void ulConfigSetIdleGCEnabled(ULConfig config, bool enabled)
Whether the library automatically collects garbage and returns freed memory to the OS without embedde...
void ulConfigSetMinLogLevel(ULConfig config, ULLogLevel level)
Set the least severe level the library sends to the Logger; less severe messages are dropped (Default...
void ulConfigSetFontContrast(ULConfig config, double font_contrast)
Additional contrast enhancement applied when compositing font glyphs.
void ulConfigSetJavaScriptDiagnostics(ULConfig config, ULDiagnosticsLevel level)
Set the diagnostics level for JavaScript APIs that leave their own level at the default (Default = kU...
void ulConfigSetEnablePhoton(ULConfig config, bool enabled)
Whether or not GPU-accelerated Views render vector content (path fills and strokes) analytically inst...
void ulConfigSetDOMDiagnostics(ULConfig config, ULDiagnosticsLevel level)
Set the diagnostics level for the DOM API and data bindings (Default = kULDiagnosticsLevel_Auto).
void ulConfigSetMemoryCacheSize(ULConfig config, unsigned int size)
The size of the library's memory cache in bytes.
void ulConfigSetUseSystemCertificateStore(ULConfig config, bool enabled)
Whether to validate TLS server certificates against the operating system's certificate store instead ...
void ulConfigSetFontHinting(ULConfig config, ULFontHinting font_hinting)
The hinting algorithm to use when rendering fonts.
User-defined logging interface.
ULLogLevel
The severity of a log message, from most to least severe.
Definition CAPI_Logger.h:44
Various defines and utility functions for the C API.
ULFaceWinding
The winding order for front-facing triangles.
Definition CAPI_Defines.h:339
struct C_String * ULString
Opaque handle to a String object.
Definition CAPI_Defines.h:96
struct C_Config * ULConfig
Opaque handle to a Config object.
Definition CAPI_Defines.h:75
#define ULExport
Definition CAPI_Defines.h:42
ULMemoryProfile
Memory vs.
Definition CAPI_Defines.h:451
ULFontBlendMode
How antialiased glyph edges are blended into the page.
Definition CAPI_Defines.h:403
ULEffectQuality
The quality level for rendering effects (CSS filters, shadows, blurs, etc.).
Definition CAPI_Defines.h:426
ULFontProfile
The font-appearance preset that provides default values for the text rendering knobs.
Definition CAPI_Defines.h:376
ULFontHinting
Definition CAPI_Defines.h:344
ULMediaProfile
Memory vs.
Definition CAPI_Defines.h:481