![]() |
LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
|
Interface to aid WebKit-like-view-containing tabs to expose the view fonts configuration to the user. More...
#include "iwkfontssettable.h"
Public Types | |
enum class | FontFamily { StandardFont , FixedFont , SerifFont , SansSerifFont , CursiveFont , FantasyFont } |
Enumeration for possible font families. More... | |
enum class | FontSize { MinimumFontSize , MinimumLogicalFontSize , DefaultFontSize , DefaultFixedFontSize } |
Enumeration for possible font sizes. More... | |
Public Member Functions | |
virtual QObject * | GetQObject ()=0 |
Returns this tab as a QObject. | |
virtual void | SetFontFamily (FontFamily family, const QFont &font)=0 |
Sets the font for the given font family. | |
virtual void | SetFontSize (FontSize type, int size)=0 |
Sets the size for the given font size type. | |
Protected Member Functions | |
virtual | ~IWkFontsSettable ()=default |
Interface to aid WebKit-like-view-containing tabs to expose the view fonts configuration to the user.
The tabs implementing this interface should just be registered with an instance of LC::Util::WkFontsWidget, which will take care of the rest.
Definition at line 24 of file iwkfontssettable.h.
|
strong |
Enumeration for possible font families.
Enumerator | |
---|---|
StandardFont | |
FixedFont | |
SerifFont | |
SansSerifFont | |
CursiveFont | |
FantasyFont |
Definition at line 32 of file iwkfontssettable.h.
|
strong |
Enumeration for possible font sizes.
Enumerator | |
---|---|
MinimumFontSize | |
MinimumLogicalFontSize | |
DefaultFontSize | |
DefaultFixedFontSize |
Definition at line 44 of file iwkfontssettable.h.
|
protectedvirtualdefault |
|
pure virtual |
Returns this tab as a QObject.
Referenced by LC::Util::WkFontsWidget::RegisterSettable().
|
pure virtual |
Sets the font for the given font family.
See also QWebSettings::setFontFamily()
.
[in] | family | The font family to change. |
[in] | font | The font to set for the font family. |
Referenced by LC::Util::WkFontsWidget::RegisterSettable().
|
pure virtual |
Sets the size for the given font size type.
See also QWebSettings::setFontSize()
.
[in] | type | The font type to change. |
[in] | size | The font size to set. |
Referenced by LC::Util::WkFontsWidget::RegisterSettable().