Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
Config.h
Go to the documentation of this file.
1 #pragma once
15 #include <Ultralight/Defines.h>
16 #include <Ultralight/String16.h>
17 
18 namespace ultralight {
19 
35 
40 };
41 
48 struct UExport Config {
53 
57  bool enable_images = true;
58 
62  bool enable_javascript = true;
63 
68  bool use_bgra_for_offscreen_rendering = false;
69 
75  double device_scale_hint = 1.0;
76 
80  String16 font_family_standard = "Times New Roman";
81 
85  String16 font_family_fixed = "Courier New";
86 
90  String16 font_family_serif = "Times New Roman";
91 
95  String16 font_family_sans_serif = "Arial";
96 
100  String16 user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
101  "AppleWebKit/602.1 (KHTML, like Gecko) "
102  "Ultralight/0.9.2 Safari/602.1";
103 
110 };
111 
112 } // namespace ultralight
Counter-Clockwise Winding (OpenGL, etc.)
Definition: Config.h:39
String16 user_stylesheet
Default user stylesheet.
Definition: Config.h:109
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
FaceWinding
The winding order for front-facing triangles.
Definition: Config.h:30
Clockwise Winding (Direct3D, etc.)
Definition: Config.h:34
Configurations settings for Ultralight.
Definition: Config.h:48
A UTF-16 string container.
Definition: String16.h:38
The header for the String16 class.