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

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

The newest version!
package io.qt.gui;


/**
 * 

Specifies a query for a font used for drawing text

*

Java wrapper for Qt class QFont

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

Java wrapper for Qt enum QFont::Capitalization

*/ public enum Capitalization implements io.qt.QtEnumerator { MixedCase(0), AllUppercase(1), AllLowercase(2), SmallCaps(3), Capitalize(4); private Capitalization(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 Capitalization resolve(int value) { switch (value) { case 0: return MixedCase; case 1: return AllUppercase; case 2: return AllLowercase; case 3: return SmallCaps; case 4: return Capitalize; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::HintingPreference

*/ public enum HintingPreference implements io.qt.QtEnumerator { PreferDefaultHinting(0), PreferNoHinting(1), PreferVerticalHinting(2), PreferFullHinting(3); private HintingPreference(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 HintingPreference resolve(int value) { switch (value) { case 0: return PreferDefaultHinting; case 1: return PreferNoHinting; case 2: return PreferVerticalHinting; case 3: return PreferFullHinting; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::ResolveProperties

*/ public enum ResolveProperties implements io.qt.QtEnumerator { NoPropertiesResolved(0), FamilyResolved(1), SizeResolved(2), StyleHintResolved(4), StyleStrategyResolved(8), WeightResolved(16), StyleResolved(32), UnderlineResolved(64), OverlineResolved(128), StrikeOutResolved(256), FixedPitchResolved(512), StretchResolved(1024), KerningResolved(2048), CapitalizationResolved(4096), LetterSpacingResolved(8192), WordSpacingResolved(16384), HintingPreferenceResolved(32768), StyleNameResolved(65536), FamiliesResolved(131072), AllPropertiesResolved(262143); private ResolveProperties(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 ResolveProperties resolve(int value) { switch (value) { case 0: return NoPropertiesResolved; case 1: return FamilyResolved; case 2: return SizeResolved; case 4: return StyleHintResolved; case 8: return StyleStrategyResolved; case 16: return WeightResolved; case 32: return StyleResolved; case 64: return UnderlineResolved; case 128: return OverlineResolved; case 256: return StrikeOutResolved; case 512: return FixedPitchResolved; case 1024: return StretchResolved; case 2048: return KerningResolved; case 4096: return CapitalizationResolved; case 8192: return LetterSpacingResolved; case 16384: return WordSpacingResolved; case 32768: return HintingPreferenceResolved; case 65536: return StyleNameResolved; case 131072: return FamiliesResolved; case 262143: return AllPropertiesResolved; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::SpacingType

*/ public enum SpacingType implements io.qt.QtEnumerator { PercentageSpacing(0), AbsoluteSpacing(1); private SpacingType(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 SpacingType resolve(int value) { switch (value) { case 0: return PercentageSpacing; case 1: return AbsoluteSpacing; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Stretch

*/ public enum Stretch implements io.qt.QtEnumerator { AnyStretch(0), UltraCondensed(50), ExtraCondensed(62), Condensed(75), SemiCondensed(87), Unstretched(100), SemiExpanded(112), Expanded(125), ExtraExpanded(150), UltraExpanded(200); private Stretch(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 Stretch resolve(int value) { switch (value) { case 0: return AnyStretch; case 50: return UltraCondensed; case 62: return ExtraCondensed; case 75: return Condensed; case 87: return SemiCondensed; case 100: return Unstretched; case 112: return SemiExpanded; case 125: return Expanded; case 150: return ExtraExpanded; case 200: return UltraExpanded; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Style

*/ public enum Style implements io.qt.QtEnumerator { StyleNormal(0), StyleItalic(1), StyleOblique(2); private Style(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 Style resolve(int value) { switch (value) { case 0: return StyleNormal; case 1: return StyleItalic; case 2: return StyleOblique; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::StyleHint

*/ @io.qt.QtRejectedEntries({"SansSerif", "Serif", "TypeWriter", "Decorative"}) public enum StyleHint implements io.qt.QtEnumerator { Helvetica(0), SansSerif(0), Times(1), Serif(1), Courier(2), TypeWriter(2), OldEnglish(3), Decorative(3), System(4), AnyStyle(5), Cursive(6), Monospace(7), Fantasy(8); private StyleHint(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 StyleHint resolve(int value) { switch (value) { case 0: return Helvetica; case 1: return Times; case 2: return Courier; case 3: return OldEnglish; case 4: return System; case 5: return AnyStyle; case 6: return Cursive; case 7: return Monospace; case 8: return Fantasy; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::StyleStrategy

*/ public enum StyleStrategy implements io.qt.QtEnumerator { PreferDefault(1), PreferBitmap(2), PreferDevice(4), PreferOutline(8), ForceOutline(16), PreferMatch(32), PreferQuality(64), PreferAntialias(128), NoAntialias(256), NoSubpixelAntialias(2048), PreferNoShaping(4096), NoFontMerging(32768); private StyleStrategy(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 StyleStrategy resolve(int value) { switch (value) { case 1: return PreferDefault; case 2: return PreferBitmap; case 4: return PreferDevice; case 8: return PreferOutline; case 16: return ForceOutline; case 32: return PreferMatch; case 64: return PreferQuality; case 128: return PreferAntialias; case 256: return NoAntialias; case 2048: return NoSubpixelAntialias; case 4096: return PreferNoShaping; case 32768: return NoFontMerging; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Weight

*/ public enum Weight implements io.qt.QtEnumerator { Thin(100), ExtraLight(200), Light(300), Normal(400), Medium(500), DemiBold(600), Bold(700), ExtraBold(800), Black(900); private Weight(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 Weight resolve(int value) { switch (value) { case 100: return Thin; case 200: return ExtraLight; case 300: return Light; case 400: return Normal; case 500: return Medium; case 600: return DemiBold; case 700: return Bold; case 800: return ExtraBold; case 900: return Black; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QFont::QFont()

*/ public QFont(){ super((QPrivateConstructor)null); initialize_native(this); boolean _dogc; synchronized(io.qt.gui.QFont.class){ if(_dogc = (__qt_expenseCounter += 1) > 1000) __qt_expenseCounter = 0; } if (_dogc) System.gc(); } private native static void initialize_native(QFont instance); /** *

See QFont::QFont(QFont)

*/ public QFont(io.qt.gui.QFont font){ super((QPrivateConstructor)null); initialize_native(this, font); boolean _dogc; synchronized(io.qt.gui.QFont.class){ if(_dogc = (__qt_expenseCounter += 1) > 1000) __qt_expenseCounter = 0; } if (_dogc) System.gc(); } private native static void initialize_native(QFont instance, io.qt.gui.QFont font); public QFont(io.qt.gui.QFont font, io.qt.gui.QPaintDevice pd){ super((QPrivateConstructor)null); initialize_native(this, font, pd); boolean _dogc; synchronized(io.qt.gui.QFont.class){ if(_dogc = (__qt_expenseCounter += 1) > 1000) __qt_expenseCounter = 0; } if (_dogc) System.gc(); } private native static void initialize_native(QFont instance, io.qt.gui.QFont font, io.qt.gui.QPaintDevice pd); /** *

Overloaded constructor for {@link #QFont(java.lang.String, int, int, boolean)} * with italic = false.

*/ public QFont(java.lang.String family, int pointSize, int weight) { this(family, pointSize, weight, (boolean)false); } /** *

Overloaded constructor for {@link #QFont(java.lang.String, int, int, boolean)}

*

with:

    *
  • weight = -1
  • *
  • italic = false
  • *
*/ public QFont(java.lang.String family, int pointSize) { this(family, pointSize, (int)-1, (boolean)false); } /** *

Overloaded constructor for {@link #QFont(java.lang.String, int, int, boolean)}

*

with:

    *
  • pointSize = -1
  • *
  • weight = -1
  • *
  • italic = false
  • *
*/ public QFont(java.lang.String family) { this(family, (int)-1, (int)-1, (boolean)false); } /** *

See QFont::QFont(QString,int,int,bool)

*/ public QFont(java.lang.String family, int pointSize, int weight, boolean italic){ super((QPrivateConstructor)null); initialize_native(this, family, pointSize, weight, italic); boolean _dogc; synchronized(io.qt.gui.QFont.class){ if(_dogc = (__qt_expenseCounter += 1) > 1000) __qt_expenseCounter = 0; } if (_dogc) System.gc(); } private native static void initialize_native(QFont instance, java.lang.String family, int pointSize, int weight, boolean italic); /** *

Overloaded constructor for {@link #QFont(java.util.Collection, int, int, boolean)} * with italic = false.

*/ public QFont(java.util.Collection families, int pointSize, int weight) { this(families, pointSize, weight, (boolean)false); } /** *

Overloaded constructor for {@link #QFont(java.util.Collection, int, int, boolean)}

*

with:

    *
  • weight = -1
  • *
  • italic = false
  • *
*/ public QFont(java.util.Collection families, int pointSize) { this(families, pointSize, (int)-1, (boolean)false); } /** *

Overloaded constructor for {@link #QFont(java.util.Collection, int, int, boolean)}

*

with:

    *
  • pointSize = -1
  • *
  • weight = -1
  • *
  • italic = false
  • *
*/ public QFont(java.util.Collection families) { this(families, (int)-1, (int)-1, (boolean)false); } /** *

See QFont::QFont(QStringList,int,int,bool)

*/ public QFont(java.util.Collection families, int pointSize, int weight, boolean italic){ super((QPrivateConstructor)null); initialize_native(this, families, pointSize, weight, italic); boolean _dogc; synchronized(io.qt.gui.QFont.class){ if(_dogc = (__qt_expenseCounter += 1) > 1000) __qt_expenseCounter = 0; } if (_dogc) System.gc(); } private native static void initialize_native(QFont instance, java.util.Collection families, int pointSize, int weight, boolean italic); /** *

See QFont::bold()const

*/ @io.qt.QtUninvokable public final boolean bold(){ return bold_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean bold_native_constfct(long __this__nativeId); /** *

See QFont::capitalization()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.Capitalization capitalization(){ return io.qt.gui.QFont.Capitalization.resolve(capitalization_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int capitalization_native_constfct(long __this__nativeId); /** *

See QFont::defaultFamily()const

*/ @io.qt.QtUninvokable public final java.lang.String defaultFamily(){ return defaultFamily_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String defaultFamily_native_constfct(long __this__nativeId); /** *

See QFont::exactMatch()const

*/ @io.qt.QtUninvokable public final boolean exactMatch(){ return exactMatch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean exactMatch_native_constfct(long __this__nativeId); /** *

See QFont::families()const

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList families(){ return families_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QStringList families_native_constfct(long __this__nativeId); /** *

See QFont::family()const

*/ @io.qt.QtUninvokable public final java.lang.String family(){ return family_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String family_native_constfct(long __this__nativeId); /** *

See QFont::fixedPitch()const

*/ @io.qt.QtUninvokable public final boolean fixedPitch(){ return fixedPitch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean fixedPitch_native_constfct(long __this__nativeId); /** *

See QFont::fromString(QString)

*/ @io.qt.QtUninvokable public final boolean fromString(java.lang.String arg__1){ return fromString_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native boolean fromString_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QFont::hintingPreference()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.HintingPreference hintingPreference(){ return io.qt.gui.QFont.HintingPreference.resolve(hintingPreference_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int hintingPreference_native_constfct(long __this__nativeId); /** *

See QFont::isCopyOf(QFont)const

*/ @io.qt.QtUninvokable public final boolean isCopyOf(io.qt.gui.QFont arg__1){ return isCopyOf_native_cref_QFont_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean isCopyOf_native_cref_QFont_constfct(long __this__nativeId, long arg__1); /** *

See QFont::italic()const

*/ @io.qt.QtUninvokable public final boolean italic(){ return italic_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean italic_native_constfct(long __this__nativeId); /** *

See QFont::kerning()const

*/ @io.qt.QtUninvokable public final boolean kerning(){ return kerning_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean kerning_native_constfct(long __this__nativeId); /** *

See QFont::key()const

*/ @io.qt.QtUninvokable public final java.lang.String key(){ return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String key_native_constfct(long __this__nativeId); /** * @deprecated Use {@link io.qt.gui.QFont#weight()} instead */ @Deprecated @io.qt.QtUninvokable public final int legacyWeight(){ return legacyWeight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @Deprecated @io.qt.QtUninvokable private native int legacyWeight_native_constfct(long __this__nativeId); /** *

See QFont::letterSpacing()const

*/ @io.qt.QtUninvokable public final double letterSpacing(){ return letterSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double letterSpacing_native_constfct(long __this__nativeId); /** *

See QFont::letterSpacingType()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.SpacingType letterSpacingType(){ return io.qt.gui.QFont.SpacingType.resolve(letterSpacingType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int letterSpacingType_native_constfct(long __this__nativeId); /** *

See QFont::operator<(QFont)const

*/ @io.qt.QtUninvokable private final boolean operator_less(io.qt.gui.QFont arg__1){ return operator_less_native_cref_QFont_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean operator_less_native_cref_QFont_constfct(long __this__nativeId, long arg__1); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QFont::operator==(QFont)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QFont arg__1){ return operator_equal_native_cref_QFont_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QFont_constfct(long __this__nativeId, long arg__1); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QFont::overline()const

*/ @io.qt.QtUninvokable public final boolean overline(){ return overline_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean overline_native_constfct(long __this__nativeId); /** *

See QFont::pixelSize()const

*/ @io.qt.QtUninvokable public final int pixelSize(){ return pixelSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int pixelSize_native_constfct(long __this__nativeId); /** *

See QFont::pointSize()const

*/ @io.qt.QtUninvokable public final int pointSize(){ return pointSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int pointSize_native_constfct(long __this__nativeId); /** *

See QFont::pointSizeF()const

*/ @io.qt.QtUninvokable public final double pointSizeF(){ return pointSizeF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double pointSizeF_native_constfct(long __this__nativeId); /** *

See QFont::resolve(QFont)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont resolve(io.qt.gui.QFont arg__1){ return resolve_native_cref_QFont_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native io.qt.gui.QFont resolve_native_cref_QFont_constfct(long __this__nativeId, long arg__1); @io.qt.QtUninvokable public final int resolveMask(){ return resolveMask_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int resolveMask_native_constfct(long __this__nativeId); /** *

See QFont::setBold(bool)

*/ @io.qt.QtUninvokable public final void setBold(boolean arg__1){ setBold_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setBold_native_bool(long __this__nativeId, boolean arg__1); /** *

See QFont::setCapitalization(QFont::Capitalization)

*/ @io.qt.QtUninvokable public final void setCapitalization(io.qt.gui.QFont.Capitalization arg__1){ setCapitalization_native_QFont_Capitalization(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @io.qt.QtUninvokable private native void setCapitalization_native_QFont_Capitalization(long __this__nativeId, int arg__1); /** *

See QFont::setFamilies(QStringList)

*/ @io.qt.QtUninvokable public final void setFamilies(java.util.Collection arg__1){ setFamilies_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setFamilies_native_cref_QStringList(long __this__nativeId, java.util.Collection arg__1); /** *

See QFont::setFamily(QString)

*/ @io.qt.QtUninvokable public final void setFamily(java.lang.String arg__1){ setFamily_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setFamily_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QFont::setFixedPitch(bool)

*/ @io.qt.QtUninvokable public final void setFixedPitch(boolean arg__1){ setFixedPitch_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setFixedPitch_native_bool(long __this__nativeId, boolean arg__1); /** *

See QFont::setHintingPreference(QFont::HintingPreference)

*/ @io.qt.QtUninvokable public final void setHintingPreference(io.qt.gui.QFont.HintingPreference hintingPreference){ setHintingPreference_native_QFont_HintingPreference(QtJambi_LibraryUtilities.internal.nativeId(this), hintingPreference.value()); } @io.qt.QtUninvokable private native void setHintingPreference_native_QFont_HintingPreference(long __this__nativeId, int hintingPreference); /** *

See QFont::setItalic(bool)

*/ @io.qt.QtUninvokable public final void setItalic(boolean b){ setItalic_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @io.qt.QtUninvokable private native void setItalic_native_bool(long __this__nativeId, boolean b); /** *

See QFont::setKerning(bool)

*/ @io.qt.QtUninvokable public final void setKerning(boolean arg__1){ setKerning_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setKerning_native_bool(long __this__nativeId, boolean arg__1); /** * @deprecated Use {@link io.qt.gui.QFont#setWeight(io.qt.gui.QFont.Weight)} instead */ @Deprecated @io.qt.QtUninvokable public final void setLegacyWeight(int legacyWeight){ setLegacyWeight_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), legacyWeight); } @Deprecated @io.qt.QtUninvokable private native void setLegacyWeight_native_int(long __this__nativeId, int legacyWeight); /** *

See QFont::setLetterSpacing(QFont::SpacingType,qreal)

*/ @io.qt.QtUninvokable public final void setLetterSpacing(io.qt.gui.QFont.SpacingType type, double spacing){ setLetterSpacing_native_QFont_SpacingType_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), type.value(), spacing); } @io.qt.QtUninvokable private native void setLetterSpacing_native_QFont_SpacingType_qtjambireal(long __this__nativeId, int type, double spacing); /** *

See QFont::setOverline(bool)

*/ @io.qt.QtUninvokable public final void setOverline(boolean arg__1){ setOverline_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setOverline_native_bool(long __this__nativeId, boolean arg__1); /** *

See QFont::setPixelSize(int)

*/ @io.qt.QtUninvokable public final void setPixelSize(int arg__1){ setPixelSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setPixelSize_native_int(long __this__nativeId, int arg__1); /** *

See QFont::setPointSize(int)

*/ @io.qt.QtUninvokable public final void setPointSize(int arg__1){ setPointSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setPointSize_native_int(long __this__nativeId, int arg__1); /** *

See QFont::setPointSizeF(qreal)

*/ @io.qt.QtUninvokable public final void setPointSizeF(double arg__1){ setPointSizeF_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setPointSizeF_native_qtjambireal(long __this__nativeId, double arg__1); @io.qt.QtUninvokable public final void setResolveMask(int mask){ setResolveMask_native_uint(QtJambi_LibraryUtilities.internal.nativeId(this), mask); } @io.qt.QtUninvokable private native void setResolveMask_native_uint(long __this__nativeId, int mask); /** *

See QFont::setStretch(int)

*/ @io.qt.QtUninvokable public final void setStretch(int arg__1){ setStretch_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setStretch_native_int(long __this__nativeId, int arg__1); /** *

See QFont::setStrikeOut(bool)

*/ @io.qt.QtUninvokable public final void setStrikeOut(boolean arg__1){ setStrikeOut_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setStrikeOut_native_bool(long __this__nativeId, boolean arg__1); /** *

See QFont::setStyle(QFont::Style)

*/ @io.qt.QtUninvokable public final void setStyle(io.qt.gui.QFont.Style style){ setStyle_native_QFont_Style(QtJambi_LibraryUtilities.internal.nativeId(this), style.value()); } @io.qt.QtUninvokable private native void setStyle_native_QFont_Style(long __this__nativeId, int style); /** *

Overloaded function for {@link #setStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)} * with arg__2 = io.qt.gui.QFont.StyleStrategy.PreferDefault.

*/ @io.qt.QtUninvokable public final void setStyleHint(io.qt.gui.QFont.StyleHint arg__1) { setStyleHint(arg__1, io.qt.gui.QFont.StyleStrategy.PreferDefault); } /** *

See QFont::setStyleHint(QFont::StyleHint,QFont::StyleStrategy)

*/ @io.qt.QtUninvokable public final void setStyleHint(io.qt.gui.QFont.StyleHint arg__1, io.qt.gui.QFont.StyleStrategy arg__2){ setStyleHint_native_QFont_StyleHint_QFont_StyleStrategy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value(), arg__2.value()); } @io.qt.QtUninvokable private native void setStyleHint_native_QFont_StyleHint_QFont_StyleStrategy(long __this__nativeId, int arg__1, int arg__2); /** *

See QFont::setStyleName(QString)

*/ @io.qt.QtUninvokable public final void setStyleName(java.lang.String arg__1){ setStyleName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setStyleName_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QFont::setStyleStrategy(QFont::StyleStrategy)

*/ @io.qt.QtUninvokable public final void setStyleStrategy(io.qt.gui.QFont.StyleStrategy s){ setStyleStrategy_native_QFont_StyleStrategy(QtJambi_LibraryUtilities.internal.nativeId(this), s.value()); } @io.qt.QtUninvokable private native void setStyleStrategy_native_QFont_StyleStrategy(long __this__nativeId, int s); /** *

See QFont::setUnderline(bool)

*/ @io.qt.QtUninvokable public final void setUnderline(boolean arg__1){ setUnderline_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native void setUnderline_native_bool(long __this__nativeId, boolean arg__1); /** *

See QFont::setWeight(QFont::Weight)

*/ @io.qt.QtUninvokable public final void setWeight(io.qt.gui.QFont.Weight weight){ setWeight_native_QFont_Weight(QtJambi_LibraryUtilities.internal.nativeId(this), weight.value()); } @io.qt.QtUninvokable private native void setWeight_native_QFont_Weight(long __this__nativeId, int weight); /** *

See QFont::setWordSpacing(qreal)

*/ @io.qt.QtUninvokable public final void setWordSpacing(double spacing){ setWordSpacing_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing); } @io.qt.QtUninvokable private native void setWordSpacing_native_qtjambireal(long __this__nativeId, double spacing); /** *

See QFont::stretch()const

*/ @io.qt.QtUninvokable public final int stretch(){ return stretch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int stretch_native_constfct(long __this__nativeId); /** *

See QFont::strikeOut()const

*/ @io.qt.QtUninvokable public final boolean strikeOut(){ return strikeOut_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean strikeOut_native_constfct(long __this__nativeId); /** *

See QFont::style()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.Style style(){ return io.qt.gui.QFont.Style.resolve(style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int style_native_constfct(long __this__nativeId); /** *

See QFont::styleHint()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.StyleHint styleHint(){ return io.qt.gui.QFont.StyleHint.resolve(styleHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int styleHint_native_constfct(long __this__nativeId); /** *

See QFont::styleName()const

*/ @io.qt.QtUninvokable public final java.lang.String styleName(){ return styleName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String styleName_native_constfct(long __this__nativeId); /** *

See QFont::styleStrategy()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.StyleStrategy styleStrategy(){ return io.qt.gui.QFont.StyleStrategy.resolve(styleStrategy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int styleStrategy_native_constfct(long __this__nativeId); /** *

See QFont::swap(QFont&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.gui.QFont other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QFont(long __this__nativeId, long other); /** *

See QFont::toString()const

*/ @io.qt.QtUninvokable public final java.lang.String toString(){ return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String toString_native_constfct(long __this__nativeId); /** *

See QFont::underline()const

*/ @io.qt.QtUninvokable public final boolean underline(){ return underline_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean underline_native_constfct(long __this__nativeId); /** *

See QFont::weight()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QFont.Weight weight(){ return io.qt.gui.QFont.Weight.resolve(weight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int weight_native_constfct(long __this__nativeId); /** *

See QFont::wordSpacing()const

*/ @io.qt.QtUninvokable public final double wordSpacing(){ return wordSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double wordSpacing_native_constfct(long __this__nativeId); public native static void cacheStatistics(); public native static void cleanup(); public native static void initialize(); /** *

See QFont::insertSubstitution(QString,QString)

*/ public native static void insertSubstitution(java.lang.String arg__1, java.lang.String arg__2); /** *

See QFont::insertSubstitutions(QString,QStringList)

*/ public native static void insertSubstitutions(java.lang.String arg__1, java.util.Collection arg__2); /** *

See QFont::removeSubstitutions(QString)

*/ public native static void removeSubstitutions(java.lang.String arg__1); /** *

See QFont::substitute(QString)

*/ public native static java.lang.String substitute(java.lang.String arg__1); /** *

See QFont::substitutes(QString)

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

See QFont::substitutions()

*/ public native static io.qt.core.QStringList substitutions(); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QFont(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QFont) { return operator_equal((io.qt.gui.QFont) other); } return false; } @io.qt.QtUninvokable public int compareTo(io.qt.gui.QFont other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QFont clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QFont clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy