Ultralight C++ API 1.4.0
|
#include <Ultralight/View.h>
View-specific configuration settings.
Public Attributes | |
uint32_t | display_id = 0 |
A user-generated id for the display (monitor, TV, or screen) that this View will be shown on. | |
bool | is_accelerated = false |
Whether to render using the GPU renderer (accelerated) or the CPU renderer (unaccelerated). | |
double | initial_device_scale = 1.0 |
The initial device scale, ie. | |
bool | is_transparent = false |
Whether or not this View should support transparency. | |
bool | initial_focus = true |
Whether or not the View should initially have input focus,. | |
bool | enable_images = true |
Whether or not images should be enabled. | |
bool | enable_javascript = true |
Whether or not JavaScript should be enabled. | |
bool | enable_compositor = false |
Whether or not compositing should be enabled. | |
String | font_family_standard = "Times New Roman" |
Default font-family to use. | |
String | font_family_fixed = "Courier New" |
Default font-family to use for fixed fonts. | |
String | font_family_serif = "Times New Roman" |
Default font-family to use for serif fonts. | |
String | font_family_sans_serif = "Arial" |
Default font-family to use for sans-serif fonts. | |
String | user_agent |
Default user-agent string. | |
uint32_t display_id = 0 |
A user-generated id for the display (monitor, TV, or screen) that this View will be shown on.
Animations are driven based on the physical refresh rate of the display. Multiple Views can share the same display.
bool enable_compositor = false |
Whether or not compositing should be enabled.
bool enable_images = true |
Whether or not images should be enabled.
bool enable_javascript = true |
Whether or not JavaScript should be enabled.
String font_family_fixed = "Courier New" |
Default font-family to use for fixed fonts.
(pre/code)
String font_family_sans_serif = "Arial" |
Default font-family to use for sans-serif fonts.
String font_family_serif = "Times New Roman" |
Default font-family to use for serif fonts.
String font_family_standard = "Times New Roman" |
Default font-family to use.
double initial_device_scale = 1.0 |
The initial device scale, ie.
the amount to scale page units to screen pixels. This should be set to the scaling factor of the device that the View is displayed on.
bool initial_focus = true |
Whether or not the View should initially have input focus,.
bool is_accelerated = false |
Whether to render using the GPU renderer (accelerated) or the CPU renderer (unaccelerated).
When true, the View will be rendered to an offscreen GPU texture using the GPU driver set in Platform::set_gpu_driver. You can fetch details for the texture via View::render_target.
When false (the default), the View will be rendered to an offscreen pixel buffer using the multithreaded CPU renderer. This pixel buffer can optionally be provided by the user– for more info see Platform::set_surface_factory and View::surface.
bool is_transparent = false |
Whether or not this View should support transparency.
html, body { background: transparent; }
String user_agent |
Default user-agent string.