Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
ultralight::Config Struct Reference

Configurations settings for Ultralight. More...

#include <Config.h>

Public Attributes

FaceWinding face_winding = kFaceWinding_CounterClockwise
 The winding order for front-facing triangles. More...
 
bool enable_images = true
 Whether or not images should be enabled.
 
bool enable_javascript = true
 Whether or not JavaScript should be enabled.
 
bool use_bgra_for_offscreen_rendering = false
 When using the default, offscreen GPU driver, whether or not we should use BGRA byte order (instead of RGBA). More...
 
double device_scale_hint = 1.0
 The amount that the application DPI has been scaled (200% = 2.0). More...
 
String16 font_family_standard = "Times New Roman"
 Default font-family to use.
 
String16 font_family_fixed = "Courier New"
 Default font-family to use for fixed fonts. More...
 
String16 font_family_serif = "Times New Roman"
 Default font-family to use for serif fonts.
 
String16 font_family_sans_serif = "Arial"
 Default font-family to use for sans-serif fonts.
 
String16 user_agent
 Default user-agent string.
 
String16 user_stylesheet
 Default user stylesheet. More...
 

Detailed Description

Configurations settings for Ultralight.

This is intended to be implemented by users and defined before creating the Renderer.

See also
Platform::set_config.

Definition at line 48 of file Config.h.

Member Data Documentation

◆ device_scale_hint

double ultralight::Config::device_scale_hint = 1.0

The amount that the application DPI has been scaled (200% = 2.0).

Used for scaling device coordinates to pixels and oversampling raster shapes.

Definition at line 75 of file Config.h.

◆ face_winding

FaceWinding ultralight::Config::face_winding = kFaceWinding_CounterClockwise

The winding order for front-facing triangles.

See also
FaceWinding

Definition at line 52 of file Config.h.

◆ font_family_fixed

String16 ultralight::Config::font_family_fixed = "Courier New"

Default font-family to use for fixed fonts.

(pre/code)

Definition at line 85 of file Config.h.

◆ use_bgra_for_offscreen_rendering

bool ultralight::Config::use_bgra_for_offscreen_rendering = false

When using the default, offscreen GPU driver, whether or not we should use BGRA byte order (instead of RGBA).

See also
View::bitmap

Definition at line 68 of file Config.h.

◆ user_stylesheet

String16 ultralight::Config::user_stylesheet

Default user stylesheet.

You should set this to your own custom CSS string to define default styles for various DOM elements, scrollbars, and platform input widgets.

Definition at line 109 of file Config.h.


The documentation for this struct was generated from the following file: