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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Specifies a query for a font used for drawing text

*

Java wrapper for Qt class QFont

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

Java wrapper for Qt enum QFont::Capitalization

*/ public enum Capitalization implements QtEnumerator { /** *

Representing QFont::MixedCase

*/ MixedCase(0), /** *

Representing QFont::AllUppercase

*/ AllUppercase(1), /** *

Representing QFont::AllLowercase

*/ AllLowercase(2), /** *

Representing QFont::SmallCaps

*/ SmallCaps(3), /** *

Representing QFont::Capitalize

*/ Capitalize(4); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::HintingPreference

*/ public enum HintingPreference implements QtEnumerator { /** *

Representing QFont::PreferDefaultHinting

*/ PreferDefaultHinting(0), /** *

Representing QFont::PreferNoHinting

*/ PreferNoHinting(1), /** *

Representing QFont::PreferVerticalHinting

*/ PreferVerticalHinting(2), /** *

Representing QFont::PreferFullHinting

*/ PreferFullHinting(3); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::ResolveProperties

*/ public enum ResolveProperties implements QtEnumerator { /** *

Representing QFont::NoPropertiesResolved

*/ NoPropertiesResolved(0), /** *

Representing QFont::FamilyResolved

*/ FamilyResolved(1), /** *

Representing QFont::SizeResolved

*/ SizeResolved(2), /** *

Representing QFont::StyleHintResolved

*/ StyleHintResolved(4), /** *

Representing QFont::StyleStrategyResolved

*/ StyleStrategyResolved(8), /** *

Representing QFont::WeightResolved

*/ WeightResolved(16), /** *

Representing QFont::StyleResolved

*/ StyleResolved(32), /** *

Representing QFont::UnderlineResolved

*/ UnderlineResolved(64), /** *

Representing QFont::OverlineResolved

*/ OverlineResolved(128), /** *

Representing QFont::StrikeOutResolved

*/ StrikeOutResolved(256), /** *

Representing QFont::FixedPitchResolved

*/ FixedPitchResolved(512), /** *

Representing QFont::StretchResolved

*/ StretchResolved(1024), /** *

Representing QFont::KerningResolved

*/ KerningResolved(2048), /** *

Representing QFont::CapitalizationResolved

*/ CapitalizationResolved(4096), /** *

Representing QFont::LetterSpacingResolved

*/ LetterSpacingResolved(8192), /** *

Representing QFont::WordSpacingResolved

*/ WordSpacingResolved(16384), /** *

Representing QFont::HintingPreferenceResolved

*/ HintingPreferenceResolved(32768), /** *

Representing QFont::StyleNameResolved

*/ StyleNameResolved(65536), /** *

Representing QFont::FamiliesResolved

*/ FamiliesResolved(131072), /** *

Representing QFont::FeaturesResolved

*/ FeaturesResolved(262144), /** *

Representing QFont::AllPropertiesResolved

*/ AllPropertiesResolved(524287); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 262144: return FeaturesResolved; case 524287: return AllPropertiesResolved; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::SpacingType

*/ public enum SpacingType implements QtEnumerator { /** *

Representing QFont::PercentageSpacing

*/ PercentageSpacing(0), /** *

Representing QFont::AbsoluteSpacing

*/ AbsoluteSpacing(1); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull SpacingType resolve(int value) { switch (value) { case 0: return PercentageSpacing; case 1: return AbsoluteSpacing; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Stretch

*/ public enum Stretch implements QtEnumerator { /** *

Representing QFont::AnyStretch

*/ AnyStretch(0), /** *

Representing QFont::UltraCondensed

*/ UltraCondensed(50), /** *

Representing QFont::ExtraCondensed

*/ ExtraCondensed(62), /** *

Representing QFont::Condensed

*/ Condensed(75), /** *

Representing QFont::SemiCondensed

*/ SemiCondensed(87), /** *

Representing QFont::Unstretched

*/ Unstretched(100), /** *

Representing QFont::SemiExpanded

*/ SemiExpanded(112), /** *

Representing QFont::Expanded

*/ Expanded(125), /** *

Representing QFont::ExtraExpanded

*/ ExtraExpanded(150), /** *

Representing QFont::UltraExpanded

*/ UltraExpanded(200); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Style

*/ public enum Style implements QtEnumerator { /** *

Representing QFont::StyleNormal

*/ StyleNormal(0), /** *

Representing QFont::StyleItalic

*/ StyleItalic(1), /** *

Representing QFont::StyleOblique

*/ StyleOblique(2); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull Style resolve(int value) { switch (value) { case 0: return StyleNormal; case 1: return StyleItalic; case 2: return StyleOblique; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::StyleHint

*/ @QtRejectedEntries({"SansSerif", "Serif", "TypeWriter", "Decorative"}) public enum StyleHint implements QtEnumerator { /** *

Representing QFont::Helvetica

*/ Helvetica(0), /** *

Representing QFont::SansSerif

*/ SansSerif(0), /** *

Representing QFont::Times

*/ Times(1), /** *

Representing QFont::Serif

*/ Serif(1), /** *

Representing QFont::Courier

*/ Courier(2), /** *

Representing QFont::TypeWriter

*/ TypeWriter(2), /** *

Representing QFont::OldEnglish

*/ OldEnglish(3), /** *

Representing QFont::Decorative

*/ Decorative(3), /** *

Representing QFont::System

*/ System(4), /** *

Representing QFont::AnyStyle

*/ AnyStyle(5), /** *

Representing QFont::Cursive

*/ Cursive(6), /** *

Representing QFont::Monospace

*/ Monospace(7), /** *

Representing QFont::Fantasy

*/ Fantasy(8); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::StyleStrategy

*/ public enum StyleStrategy implements QtEnumerator { /** *

Representing QFont::PreferDefault

*/ PreferDefault(1), /** *

Representing QFont::PreferBitmap

*/ PreferBitmap(2), /** *

Representing QFont::PreferDevice

*/ PreferDevice(4), /** *

Representing QFont::PreferOutline

*/ PreferOutline(8), /** *

Representing QFont::ForceOutline

*/ ForceOutline(16), /** *

Representing QFont::PreferMatch

*/ PreferMatch(32), /** *

Representing QFont::PreferQuality

*/ PreferQuality(64), /** *

Representing QFont::PreferAntialias

*/ PreferAntialias(128), /** *

Representing QFont::NoAntialias

*/ NoAntialias(256), /** *

Representing QFont::NoSubpixelAntialias

*/ NoSubpixelAntialias(2048), /** *

Representing QFont::PreferNoShaping

*/ PreferNoShaping(4096), /** *

Representing QFont::NoFontMerging

*/ NoFontMerging(32768); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFont::Weight

*/ public enum Weight implements QtEnumerator { /** *

Representing QFont::Thin

*/ Thin(100), /** *

Representing QFont::ExtraLight

*/ ExtraLight(200), /** *

Representing QFont::Light

*/ Light(300), /** *

Representing QFont::Normal

*/ Normal(400), /** *

Representing QFont::Medium

*/ Medium(500), /** *

Representing QFont::DemiBold

*/ DemiBold(600), /** *

Representing QFont::Bold

*/ Bold(700), /** *

Representing QFont::ExtraBold

*/ ExtraBold(800), /** *

Representing QFont::Black

*/ Black(900); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull 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 QNoSuchEnumValueException(value); } } private final int value; } /** *

See QFont::QFont()

*/ public QFont(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QFont instance); /** *

See QFont::QFont(QFont)

*/ public QFont(io.qt.gui.@NonNull QFont font){ super((QPrivateConstructor)null); initialize_native(this, font); } private native static void initialize_native(QFont instance, io.qt.gui.QFont font); /** *

See QFont::QFont(QFont,const QPaintDevice*)

*/ public QFont(io.qt.gui.@NonNull QFont font, io.qt.gui.@Nullable QPaintDevice pd){ super((QPrivateConstructor)null); initialize_native(this, font, pd); } private native static void initialize_native(QFont instance, io.qt.gui.QFont font, io.qt.gui.QPaintDevice pd); /** *

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

*/ public QFont(java.lang.@NonNull String family, int pointSize, int weight, boolean italic){ super((QPrivateConstructor)null); initialize_native(this, family, pointSize, weight, italic); } private native static void initialize_native(QFont instance, java.lang.String family, int pointSize, int weight, boolean italic); /** *

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

*/ public QFont(java.util.@NonNull Collection families, int pointSize, int weight, boolean italic){ super((QPrivateConstructor)null); initialize_native(this, families, pointSize, weight, italic); } private native static void initialize_native(QFont instance, java.util.Collection families, int pointSize, int weight, boolean italic); /** *

See QFont::bold()const

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

See QFont::capitalization()const

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

See QFont::clearFeatures()

*/ @QtUninvokable public final void clearFeatures(){ clearFeatures_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clearFeatures_native(long __this__nativeId); /** *

See QFont::defaultFamily()const

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

See QFont::exactMatch()const

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

See QFont::families()const

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

See QFont::family()const

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

See QFont::featureTags()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList featureTags(){ return featureTags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList featureTags_native_constfct(long __this__nativeId); /** *

See QFont::featureValue(quint32)const

*/ @QtUninvokable public final int featureValue(int tag){ return featureValue_native_quint32_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), tag); } @QtUninvokable private native int featureValue_native_quint32_constfct(long __this__nativeId, int tag); /** *

See QFont::fixedPitch()const

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

See QFont::fromString(QString)

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

See QFont::hintingPreference()const

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

See QFont::isCopyOf(QFont)const

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

See QFont::isFeatureSet(quint32)const

*/ @QtUninvokable public final boolean isFeatureSet(int tag){ return isFeatureSet_native_quint32_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), tag); } @QtUninvokable private native boolean isFeatureSet_native_quint32_constfct(long __this__nativeId, int tag); /** *

See QFont::italic()const

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

See QFont::kerning()const

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

See QFont::key()const

*/ @QtUninvokable public final java.lang.@NonNull String key(){ return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String key_native_constfct(long __this__nativeId); /** *

See QFont::legacyWeight()const

*/ @QtUninvokable public final int legacyWeight(){ return legacyWeight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int legacyWeight_native_constfct(long __this__nativeId); /** *

See QFont::letterSpacing()const

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

See QFont::letterSpacingType()const

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

See QFont::operator<(QFont)const

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

See operator<<(QDataStream&,QFont)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull 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)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QFont::operator=(QFont)

*/ @QtUninvokable public final void assign(io.qt.gui.@NonNull QFont arg__1){ assign_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void assign_native_cref_QFont(long __this__nativeId, long arg__1); /** *

See QFont::operator==(QFont)const

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

See operator>>(QDataStream&,QFont&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull 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)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QFont::overline()const

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

See QFont::pixelSize()const

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

See QFont::pointSize()const

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

See QFont::pointSizeF()const

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

See QFont::resolve(QFont)const

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

See QFont::resolveMask()const

*/ @QtUninvokable public final int resolveMask(){ return resolveMask_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int resolveMask_native_constfct(long __this__nativeId); /** *

See QFont::setBold(bool)

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

See QFont::setCapitalization(QFont::Capitalization)

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

See QFont::setFamilies(QStringList)

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

See QFont::setFamily(QString)

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

See QFont::setFeature(const char*,quint32)

*/ @QtUninvokable public final void setFeature(java.lang.@Nullable String feature, int value){ setFeature_native_const_char_ptr_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), feature, value); } @QtUninvokable private native void setFeature_native_const_char_ptr_quint32(long __this__nativeId, java.lang.String feature, int value); /** *

See QFont::setFeature(quint32,quint32)

*/ @QtUninvokable public final void setFeature(int tag, int value){ setFeature_native_quint32_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), tag, value); } @QtUninvokable private native void setFeature_native_quint32_quint32(long __this__nativeId, int tag, int value); /** *

See QFont::setFixedPitch(bool)

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

See QFont::setHintingPreference(QFont::HintingPreference)

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

See QFont::setItalic(bool)

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

See QFont::setKerning(bool)

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

See QFont::setLegacyWeight(int)

*/ @QtUninvokable public final void setLegacyWeight(int legacyWeight){ setLegacyWeight_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), legacyWeight); } @QtUninvokable private native void setLegacyWeight_native_int(long __this__nativeId, int legacyWeight); /** *

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

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

See QFont::setOverline(bool)

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

See QFont::setPixelSize(int)

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

See QFont::setPointSize(int)

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

See QFont::setPointSizeF(qreal)

*/ @QtUninvokable public final void setPointSizeF(double arg__1){ setPointSizeF_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setPointSizeF_native_qreal(long __this__nativeId, double arg__1); /** *

See QFont::setResolveMask(uint)

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

See QFont::setStretch(int)

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

See QFont::setStrikeOut(bool)

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

See QFont::setStyle(QFont::Style)

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

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

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

See QFont::setStyleName(QString)

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

See QFont::setStyleStrategy(QFont::StyleStrategy)

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

See QFont::setUnderline(bool)

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

See QFont::setWeight(QFont::Weight)

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

See QFont::setWordSpacing(qreal)

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

See QFont::stretch()const

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

See QFont::strikeOut()const

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

See QFont::style()const

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

See QFont::styleHint()const

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

See QFont::styleName()const

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

See QFont::styleStrategy()const

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

See QFont::swap(QFont&)

*/ @QtUninvokable public final void swap(io.qt.gui.@StrictNonNull 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)); } @QtUninvokable private native void swap_native_ref_QFont(long __this__nativeId, long other); /** *

See QFont::toString()const

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

See QFont::underline()const

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

See QFont::unsetFeature(const char*)

*/ @QtUninvokable public final void unsetFeature(java.lang.@Nullable String feature){ unsetFeature_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), feature); } @QtUninvokable private native void unsetFeature_native_const_char_ptr(long __this__nativeId, java.lang.String feature); /** *

See QFont::unsetFeature(quint32)

*/ @QtUninvokable public final void unsetFeature(int tag){ unsetFeature_native_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), tag); } @QtUninvokable private native void unsetFeature_native_quint32(long __this__nativeId, int tag); /** *

See QFont::weight()const

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

See QFont::wordSpacing()const

*/ @QtUninvokable public final double wordSpacing(){ return wordSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double wordSpacing_native_constfct(long __this__nativeId); /** *

See QFont::cacheStatistics()

*/ public native static void cacheStatistics(); /** *

See QFont::cleanup()

*/ public native static void cleanup(); /** *

See QFont::initialize()

*/ public native static void initialize(); /** *

See QFont::insertSubstitution(QString,QString)

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

See QFont::insertSubstitutions(QString,QStringList)

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

See QFont::removeSubstitutions(QString)

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

See QFont::stringToTag(const char*)

*/ public native static int stringToTag(java.lang.@Nullable String tagString); /** *

See QFont::substitute(QString)

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

See QFont::substitutes(QString)

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

See QFont::substitutions()

*/ public native static io.qt.core.@NonNull QStringList substitutions(); /** *

See QFont::tagToString(quint32)

*/ public native static io.qt.core.@NonNull QByteArray tagToString(int tag); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QFont(QPrivateConstructor p) { super(p); } /** *

See QFont::operator==(QFont)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QFont) { return equals((io.qt.gui.QFont) other); } return false; } /** *

See QFont::operator<(QFont)const

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(io.qt.gui.@StrictNonNull QFont other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } /** * Returns the objects's hash code computed by qHash(QFont). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QFont::QFont(QFont)

*/ @QtUninvokable @Override public QFont clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QFont clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QFont(io.qt.gui.QFont, io.qt.gui.QPaintDevice)}.

*/ public QFont(java.lang.@NonNull String font, io.qt.gui.@Nullable QPaintDevice pd) { this(new io.qt.gui.QFont(font), pd); } /** *

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

*/ public QFont(java.lang.@NonNull 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.@NonNull 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.@NonNull String family) { this(family, (int)-1, (int)-1, (boolean)false); } /** *

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

*/ public QFont(java.util.@NonNull 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.@NonNull 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.@NonNull Collection families) { this(families, (int)-1, (int)-1, (boolean)false); } /** *

Overloaded function for {@link #isCopyOf(io.qt.gui.QFont)}.

*/ @QtUninvokable public final boolean isCopyOf(java.lang.@NonNull String arg__1) { return isCopyOf(new io.qt.gui.QFont(arg__1)); } /** *

Overloaded function for {@link #operator_less(io.qt.gui.QFont)}.

*/ @QtUninvokable private final boolean operator_less(java.lang.@NonNull String arg__1) { return operator_less(new io.qt.gui.QFont(arg__1)); } /** *

Overloaded function for {@link #assign(io.qt.gui.QFont)}.

*/ @QtUninvokable public final void assign(java.lang.@NonNull String arg__1) { assign(new io.qt.gui.QFont(arg__1)); } /** *

Overloaded function for {@link #equals(io.qt.gui.QFont)}.

*/ @QtUninvokable public final boolean equals(java.lang.@NonNull String arg__1) { return equals(new io.qt.gui.QFont(arg__1)); } /** *

Overloaded function for {@link #resolve(io.qt.gui.QFont)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QFont resolve(java.lang.@NonNull String arg__1) { return resolve(new io.qt.gui.QFont(arg__1)); } /** *

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy