![]() |
QCefView 1.0.7
A QWidget-based WebView Component Integrated with CEF
|
Represents the settings for individual browser. More...
#include <QCefSetting.h>
Public Member Functions | |
| QCefSetting () | |
| Constructs the QCefSetting instance. | |
| QCefSetting (const QCefSetting &other) | |
| Constructs the QCefSetting instance from existing one. | |
| QCefSetting & | operator= (const QCefSetting &other) |
| Assigns the existing QCefSetting instance to current. | |
| ~QCefSetting () | |
| Destructs the instance. | |
| void | setOffScreenRenderingEnabled (const bool value) |
| Sets the switch to enable or disable off-screen rendering. | |
| const bool | OffScreenRenderingEnabled () const |
| Gets the switch to enable or disable off-screen rendering. | |
| void | setWindowInitialSize (const QSize &size) |
| Sets the initial size of the browser. | |
| const QSize | windowInitialSize () const |
| Gets the initial size of the browser. | |
| void | setStandardFontFamily (const QString &value) |
| Sets the standard font family. | |
| const QString | standardFontFamily () const |
| Gets the standard font family. | |
| void | setFixedFontFamily (const QString &value) |
| Sets the fixed font family. | |
| const QString | fixedFontFamily () const |
| Gets the fixed font family. | |
| void | setSerifFontFamily (const QString &value) |
| Sets the serif font family. | |
| const QString | serifFontFamily () const |
| Gets the serif font family. | |
| void | setSansSerifFontFamily (const QString &value) |
| Sets the sans serif font family. | |
| const QString | sansSerifFontFamily () const |
| Gets the sans serif font family. | |
| void | setCursiveFontFamily (const QString &value) |
| Sets the cursive font family. | |
| const QString | cursiveFontFamily () const |
| Gets the cursive font family. | |
| void | setFantasyFontFamily (const QString &value) |
| Sets the fantasy font family. | |
| const QString | fantasyFontFamily () const |
| Gets the fantasy font family. | |
| void | setDefaultEncoding (const QString &value) |
| Sets the default encoding. | |
| const QString | defaultEncoding () const |
| Gets the default encoding. | |
| void | setAcceptLanguageList (const QString &value) |
| Sets the acceptable language list. | |
| const QString | acceptLanguageList () const |
| Gets the acceptable language list. | |
| void | setWindowlessFrameRate (const int value) |
| Sets the frame rate in window less mode. | |
| const QVariant | windowlessFrameRate () const |
| Gets the frame rate in window less mode. | |
| void | setHardwareAccelerationEnabled (const bool value) |
| Sets the switch to enable or disable the use of hardware acceleration for rendering. | |
| const bool | hardwareAccelerationEnabled () const |
| Gets the switch to enable or disable the use of hardware acceleration for rendering. | |
| void | setDefaultFontSize (const int value) |
| Sets the default font size. | |
| const QVariant | defaultFontSize () const |
| Gets the default font size. | |
| void | setDefaultFixedFontSize (const int value) |
| Sets the default fixed font size. | |
| const QVariant | defaultFixedFontSize () const |
| Gets the default fixed font size. | |
| void | setMinimumFontSize (const int value) |
| Sets the minimum font size. | |
| const QVariant | minimumFontSize () const |
| Gets the minimum font size. | |
| void | setMinimumLogicalFontSize (const int value) |
| Sets the minimum logical font size. | |
| const QVariant | minimumLogicalFontSize () const |
| Gets the minimum logical font size. | |
| void | setRemoteFonts (const bool value) |
| Sets to enable or disable remote fonts. | |
| const QVariant | remoteFonts () const |
| Gets whether to enable or disable the remote fonts. | |
| void | setJavascript (const bool value) |
| Sets to enable or disable Javascript. | |
| const QVariant | javascript () const |
| Gets whether to enable or disable Javascript. | |
| void | setJavascriptCloseWindows (const bool value) |
| Sets to enable or disable the permission of closing window from Javascript. | |
| const QVariant | javascriptCloseWindows () const |
| Gets whether to enable or disable the permission of closing window from Javascript. | |
| void | setJavascriptAccessClipboard (const bool value) |
| Sets to enable or disable the permission of accessing clipboard from Javascript. | |
| const QVariant | javascriptAccessClipboard () const |
| Gets whether to enable or disable the permission of accessing clipboard from Javascript. | |
| void | setJavascriptDomPaste (const bool value) |
| Sets to enable or disable the permission of pasting DOM in Javascript. | |
| const QVariant | javascriptDomPaste () const |
| Gets whether to enable or disable the permission of pasting DOM in Javascript. | |
| void | setPlugins (const bool value) |
| Sets to enable or disable plugins. | |
| const QVariant | plugins () const |
| Gets whether to enable or disable plugins. | |
| void | setImageLoading (const bool value) |
| Sets to enable or disable the permission of loading images. | |
| const QVariant | imageLoading () const |
| Gets whether to enable or disable the permission of loading images. | |
| void | setImageShrinkStandaloneToFit (const bool value) |
| Sets to enable or disable the shrinking image standalone to fit. | |
| const QVariant | imageShrinkStandaloneToFit () const |
| Gets whether to enable or disable the shrinking image standalone to fit. | |
| void | setTextAreaResize (const bool value) |
| Sets to enable or disable the resizing of text area. | |
| const QVariant | textAreaResize () const |
| Gets whether to enable or disable the resizing of text area. | |
| void | setTabToLinks (const bool value) |
| Sets to enable or disable tab to links. | |
| const QVariant | tabToLinks () const |
| Gets whether to enable or disable tab to links. | |
| void | setLocalStorage (const bool value) |
| Sets to enable or disable local storage. | |
| const QVariant | localStorage () const |
| Gets whether to enable or disable local storage. | |
| void | setDatabases (const bool value) |
| Sets to enable or disable database. | |
| const QVariant | databases () const |
| Gets whether to enable or disable database. | |
| void | setWebGL (const bool value) |
| Sets to enable or disable webGL. | |
| const QVariant | webGL () const |
| Gets whether to enable or disable webGL. | |
| void | setBackgroundColor (const QColor &value) |
| Sets the background color. | |
| const QVariant | backgroundColor () const |
| Gets the background color. | |
Represents the settings for individual browser.
| QCefSetting::QCefSetting | ( | ) |
Constructs the QCefSetting instance.
| QCefSetting::QCefSetting | ( | const QCefSetting & | other | ) |
Constructs the QCefSetting instance from existing one.
| other | The existing QCefSetting instance |
| QCefSetting::~QCefSetting | ( | ) |
Destructs the instance.
| QCefSetting & QCefSetting::operator= | ( | const QCefSetting & | other | ) |
Assigns the existing QCefSetting instance to current.
| other |
| void QCefSetting::setOffScreenRenderingEnabled | ( | const bool | value | ) |
Sets the switch to enable or disable off-screen rendering.
| value | True to enable; false to disable |
This value is only used when QCefConfig::windowlessRenderingEnabled() is set to true.
| const bool QCefSetting::OffScreenRenderingEnabled | ( | ) | const |
Gets the switch to enable or disable off-screen rendering.
| void QCefSetting::setWindowInitialSize | ( | const QSize & | size | ) |
Sets the initial size of the browser.
| size | The initial size |
| const QSize QCefSetting::windowInitialSize | ( | ) | const |
Gets the initial size of the browser.
| void QCefSetting::setStandardFontFamily | ( | const QString & | value | ) |
Sets the standard font family.
| value | The font family |
| const QString QCefSetting::standardFontFamily | ( | ) | const |
Gets the standard font family.
| void QCefSetting::setFixedFontFamily | ( | const QString & | value | ) |
Sets the fixed font family.
| value | The font family |
| const QString QCefSetting::fixedFontFamily | ( | ) | const |
Gets the fixed font family.
| void QCefSetting::setSerifFontFamily | ( | const QString & | value | ) |
Sets the serif font family.
| value | The font family |
| const QString QCefSetting::serifFontFamily | ( | ) | const |
Gets the serif font family.
| void QCefSetting::setSansSerifFontFamily | ( | const QString & | value | ) |
Sets the sans serif font family.
| value | The font family |
| const QString QCefSetting::sansSerifFontFamily | ( | ) | const |
Gets the sans serif font family.
| void QCefSetting::setCursiveFontFamily | ( | const QString & | value | ) |
Sets the cursive font family.
| value | The font family |
| const QString QCefSetting::cursiveFontFamily | ( | ) | const |
Gets the cursive font family.
| void QCefSetting::setFantasyFontFamily | ( | const QString & | value | ) |
Sets the fantasy font family.
| value | The font family |
| const QString QCefSetting::fantasyFontFamily | ( | ) | const |
Gets the fantasy font family.
| void QCefSetting::setDefaultEncoding | ( | const QString & | value | ) |
Sets the default encoding.
| value | The encoding name |
| const QString QCefSetting::defaultEncoding | ( | ) | const |
Gets the default encoding.
| void QCefSetting::setAcceptLanguageList | ( | const QString & | value | ) |
Sets the acceptable language list.
| value | The acceptable languate list |
| const QString QCefSetting::acceptLanguageList | ( | ) | const |
Gets the acceptable language list.
| void QCefSetting::setWindowlessFrameRate | ( | const int | value | ) |
Sets the frame rate in window less mode.
| value | The frame rate |
| const QVariant QCefSetting::windowlessFrameRate | ( | ) | const |
Gets the frame rate in window less mode.
| void QCefSetting::setHardwareAccelerationEnabled | ( | const bool | value | ) |
Sets the switch to enable or disable the use of hardware acceleration for rendering.
| value | The switch value |
| const bool QCefSetting::hardwareAccelerationEnabled | ( | ) | const |
Gets the switch to enable or disable the use of hardware acceleration for rendering.
| void QCefSetting::setDefaultFontSize | ( | const int | value | ) |
Sets the default font size.
| value | The font size |
| const QVariant QCefSetting::defaultFontSize | ( | ) | const |
Gets the default font size.
| void QCefSetting::setDefaultFixedFontSize | ( | const int | value | ) |
Sets the default fixed font size.
| value | The font size |
| const QVariant QCefSetting::defaultFixedFontSize | ( | ) | const |
Gets the default fixed font size.
| void QCefSetting::setMinimumFontSize | ( | const int | value | ) |
Sets the minimum font size.
| value | The font size |
| const QVariant QCefSetting::minimumFontSize | ( | ) | const |
Gets the minimum font size.
| void QCefSetting::setMinimumLogicalFontSize | ( | const int | value | ) |
Sets the minimum logical font size.
| value | The font size |
| const QVariant QCefSetting::minimumLogicalFontSize | ( | ) | const |
Gets the minimum logical font size.
| void QCefSetting::setRemoteFonts | ( | const bool | value | ) |
Sets to enable or disable remote fonts.
| value | True to enable; false to disable |
| const QVariant QCefSetting::remoteFonts | ( | ) | const |
Gets whether to enable or disable the remote fonts.
| void QCefSetting::setJavascript | ( | const bool | value | ) |
Sets to enable or disable Javascript.
| value | True to enable; false to disable |
| const QVariant QCefSetting::javascript | ( | ) | const |
Gets whether to enable or disable Javascript.
| void QCefSetting::setJavascriptCloseWindows | ( | const bool | value | ) |
Sets to enable or disable the permission of closing window from Javascript.
| value | True to enable; false to disable |
| const QVariant QCefSetting::javascriptCloseWindows | ( | ) | const |
Gets whether to enable or disable the permission of closing window from Javascript.
| void QCefSetting::setJavascriptAccessClipboard | ( | const bool | value | ) |
Sets to enable or disable the permission of accessing clipboard from Javascript.
| value | True to enable; false to disable |
| const QVariant QCefSetting::javascriptAccessClipboard | ( | ) | const |
Gets whether to enable or disable the permission of accessing clipboard from Javascript.
| void QCefSetting::setJavascriptDomPaste | ( | const bool | value | ) |
Sets to enable or disable the permission of pasting DOM in Javascript.
| value | True to enable; false to disable |
| const QVariant QCefSetting::javascriptDomPaste | ( | ) | const |
Gets whether to enable or disable the permission of pasting DOM in Javascript.
| void QCefSetting::setPlugins | ( | const bool | value | ) |
Sets to enable or disable plugins.
| value | True to enable; false to disable |
| const QVariant QCefSetting::plugins | ( | ) | const |
Gets whether to enable or disable plugins.
| void QCefSetting::setImageLoading | ( | const bool | value | ) |
Sets to enable or disable the permission of loading images.
| value | True to enable; false to disable |
| const QVariant QCefSetting::imageLoading | ( | ) | const |
Gets whether to enable or disable the permission of loading images.
| void QCefSetting::setImageShrinkStandaloneToFit | ( | const bool | value | ) |
Sets to enable or disable the shrinking image standalone to fit.
| value | True to enable; false to disable |
| const QVariant QCefSetting::imageShrinkStandaloneToFit | ( | ) | const |
Gets whether to enable or disable the shrinking image standalone to fit.
| void QCefSetting::setTextAreaResize | ( | const bool | value | ) |
Sets to enable or disable the resizing of text area.
| value | True to enable; false to disable |
| const QVariant QCefSetting::textAreaResize | ( | ) | const |
Gets whether to enable or disable the resizing of text area.
| void QCefSetting::setTabToLinks | ( | const bool | value | ) |
Sets to enable or disable tab to links.
| value | True to enable; false to disable |
| const QVariant QCefSetting::tabToLinks | ( | ) | const |
Gets whether to enable or disable tab to links.
| void QCefSetting::setLocalStorage | ( | const bool | value | ) |
Sets to enable or disable local storage.
| value | True to enable; false to disable |
| const QVariant QCefSetting::localStorage | ( | ) | const |
Gets whether to enable or disable local storage.
| void QCefSetting::setDatabases | ( | const bool | value | ) |
Sets to enable or disable database.
| value | True to enable; false to disable |
| const QVariant QCefSetting::databases | ( | ) | const |
Gets whether to enable or disable database.
| void QCefSetting::setWebGL | ( | const bool | value | ) |
Sets to enable or disable webGL.
| value | True to enable; false to disable |
| const QVariant QCefSetting::webGL | ( | ) | const |
Gets whether to enable or disable webGL.
| void QCefSetting::setBackgroundColor | ( | const QColor & | value | ) |
Sets the background color.
| value | The color |
This only works if the web page has no background color set. The alpha component value will be adjusted to 0 or 255, it means if you pass a value with alpha value in the range of [1, 255], it will be accepted as 255. The default value is inherited from QCefConfig::backgroundColor()
| const QVariant QCefSetting::backgroundColor | ( | ) | const |
Gets the background color.