Ultralight C++ API 1.3.0
|
#include <Ultralight/View.h>
View-specific configuration settings.
Public Attributes | |
bool | is_accelerated = false |
Whether to render using the GPU renderer (accelerated) or the CPU renderer (unaccelerated). | |
bool | is_transparent = false |
Whether or not this View should support transparency. | |
double | initial_device_scale = 1.0 |
The initial device scale, ie. | |
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. | |
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. | |
bool ultralight::ViewConfig::enable_images = true |
Whether or not images should be enabled.
bool ultralight::ViewConfig::enable_javascript = true |
Whether or not JavaScript should be enabled.
String ultralight::ViewConfig::font_family_fixed = "Courier New" |
Default font-family to use for fixed fonts.
(pre/code)
String ultralight::ViewConfig::font_family_sans_serif = "Arial" |
Default font-family to use for sans-serif fonts.
String ultralight::ViewConfig::font_family_serif = "Times New Roman" |
Default font-family to use for serif fonts.
String ultralight::ViewConfig::font_family_standard = "Times New Roman" |
Default font-family to use.
double ultralight::ViewConfig::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 ultralight::ViewConfig::initial_focus = true |
Whether or not the View should initially have input focus,.
bool ultralight::ViewConfig::is_accelerated = false |
Whether to render using the GPU renderer (accelerated) or the CPU renderer (unaccelerated).
This option is only valid if you're managing the Renderer yourself (eg, you've previously called Renderer::Create() instead of App::Create()).
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 ultralight::ViewConfig::is_transparent = false |
Whether or not this View should support transparency.
html, body { background: transparent; }
String ultralight::ViewConfig::user_agent |
Default user-agent string.