1.7.2.9
Gameface
cohtml::SystemSettings Struct Reference

Settings for a System. More...

Classes

struct  FallBackFormats
 

Public Member Functions

 SystemSettings ()
 

Public Attributes

struct cohtml::SystemSettings::FallBackFormats Formats
 
IAsyncResourceHandlerResourceHandler
 Resource handler for loading assets. More...
 
IDataStorageHandlerDataStorageHandler = nullptr
 Data storage handler used for saving and loading persistent data. More...
 
ILocalizationManagerLocalizationManagerInstance = nullptr
 Optional localization manager. This object MUST outlive the System. Any HTML element created with the data-l10n-id attribute will get its text content replaced by the value returned from this object's ILocalizationManager::Translate method. More...
 
ITextTransformationManagerTextTransformationManager = nullptr
 Optional text transformation manager used to support modifying text in a locale-aware way. CSS properties like text-transform require this interface to be set and implemented to work. More...
 
CachedResourcesWatermarks CachedImagesSettings
 Controls the low and high watermarks used when deciding when to prune the image cache. More...
 
CachedResourcesWatermarks CachedSVGsSettings
 
int DebuggerPort
 Sets the port where the Debugger can connect to inspect the active Views. Set it to <= 0 to disable debugging. More...
 
bool EnableDebugger
 Enable/Disable the Debugger during the lifetime of the program. More...
 

Detailed Description

Settings for a System.

Constructor & Destructor Documentation

◆ SystemSettings()

cohtml::SystemSettings::SystemSettings ( )
inline

Member Data Documentation

◆ CachedImagesSettings

CachedResourcesWatermarks cohtml::SystemSettings::CachedImagesSettings

Controls the low and high watermarks used when deciding when to prune the image cache.

◆ CachedSVGsSettings

CachedResourcesWatermarks cohtml::SystemSettings::CachedSVGsSettings

◆ DataStorageHandler

IDataStorageHandler* cohtml::SystemSettings::DataStorageHandler = nullptr

Data storage handler used for saving and loading persistent data.

◆ DebuggerPort

int cohtml::SystemSettings::DebuggerPort

Sets the port where the Debugger can connect to inspect the active Views. Set it to <= 0 to disable debugging.

◆ EnableDebugger

bool cohtml::SystemSettings::EnableDebugger

Enable/Disable the Debugger during the lifetime of the program.

Note
If enabled it may influence application performance, make sure it is not enabled during benchmarking.

◆ Formats

struct cohtml::SystemSettings::FallBackFormats cohtml::SystemSettings::Formats

◆ LocalizationManagerInstance

ILocalizationManager* cohtml::SystemSettings::LocalizationManagerInstance = nullptr

Optional localization manager. This object MUST outlive the System. Any HTML element created with the data-l10n-id attribute will get its text content replaced by the value returned from this object's ILocalizationManager::Translate method.

◆ ResourceHandler

IAsyncResourceHandler* cohtml::SystemSettings::ResourceHandler

Resource handler for loading assets.

◆ TextTransformationManager

ITextTransformationManager* cohtml::SystemSettings::TextTransformationManager = nullptr

Optional text transformation manager used to support modifying text in a locale-aware way. CSS properties like text-transform require this interface to be set and implemented to work.