| #define |
meaning |
affects size |
platform |
HAS_MOUSE |
should be defined for desktop versions and for mobiles that have stylus, etc |
no |
all |
PNG_SUPPORT |
will link libpng and add png and animated-png support |
yes |
all |
GIF_SUPPORT |
enables gif images support |
yes |
all |
SVG_SUPPORT |
enables svg support |
yes |
all |
WIC_SUPPORT | enables IWICImagingFactory and links with windowscodecs.lib - this allows to load extended set of image formats supported by Windows: .tiff, .jpg, etc. | no | Windows |
JPG_SUPPORT | enables .jpg image loading. | yes | all |
WEBP_SUPPORT | enables .webp image (Google) loading. | yes | all |
ZIP_SUPPORT | markup can be loaded from .zip files. Note: this is not about zlib inclusion as zlib is required for libpng and http client | no | all |
HTTP_SUPPORT | enables http(s) client so the engine can download stuff remotely | yes | all |
USE_OVERSCROLL (true | false) | allows iOS style indication of overscroll when overflow:scroll-indicator is used in CSS. I am not sure but Apple may complain on #define USE_OVERSCROLL true - they may have this under some patent. | no | all |
USE_THREAD_LOCAL | enables C++ thread_local use, shall be #undef'ed for Windows XP builds, its runtime does not support it. | no | Windows |
ACCESSIBLE | enables IAccessible support | yes | Windows |
USE_UIAUTOMATION | enables UIAutomation and modern accessibility on Windows | yes | Windows |
USE_D2D | enables Direct2D graphics backend | yes | Windows |
USE_D2D_PLUS | enables Direct2D v1.2 and above features: CSS filters, color fonts, etc. | yes | Windows |
USE_DIRECT_COMP | enables DirectComposition - "acrylic" support on Windows | yes | Windows |
USE_VIDEO | enables <video> element support | no | all |
USE_DS_VIDEO | enables <video> playback on Windows using DirectShow interfaces | yes | Windows |
USE_ANIMATED_SCROLL | enables animated, a.k.a. "kinetic" scroll. "kinetic" scroll causes 60 FPS redraw on scrolling so you may want to disable this on weak machines. | no | all |
SCROLL_INDICATOR_ONLY | if enabled then overflow:scroll | auto are treated as overflow:scroll-indicator - so no "classic" scrollbars at all. | no | all |
SPELL_CHECK_SUPPORT | enables Windows and MacOS spellchecker in <textarea>, <plaintext>, <htmlarea> | no | Windows, MacOS |
SCREENSHOT_SUPPORT | allows view.screenBox(n,#snapshot) by script, potentially unsafe for security reasons | no | all |
WEBSOCKETS_SUPPORT | enables websockets - WebSocket objects in script | yes | all |
TLS_SUPPORT | enables secure websockets (wss: addresses) | yes | all |
NETWORK_SUPPORT | enables network communication from script - pipe, tcp, websockets. Note this required for connectivity with inspector.exe | yes | all |
PROCESS_SUPPORT | enables System.Process in script. Allows to run arbitrary executables from script, optional | no | all |
| HTTP_USER_AGENT "foo.bar"
| redefine HTTP's user agent string | no | all |
HTTP_CONNECTION_TIMEOUT 10000 | redefine HTTP's connection timeout , milliseconds | no | all |