LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
iwkfontssettable.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QtPlugin>
12
13class QFont;
14
24class Q_DECL_EXPORT IWkFontsSettable
25{
26protected:
27 virtual ~IWkFontsSettable () = default;
28public:
41
51
56 virtual QObject* GetQObject () = 0;
57
65 virtual void SetFontFamily (FontFamily family, const QFont& font) = 0;
66
74 virtual void SetFontSize (FontSize type, int size) = 0;
75};
76
78{
79 return static_cast<uint> (f);
80}
81
83{
84 return static_cast<uint> (f);
85}
86
87Q_DECLARE_INTERFACE (IWkFontsSettable, "org.LeechCraft.IWkFontsSettable/1.0")
Interface to aid WebKit-like-view-containing tabs to expose the view fonts configuration to the user.
virtual void SetFontSize(FontSize type, int size)=0
Sets the size for the given font size type.
virtual QObject * GetQObject()=0
Returns this tab as a QObject.
FontFamily
Enumeration for possible font families.
virtual void SetFontFamily(FontFamily family, const QFont &font)=0
Sets the font for the given font family.
FontSize
Enumeration for possible font sizes.
virtual ~IWkFontsSettable()=default
uint qHash(IWkFontsSettable::FontFamily f)