![]() |
UCefView
|
FCefViewSettings defines per-instance configuration for a CEF browser embedded in a UMG widget. It allows fine-grained control over browser appearance, font preferences, encoding, language, and a wide range of browser features such as JavaScript, plugins, storage, and WebGL. Most settings are applied at browser creation and cannot be changed at runtime. Feature toggles use ECefViewFeatureState to enable, disable, or inherit the global/default behavior. All these values are not changeable after one SCefView instance created. More...
#include <CefViewSettings.h>
Public Attributes | |
FColor | BackgroundColor = FColor::White |
The background color of the CEF browser viewport. Used when no web content is loaded or as the default background. Default: FColor::White. | |
FString | StandardFontFamily |
The font family name used as the standard (proportional) font for web content. Example: "Arial", "Times New Roman". | |
FString | FixedFontFamily |
The font family name used for fixed-width (monospace) text. Example: "Courier New", "Consolas". | |
FString | SerifFontFamily |
The font family name used for serif text. Example: "Times New Roman". | |
FString | SansSerifFontFamily |
The font family name used for sans-serif text. Example: "Arial", "Helvetica". | |
FString | CursiveFontFamily |
The font family name used for cursive text. Example: "Comic Sans MS". | |
FString | FantasyFontFamily |
The font family name used for fantasy text. Example: "Impact". | |
int32 | DefaultFontSize = 0 |
The default font size (in pixels) for proportional fonts in web content. Determines the base size for most text. | |
int32 | DefaultFixedFontSize = 0 |
The default font size (in pixels) for fixed-width (monospace) fonts. Used for code blocks and preformatted text. | |
int32 | MinimumFontSize = 0 |
The minimum font size (in pixels) allowed for any text. Ensures text remains legible even if web content requests smaller sizes. | |
int32 | MinimumLogicalFontSize = 0 |
The minimum logical font size (in pixels) allowed for proportional fonts. Logical font size may differ from physical font size depending on scaling. | |
FString | DefaultEncoding |
The default text encoding for web content. Example: "UTF-8". | |
FString | AcceptLanguageList |
A comma-separated list of language codes (e.g., "en-US,fr,de") used for the "Accept-Language" HTTP header. Specifies the preferred languages for web content. | |
ECefViewFeatureState | RemoteFonts |
Controls whether remote web fonts (such as Google Fonts) are enabled or disabled. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | Javascript = ECefViewFeatureState::Default |
Controls whether JavaScript execution is enabled in the browser. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | AllowJavascriptCloseWindows = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to close browser windows (e.g., via window.close()). ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | AllowJavascriptAccessClipboard = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to access the system clipboard. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | AllowJavascriptDomPaste = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to perform DOM paste operations. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | Plugins = ECefViewFeatureState::Default |
Controls whether browser plugins (such as Flash, PDF viewers) are enabled. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | ImageLoading = ECefViewFeatureState::Default |
Controls whether images are loaded automatically in web content. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | ImageShrinkStandaloneToFit = ECefViewFeatureState::Default |
Controls whether standalone images are automatically shrunk to fit the view. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | TextAreaResize = ECefViewFeatureState::Default |
Controls whether text areas in web content can be resized by the user. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | TabToLinks = ECefViewFeatureState::Default |
Controls whether the Tab key can be used to navigate to links in web content. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | LocalStorage = ECefViewFeatureState::Default |
Controls whether HTML5 local storage is enabled for web content. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | Databases = ECefViewFeatureState::Default |
Controls whether HTML5 databases (WebSQL, IndexedDB) are enabled for web content. ECefViewFeatureState::Default inherits the global or engine default. | |
ECefViewFeatureState | WebGL = ECefViewFeatureState::Default |
Controls whether WebGL (hardware-accelerated 3D graphics) is enabled for web content. ECefViewFeatureState::Default inherits the global or engine default. | |
FCefViewSettings defines per-instance configuration for a CEF browser embedded in a UMG widget. It allows fine-grained control over browser appearance, font preferences, encoding, language, and a wide range of browser features such as JavaScript, plugins, storage, and WebGL. Most settings are applied at browser creation and cannot be changed at runtime. Feature toggles use ECefViewFeatureState to enable, disable, or inherit the global/default behavior. All these values are not changeable after one SCefView instance created.
FString FCefViewSettings::AcceptLanguageList |
A comma-separated list of language codes (e.g., "en-US,fr,de") used for the "Accept-Language" HTTP header. Specifies the preferred languages for web content.
ECefViewFeatureState FCefViewSettings::AllowJavascriptAccessClipboard = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to access the system clipboard. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::AllowJavascriptCloseWindows = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to close browser windows (e.g., via window.close()). ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::AllowJavascriptDomPaste = ECefViewFeatureState::Default |
Controls whether JavaScript is allowed to perform DOM paste operations. ECefViewFeatureState::Default inherits the global or engine default.
FColor FCefViewSettings::BackgroundColor = FColor::White |
The background color of the CEF browser viewport. Used when no web content is loaded or as the default background. Default: FColor::White.
FString FCefViewSettings::CursiveFontFamily |
The font family name used for cursive text. Example: "Comic Sans MS".
ECefViewFeatureState FCefViewSettings::Databases = ECefViewFeatureState::Default |
Controls whether HTML5 databases (WebSQL, IndexedDB) are enabled for web content. ECefViewFeatureState::Default inherits the global or engine default.
FString FCefViewSettings::DefaultEncoding |
The default text encoding for web content. Example: "UTF-8".
int32 FCefViewSettings::DefaultFixedFontSize = 0 |
The default font size (in pixels) for fixed-width (monospace) fonts. Used for code blocks and preformatted text.
int32 FCefViewSettings::DefaultFontSize = 0 |
The default font size (in pixels) for proportional fonts in web content. Determines the base size for most text.
FString FCefViewSettings::FantasyFontFamily |
The font family name used for fantasy text. Example: "Impact".
FString FCefViewSettings::FixedFontFamily |
The font family name used for fixed-width (monospace) text. Example: "Courier New", "Consolas".
ECefViewFeatureState FCefViewSettings::ImageLoading = ECefViewFeatureState::Default |
Controls whether images are loaded automatically in web content. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::ImageShrinkStandaloneToFit = ECefViewFeatureState::Default |
Controls whether standalone images are automatically shrunk to fit the view. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::Javascript = ECefViewFeatureState::Default |
Controls whether JavaScript execution is enabled in the browser. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::LocalStorage = ECefViewFeatureState::Default |
Controls whether HTML5 local storage is enabled for web content. ECefViewFeatureState::Default inherits the global or engine default.
int32 FCefViewSettings::MinimumFontSize = 0 |
The minimum font size (in pixels) allowed for any text. Ensures text remains legible even if web content requests smaller sizes.
int32 FCefViewSettings::MinimumLogicalFontSize = 0 |
The minimum logical font size (in pixels) allowed for proportional fonts. Logical font size may differ from physical font size depending on scaling.
ECefViewFeatureState FCefViewSettings::Plugins = ECefViewFeatureState::Default |
Controls whether browser plugins (such as Flash, PDF viewers) are enabled. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::RemoteFonts |
Controls whether remote web fonts (such as Google Fonts) are enabled or disabled. ECefViewFeatureState::Default inherits the global or engine default.
FString FCefViewSettings::SansSerifFontFamily |
The font family name used for sans-serif text. Example: "Arial", "Helvetica".
FString FCefViewSettings::SerifFontFamily |
The font family name used for serif text. Example: "Times New Roman".
FString FCefViewSettings::StandardFontFamily |
The font family name used as the standard (proportional) font for web content. Example: "Arial", "Times New Roman".
ECefViewFeatureState FCefViewSettings::TabToLinks = ECefViewFeatureState::Default |
Controls whether the Tab key can be used to navigate to links in web content. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::TextAreaResize = ECefViewFeatureState::Default |
Controls whether text areas in web content can be resized by the user. ECefViewFeatureState::Default inherits the global or engine default.
ECefViewFeatureState FCefViewSettings::WebGL = ECefViewFeatureState::Default |
Controls whether WebGL (hardware-accelerated 3D graphics) is enabled for web content. ECefViewFeatureState::Default inherits the global or engine default.