UCefView
Loading...
Searching...
No Matches
FSlateCefViewSettings

Represents the per-instance settings for a Slate-based CefView widget. These settings control font sizes, font families, encoding, language preferences, background color, and a variety of browser features such as JavaScript, plugins, image loading, storage, and more. Most settings are fixed and cannot be changed after the SCefView instance is created. Feature toggles use ECefViewFeatureState to allow enabling, disabling, or inheriting the default behavior for each feature. All these values are not changeable after one SCefView instance created. More...

#include <SlateCefViewSettings.h>

Public Attributes

int32 DefaultFontSize
 The default font size (in pixels) used for web content rendering. This value determines the base size for proportional fonts.
 
int32 DefaultFixedFontSize
 The default font size (in pixels) for fixed-width (monospace) fonts. Used for code blocks and preformatted text.
 
int32 MinimumFontSize
 The minimum font size (in pixels) allowed for any text. Ensures text remains legible even if web content requests smaller sizes.
 
int32 MinimumLogicalFontSize
 The minimum logical font size (in pixels) allowed for proportional fonts. Logical font size may differ from physical font size depending on scaling.
 
FColor BackgroundColor = FColor::White
 The background color of the browser view. 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".
 
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. Uses ECefViewFeatureState to allow enable, disable, or inherit default behavior.
 
ECefViewFeatureState Javascript = ECefViewFeatureState::Default
 Controls whether JavaScript execution is enabled in the browser. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState AllowJavascriptCloseWindows = ECefViewFeatureState::Default
 Controls whether JavaScript is allowed to close browser windows (e.g., via window.close()). Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState AllowJavascriptAccessClipboard = ECefViewFeatureState::Default
 Controls whether JavaScript is allowed to access the system clipboard. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState AllowJavascriptDomPaste = ECefViewFeatureState::Default
 Controls whether JavaScript is allowed to perform DOM paste operations. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState Plugins = ECefViewFeatureState::Default
 Controls whether browser plugins (such as Flash, PDF viewers) are enabled. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState ImageLoading = ECefViewFeatureState::Default
 Controls whether images are loaded automatically in web content. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState ImageShrinkStandaloneToFit = ECefViewFeatureState::Default
 Controls whether standalone images are automatically shrunk to fit the view. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState TextAreaResize = ECefViewFeatureState::Default
 Controls whether text areas in web content can be resized by the user. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState TabToLinks = ECefViewFeatureState::Default
 Controls whether the Tab key can be used to navigate to links in web content. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState LocalStorage = ECefViewFeatureState::Default
 Controls whether HTML5 local storage is enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState Databases = ECefViewFeatureState::Default
 Controls whether HTML5 databases (WebSQL, IndexedDB) are enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).
 
ECefViewFeatureState WebGL = ECefViewFeatureState::Default
 Controls whether WebGL (hardware-accelerated 3D graphics) is enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).
 

Detailed Description

Represents the per-instance settings for a Slate-based CefView widget. These settings control font sizes, font families, encoding, language preferences, background color, and a variety of browser features such as JavaScript, plugins, image loading, storage, and more. Most settings are fixed and cannot be changed after the SCefView instance is created. Feature toggles use ECefViewFeatureState to allow enabling, disabling, or inheriting the default behavior for each feature. All these values are not changeable after one SCefView instance created.

Member Data Documentation

◆ AcceptLanguageList

FString FSlateCefViewSettings::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.

◆ AllowJavascriptAccessClipboard

ECefViewFeatureState FSlateCefViewSettings::AllowJavascriptAccessClipboard = ECefViewFeatureState::Default

Controls whether JavaScript is allowed to access the system clipboard. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ AllowJavascriptCloseWindows

ECefViewFeatureState FSlateCefViewSettings::AllowJavascriptCloseWindows = ECefViewFeatureState::Default

Controls whether JavaScript is allowed to close browser windows (e.g., via window.close()). Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ AllowJavascriptDomPaste

ECefViewFeatureState FSlateCefViewSettings::AllowJavascriptDomPaste = ECefViewFeatureState::Default

Controls whether JavaScript is allowed to perform DOM paste operations. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ BackgroundColor

FColor FSlateCefViewSettings::BackgroundColor = FColor::White

The background color of the browser view. Used when no web content is loaded or as the default background. Default: FColor::White.

◆ CursiveFontFamily

FString FSlateCefViewSettings::CursiveFontFamily

The font family name used for cursive text. Example: "Comic Sans MS".

◆ Databases

ECefViewFeatureState FSlateCefViewSettings::Databases = ECefViewFeatureState::Default

Controls whether HTML5 databases (WebSQL, IndexedDB) are enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ DefaultEncoding

FString FSlateCefViewSettings::DefaultEncoding

The default text encoding for web content. Example: "UTF-8".

◆ DefaultFixedFontSize

int32 FSlateCefViewSettings::DefaultFixedFontSize

The default font size (in pixels) for fixed-width (monospace) fonts. Used for code blocks and preformatted text.

◆ DefaultFontSize

int32 FSlateCefViewSettings::DefaultFontSize

The default font size (in pixels) used for web content rendering. This value determines the base size for proportional fonts.

◆ FantasyFontFamily

FString FSlateCefViewSettings::FantasyFontFamily

The font family name used for fantasy text. Example: "Impact".

◆ FixedFontFamily

FString FSlateCefViewSettings::FixedFontFamily

The font family name used for fixed-width (monospace) text. Example: "Courier New", "Consolas".

◆ ImageLoading

ECefViewFeatureState FSlateCefViewSettings::ImageLoading = ECefViewFeatureState::Default

Controls whether images are loaded automatically in web content. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ ImageShrinkStandaloneToFit

ECefViewFeatureState FSlateCefViewSettings::ImageShrinkStandaloneToFit = ECefViewFeatureState::Default

Controls whether standalone images are automatically shrunk to fit the view. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ Javascript

ECefViewFeatureState FSlateCefViewSettings::Javascript = ECefViewFeatureState::Default

Controls whether JavaScript execution is enabled in the browser. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ LocalStorage

ECefViewFeatureState FSlateCefViewSettings::LocalStorage = ECefViewFeatureState::Default

Controls whether HTML5 local storage is enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ MinimumFontSize

int32 FSlateCefViewSettings::MinimumFontSize

The minimum font size (in pixels) allowed for any text. Ensures text remains legible even if web content requests smaller sizes.

◆ MinimumLogicalFontSize

int32 FSlateCefViewSettings::MinimumLogicalFontSize

The minimum logical font size (in pixels) allowed for proportional fonts. Logical font size may differ from physical font size depending on scaling.

◆ Plugins

ECefViewFeatureState FSlateCefViewSettings::Plugins = ECefViewFeatureState::Default

Controls whether browser plugins (such as Flash, PDF viewers) are enabled. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ RemoteFonts

ECefViewFeatureState FSlateCefViewSettings::RemoteFonts

Controls whether remote web fonts (such as Google Fonts) are enabled or disabled. Uses ECefViewFeatureState to allow enable, disable, or inherit default behavior.

◆ SansSerifFontFamily

FString FSlateCefViewSettings::SansSerifFontFamily

The font family name used for sans-serif text. Example: "Arial", "Helvetica".

◆ SerifFontFamily

FString FSlateCefViewSettings::SerifFontFamily

The font family name used for serif text. Example: "Times New Roman".

◆ StandardFontFamily

FString FSlateCefViewSettings::StandardFontFamily

The font family name used as the standard (proportional) font for web content. Example: "Arial", "Times New Roman".

◆ TabToLinks

ECefViewFeatureState FSlateCefViewSettings::TabToLinks = ECefViewFeatureState::Default

Controls whether the Tab key can be used to navigate to links in web content. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ TextAreaResize

ECefViewFeatureState FSlateCefViewSettings::TextAreaResize = ECefViewFeatureState::Default

Controls whether text areas in web content can be resized by the user. Default is ECefViewFeatureState::Default (inherits global/default setting).

◆ WebGL

ECefViewFeatureState FSlateCefViewSettings::WebGL = ECefViewFeatureState::Default

Controls whether WebGL (hardware-accelerated 3D graphics) is enabled for web content. Default is ECefViewFeatureState::Default (inherits global/default setting).