All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QFontDatabase Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Information about the fonts available in the underlying window system

*

Java wrapper for Qt class QFontDatabase

*/ public class QFontDatabase extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFontDatabase.class); /** *

Java wrapper for Qt enum QFontDatabase::SystemFont

*/ public enum SystemFont implements io.qt.QtEnumerator { GeneralFont(0), FixedFont(1), TitleFont(2), SmallestReadableFont(3); private SystemFont(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static SystemFont resolve(int value) { switch (value) { case 0: return GeneralFont; case 1: return FixedFont; case 2: return TitleFont; case 3: return SmallestReadableFont; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFontDatabase::WritingSystem

*/ @io.qt.QtRejectedEntries({"Other"}) public enum WritingSystem implements io.qt.QtEnumerator { Any(0), Latin(1), Greek(2), Cyrillic(3), Armenian(4), Hebrew(5), Arabic(6), Syriac(7), Thaana(8), Devanagari(9), Bengali(10), Gurmukhi(11), Gujarati(12), Oriya(13), Tamil(14), Telugu(15), Kannada(16), Malayalam(17), Sinhala(18), Thai(19), Lao(20), Tibetan(21), Myanmar(22), Georgian(23), Khmer(24), SimplifiedChinese(25), TraditionalChinese(26), Japanese(27), Korean(28), Vietnamese(29), Symbol(30), Other(30), Ogham(31), Runic(32), Nko(33), WritingSystemsCount(34); private WritingSystem(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static WritingSystem resolve(int value) { switch (value) { case 0: return Any; case 1: return Latin; case 2: return Greek; case 3: return Cyrillic; case 4: return Armenian; case 5: return Hebrew; case 6: return Arabic; case 7: return Syriac; case 8: return Thaana; case 9: return Devanagari; case 10: return Bengali; case 11: return Gurmukhi; case 12: return Gujarati; case 13: return Oriya; case 14: return Tamil; case 15: return Telugu; case 16: return Kannada; case 17: return Malayalam; case 18: return Sinhala; case 19: return Thai; case 20: return Lao; case 21: return Tibetan; case 22: return Myanmar; case 23: return Georgian; case 24: return Khmer; case 25: return SimplifiedChinese; case 26: return TraditionalChinese; case 27: return Japanese; case 28: return Korean; case 29: return Vietnamese; case 30: return Symbol; case 31: return Ogham; case 32: return Runic; case 33: return Nko; case 34: return WritingSystemsCount; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * @deprecated Call the static functions instead */ @Deprecated public QFontDatabase(){ super((QPrivateConstructor)null); initialize_native(this); } @Deprecated private native static void initialize_native(QFontDatabase instance); /** *

See QFontDatabase::addApplicationFont(QString)

*/ public native static int addApplicationFont(java.lang.String fileName); /** *

See QFontDatabase::addApplicationFontFromData(QByteArray)

*/ public static int addApplicationFontFromData(io.qt.core.QByteArray fontData){ return addApplicationFontFromData_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(fontData)); } private native static int addApplicationFontFromData_native_cref_QByteArray(long fontData); /** *

See QFontDatabase::applicationFontFamilies(int)

*/ public native static io.qt.core.QStringList applicationFontFamilies(int id); /** *

See QFontDatabase::bold(QString,QString)

*/ public native static boolean bold(java.lang.String family, java.lang.String style); /** *

Overloaded function for {@link #families(io.qt.gui.QFontDatabase.WritingSystem)} * with writingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any.

*/ public static io.qt.core.QStringList families() { return families(io.qt.gui.QFontDatabase.WritingSystem.Any); } /** *

See QFontDatabase::families(QFontDatabase::WritingSystem)

*/ public static io.qt.core.QStringList families(io.qt.gui.QFontDatabase.WritingSystem writingSystem){ return families_native_QFontDatabase_WritingSystem(writingSystem.value()); } private native static io.qt.core.QStringList families_native_QFontDatabase_WritingSystem(int writingSystem); /** *

See QFontDatabase::font(QString,QString,int)

*/ public native static io.qt.gui.QFont font(java.lang.String family, java.lang.String style, int pointSize); public native static boolean hasFamily(java.lang.String family); /** *

Overloaded function for {@link #isBitmapScalable(java.lang.String, java.lang.String)} * with style = "".

*/ public static boolean isBitmapScalable(java.lang.String family) { return isBitmapScalable(family, ""); } /** *

See QFontDatabase::isBitmapScalable(QString,QString)

*/ public native static boolean isBitmapScalable(java.lang.String family, java.lang.String style); /** *

Overloaded function for {@link #isFixedPitch(java.lang.String, java.lang.String)} * with style = "".

*/ public static boolean isFixedPitch(java.lang.String family) { return isFixedPitch(family, ""); } /** *

See QFontDatabase::isFixedPitch(QString,QString)

*/ public native static boolean isFixedPitch(java.lang.String family, java.lang.String style); /** *

See QFontDatabase::isPrivateFamily(QString)

*/ public native static boolean isPrivateFamily(java.lang.String family); /** *

Overloaded function for {@link #isScalable(java.lang.String, java.lang.String)} * with style = "".

*/ public static boolean isScalable(java.lang.String family) { return isScalable(family, ""); } /** *

See QFontDatabase::isScalable(QString,QString)

*/ public native static boolean isScalable(java.lang.String family, java.lang.String style); /** *

Overloaded function for {@link #isSmoothlyScalable(java.lang.String, java.lang.String)} * with style = "".

*/ public static boolean isSmoothlyScalable(java.lang.String family) { return isSmoothlyScalable(family, ""); } /** *

See QFontDatabase::isSmoothlyScalable(QString,QString)

*/ public native static boolean isSmoothlyScalable(java.lang.String family, java.lang.String style); /** *

See QFontDatabase::italic(QString,QString)

*/ public native static boolean italic(java.lang.String family, java.lang.String style); /** *

Overloaded function for {@link #pointSizes(java.lang.String, java.lang.String)} * with style = "".

*/ public static io.qt.core.QList pointSizes(java.lang.String family) { return pointSizes(family, ""); } /** *

See QFontDatabase::pointSizes(QString,QString)

*/ public native static io.qt.core.QList pointSizes(java.lang.String family, java.lang.String style); /** *

See QFontDatabase::removeAllApplicationFonts()

*/ public native static boolean removeAllApplicationFonts(); /** *

See QFontDatabase::removeApplicationFont(int)

*/ public native static boolean removeApplicationFont(int id); /** *

See QFontDatabase::smoothSizes(QString,QString)

*/ public native static io.qt.core.QList smoothSizes(java.lang.String family, java.lang.String style); /** *

See QFontDatabase::standardSizes()

*/ public native static io.qt.core.QList standardSizes(); /** *

See QFontDatabase::styleString(QFont)

*/ public static java.lang.String styleString(io.qt.gui.QFont font){ return styleString_native_cref_QFont(QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } private native static java.lang.String styleString_native_cref_QFont(long font); /** *

See QFontDatabase::styleString(QFontInfo)

*/ public static java.lang.String styleString(io.qt.gui.QFontInfo fontInfo){ return styleString_native_cref_QFontInfo(QtJambi_LibraryUtilities.internal.checkedNativeId(fontInfo)); } private native static java.lang.String styleString_native_cref_QFontInfo(long fontInfo); /** *

See QFontDatabase::styles(QString)

*/ public native static io.qt.core.QStringList styles(java.lang.String family); /** *

See QFontDatabase::systemFont(QFontDatabase::SystemFont)

*/ public static io.qt.gui.QFont systemFont(io.qt.gui.QFontDatabase.SystemFont type){ return systemFont_native_QFontDatabase_SystemFont(type.value()); } private native static io.qt.gui.QFont systemFont_native_QFontDatabase_SystemFont(int type); /** *

See QFontDatabase::weight(QString,QString)

*/ public native static int weight(java.lang.String family, java.lang.String style); /** *

See QFontDatabase::writingSystemName(QFontDatabase::WritingSystem)

*/ public static java.lang.String writingSystemName(io.qt.gui.QFontDatabase.WritingSystem writingSystem){ return writingSystemName_native_QFontDatabase_WritingSystem(writingSystem.value()); } private native static java.lang.String writingSystemName_native_QFontDatabase_WritingSystem(int writingSystem); /** *

See QFontDatabase::writingSystemSample(QFontDatabase::WritingSystem)

*/ public static java.lang.String writingSystemSample(io.qt.gui.QFontDatabase.WritingSystem writingSystem){ return writingSystemSample_native_QFontDatabase_WritingSystem(writingSystem.value()); } private native static java.lang.String writingSystemSample_native_QFontDatabase_WritingSystem(int writingSystem); /** *

See QFontDatabase::writingSystems()

*/ public native static io.qt.core.QList writingSystems(); /** *

See QFontDatabase::writingSystems(QString)

*/ public native static io.qt.core.QList writingSystems(java.lang.String family); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QFontDatabase(QPrivateConstructor p) { super(p); } @Override public QFontDatabase clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QFontDatabase clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy