1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.gui.fontinfo; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.global; 19 import qt.core.shareddata; 20 import qt.core.string; 21 import qt.core.typeinfo; 22 import qt.gui.font; 23 import qt.helpers; 24 25 @Q_MOVABLE_TYPE extern(C++, class) struct /+ Q_GUI_EXPORT +/ QFontInfo 26 { 27 public: 28 this(ref const(QFont) ); 29 @disable this(this); 30 this(ref const(QFontInfo) ); 31 ~this(); 32 33 /+ref QFontInfo operator =(ref const(QFontInfo) );+/ 34 35 /+ void swap(QFontInfo &other) { qSwap(d, other.d); } +/ 36 37 QString family() const; 38 QString styleName() const; 39 int pixelSize() const; 40 int pointSize() const; 41 qreal pointSizeF() const; 42 bool italic() const; 43 QFont.Style style() const; 44 int weight() const; 45 pragma(inline, true) bool bold() const { return weight() > QFont.Weight.Normal; } 46 bool underline() const; 47 bool overline() const; 48 bool strikeOut() const; 49 bool fixedPitch() const; 50 QFont.StyleHint styleHint() const; 51 /+ #if QT_DEPRECATED_SINCE(5, 5) +/ 52 bool rawMode() const; 53 /+ #endif +/ 54 55 bool exactMatch() const; 56 57 private: 58 QExplicitlySharedDataPointer!(QFontPrivate) d; 59 } 60 61 /+ Q_DECLARE_SHARED(QFontInfo) +/ 62