io.qt.gui.QTextFormat Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Formatting information for a QTextDocument
* Java wrapper for Qt class QTextFormat
*/
public class QTextFormat extends QtObject
implements 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(QTextFormat.class);
/**
* Java wrapper for Qt enum QTextFormat::FormatType
*/
public enum FormatType implements QtEnumerator {
/**
* Representing QTextFormat:: InvalidFormat
*/
InvalidFormat(-1),
/**
* Representing QTextFormat:: BlockFormat
*/
BlockFormat(1),
/**
* Representing QTextFormat:: CharFormat
*/
CharFormat(2),
/**
* Representing QTextFormat:: ListFormat
*/
ListFormat(3),
/**
* Representing QTextFormat:: FrameFormat
*/
FrameFormat(5),
/**
* Representing QTextFormat:: UserFormat
*/
UserFormat(100);
static {
QtJambi_LibraryUtilities.initialize();
}
private FormatType(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 FormatType resolve(int value) {
switch (value) {
case -1: return InvalidFormat;
case 1: return BlockFormat;
case 2: return CharFormat;
case 3: return ListFormat;
case 5: return FrameFormat;
case 100: return UserFormat;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTextFormat::ObjectTypes
*/
public enum ObjectTypes implements QtEnumerator {
/**
* Representing QTextFormat:: NoObject
*/
NoObject(0),
/**
* Representing QTextFormat:: ImageObject
*/
ImageObject(1),
/**
* Representing QTextFormat:: TableObject
*/
TableObject(2),
/**
* Representing QTextFormat:: TableCellObject
*/
TableCellObject(3),
/**
* Representing QTextFormat:: UserObject
*/
UserObject(4096);
static {
QtJambi_LibraryUtilities.initialize();
}
private ObjectTypes(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 ObjectTypes resolve(int value) {
switch (value) {
case 0: return NoObject;
case 1: return ImageObject;
case 2: return TableObject;
case 3: return TableCellObject;
case 4096: return UserObject;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTextFormat::PageBreakFlag
*
* @see PageBreakFlags
*/
public enum PageBreakFlag implements QtFlagEnumerator {
/**
* Representing QTextFormat:: PageBreak_Auto
*/
PageBreak_Auto(0),
/**
* Representing QTextFormat:: PageBreak_AlwaysBefore
*/
PageBreak_AlwaysBefore(1),
/**
* Representing QTextFormat:: PageBreak_AlwaysAfter
*/
PageBreak_AlwaysAfter(16);
static {
QtJambi_LibraryUtilities.initialize();
}
private PageBreakFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull PageBreakFlags asFlags() {
return new PageBreakFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull PageBreakFlags combined(@NonNull PageBreakFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull PageBreakFlags cleared(@NonNull PageBreakFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link PageBreakFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull PageBreakFlags flags(@Nullable PageBreakFlag @NonNull... values) {
return new PageBreakFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull PageBreakFlag resolve(int value) {
switch (value) {
case 0: return PageBreak_Auto;
case 1: return PageBreak_AlwaysBefore;
case 16: return PageBreak_AlwaysAfter;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link PageBreakFlag}
*/
public static final class PageBreakFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0x9b4fd22eaa9bf4aaL;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new PageBreakFlags where the flags in args
are set.
* @param args enum entries
*/
public PageBreakFlags(@Nullable PageBreakFlag @NonNull... args){
super(args);
}
/**
* Creates a new PageBreakFlags with given value
.
* @param value
*/
public PageBreakFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new PageBreakFlags
*/
@Override
public final @NonNull PageBreakFlags combined(@StrictNonNull PageBreakFlag e){
return new PageBreakFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull PageBreakFlags setFlag(@Nullable PageBreakFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull PageBreakFlags setFlag(@Nullable PageBreakFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this PageBreakFlags.
* @return array of enum entries
*/
@Override
public final @NonNull PageBreakFlag @NonNull[] flags(){
return super.flags(PageBreakFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull PageBreakFlags clone(){
return new PageBreakFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull PageBreakFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QTextFormat::Property
*/
@QtRejectedEntries({"FirstFontProperty", "FontSizeIncrement", "LastFontProperty", "OldFontFamily"})
public enum Property implements QtEnumerator {
/**
* Representing QTextFormat:: ObjectIndex
*/
ObjectIndex(0),
/**
* Representing QTextFormat:: CssFloat
*/
CssFloat(2048),
/**
* Representing QTextFormat:: LayoutDirection
*/
LayoutDirection(2049),
/**
* Representing QTextFormat:: OutlinePen
*/
OutlinePen(2064),
/**
* Representing QTextFormat:: BackgroundBrush
*/
BackgroundBrush(2080),
/**
* Representing QTextFormat:: ForegroundBrush
*/
ForegroundBrush(2081),
/**
* Representing QTextFormat:: BackgroundImageUrl
*/
BackgroundImageUrl(2083),
/**
* Representing QTextFormat:: BlockAlignment
*/
BlockAlignment(4112),
/**
* Representing QTextFormat:: BlockTopMargin
*/
BlockTopMargin(4144),
/**
* Representing QTextFormat:: BlockBottomMargin
*/
BlockBottomMargin(4145),
/**
* Representing QTextFormat:: BlockLeftMargin
*/
BlockLeftMargin(4146),
/**
* Representing QTextFormat:: BlockRightMargin
*/
BlockRightMargin(4147),
/**
* Representing QTextFormat:: TextIndent
*/
TextIndent(4148),
/**
* Representing QTextFormat:: TabPositions
*/
TabPositions(4149),
/**
* Representing QTextFormat:: BlockIndent
*/
BlockIndent(4160),
/**
* Representing QTextFormat:: LineHeight
*/
LineHeight(4168),
/**
* Representing QTextFormat:: LineHeightType
*/
LineHeightType(4169),
/**
* Representing QTextFormat:: BlockNonBreakableLines
*/
BlockNonBreakableLines(4176),
/**
* Representing QTextFormat:: BlockTrailingHorizontalRulerWidth
*/
BlockTrailingHorizontalRulerWidth(4192),
/**
* Representing QTextFormat:: HeadingLevel
*/
HeadingLevel(4208),
/**
* Representing QTextFormat:: BlockQuoteLevel
*/
BlockQuoteLevel(4224),
/**
* Representing QTextFormat:: BlockCodeLanguage
*/
BlockCodeLanguage(4240),
/**
* Representing QTextFormat:: BlockCodeFence
*/
BlockCodeFence(4241),
/**
* Representing QTextFormat:: BlockMarker
*/
BlockMarker(4256),
/**
* Representing QTextFormat:: FirstFontProperty
*/
FirstFontProperty(8160),
/**
* Representing QTextFormat:: FontCapitalization
*/
FontCapitalization(8160),
/**
* Representing QTextFormat:: FontLetterSpacing
*/
FontLetterSpacing(8161),
/**
* Representing QTextFormat:: FontWordSpacing
*/
FontWordSpacing(8162),
/**
* Representing QTextFormat:: FontStyleHint
*/
FontStyleHint(8163),
/**
* Representing QTextFormat:: FontStyleStrategy
*/
FontStyleStrategy(8164),
/**
* Representing QTextFormat:: FontKerning
*/
FontKerning(8165),
/**
* Representing QTextFormat:: FontHintingPreference
*/
FontHintingPreference(8166),
/**
* Representing QTextFormat:: FontFamilies
*/
FontFamilies(8167),
/**
* Representing QTextFormat:: FontStyleName
*/
FontStyleName(8168),
/**
* Representing QTextFormat:: FontLetterSpacingType
*/
FontLetterSpacingType(8169),
/**
* Representing QTextFormat:: FontStretch
*/
FontStretch(8170),
/**
* Representing QTextFormat:: FontFamily
*/
FontFamily(8192),
/**
* Representing QTextFormat:: FontPointSize
*/
FontPointSize(8193),
/**
* Representing QTextFormat:: FontSizeAdjustment
*/
FontSizeAdjustment(8194),
/**
* Representing QTextFormat:: FontSizeIncrement
*/
FontSizeIncrement(8194),
/**
* Representing QTextFormat:: FontWeight
*/
FontWeight(8195),
/**
* Representing QTextFormat:: FontItalic
*/
FontItalic(8196),
/**
* Representing QTextFormat:: FontUnderline
*/
FontUnderline(8197),
/**
* Representing QTextFormat:: FontOverline
*/
FontOverline(8198),
/**
* Representing QTextFormat:: FontStrikeOut
*/
FontStrikeOut(8199),
/**
* Representing QTextFormat:: FontFixedPitch
*/
FontFixedPitch(8200),
/**
* Representing QTextFormat:: FontPixelSize
*/
FontPixelSize(8201),
/**
* Representing QTextFormat:: LastFontProperty
*/
LastFontProperty(8201),
/**
* Representing QTextFormat:: TextUnderlineColor
*/
TextUnderlineColor(8224),
/**
* Representing QTextFormat:: TextVerticalAlignment
*/
TextVerticalAlignment(8225),
/**
* Representing QTextFormat:: TextOutline
*/
TextOutline(8226),
/**
* Representing QTextFormat:: TextUnderlineStyle
*/
TextUnderlineStyle(8227),
/**
* Representing QTextFormat:: TextToolTip
*/
TextToolTip(8228),
/**
* Representing QTextFormat:: TextSuperScriptBaseline
*/
TextSuperScriptBaseline(8229),
/**
* Representing QTextFormat:: TextSubScriptBaseline
*/
TextSubScriptBaseline(8230),
/**
* Representing QTextFormat:: TextBaselineOffset
*/
TextBaselineOffset(8231),
/**
* Representing QTextFormat:: IsAnchor
*/
IsAnchor(8240),
/**
* Representing QTextFormat:: AnchorHref
*/
AnchorHref(8241),
/**
* Representing QTextFormat:: AnchorName
*/
AnchorName(8242),
/**
* Representing QTextFormat:: OldFontLetterSpacingType
*/
OldFontLetterSpacingType(8243),
/**
* Representing QTextFormat:: OldFontStretch
*/
OldFontStretch(8244),
/**
* Representing QTextFormat:: OldTextUnderlineColor
*/
OldTextUnderlineColor(8208),
/**
* Representing QTextFormat:: OldFontFamily
*/
OldFontFamily(8192),
/**
* Representing QTextFormat:: ObjectType
*/
ObjectType(12032),
/**
* Representing QTextFormat:: ListStyle
*/
ListStyle(12288),
/**
* Representing QTextFormat:: ListIndent
*/
ListIndent(12289),
/**
* Representing QTextFormat:: ListNumberPrefix
*/
ListNumberPrefix(12290),
/**
* Representing QTextFormat:: ListNumberSuffix
*/
ListNumberSuffix(12291),
/**
* Representing QTextFormat:: ListStart
*/
ListStart(12292),
/**
* Representing QTextFormat:: FrameBorder
*/
FrameBorder(16384),
/**
* Representing QTextFormat:: FrameMargin
*/
FrameMargin(16385),
/**
* Representing QTextFormat:: FramePadding
*/
FramePadding(16386),
/**
* Representing QTextFormat:: FrameWidth
*/
FrameWidth(16387),
/**
* Representing QTextFormat:: FrameHeight
*/
FrameHeight(16388),
/**
* Representing QTextFormat:: FrameTopMargin
*/
FrameTopMargin(16389),
/**
* Representing QTextFormat:: FrameBottomMargin
*/
FrameBottomMargin(16390),
/**
* Representing QTextFormat:: FrameLeftMargin
*/
FrameLeftMargin(16391),
/**
* Representing QTextFormat:: FrameRightMargin
*/
FrameRightMargin(16392),
/**
* Representing QTextFormat:: FrameBorderBrush
*/
FrameBorderBrush(16393),
/**
* Representing QTextFormat:: FrameBorderStyle
*/
FrameBorderStyle(16400),
/**
* Representing QTextFormat:: TableColumns
*/
TableColumns(16640),
/**
* Representing QTextFormat:: TableColumnWidthConstraints
*/
TableColumnWidthConstraints(16641),
/**
* Representing QTextFormat:: TableCellSpacing
*/
TableCellSpacing(16642),
/**
* Representing QTextFormat:: TableCellPadding
*/
TableCellPadding(16643),
/**
* Representing QTextFormat:: TableHeaderRowCount
*/
TableHeaderRowCount(16644),
/**
* Representing QTextFormat:: TableBorderCollapse
*/
TableBorderCollapse(16645),
/**
* Representing QTextFormat:: TableCellRowSpan
*/
TableCellRowSpan(18448),
/**
* Representing QTextFormat:: TableCellColumnSpan
*/
TableCellColumnSpan(18449),
/**
* Representing QTextFormat:: TableCellTopPadding
*/
TableCellTopPadding(18450),
/**
* Representing QTextFormat:: TableCellBottomPadding
*/
TableCellBottomPadding(18451),
/**
* Representing QTextFormat:: TableCellLeftPadding
*/
TableCellLeftPadding(18452),
/**
* Representing QTextFormat:: TableCellRightPadding
*/
TableCellRightPadding(18453),
/**
* Representing QTextFormat:: TableCellTopBorder
*/
TableCellTopBorder(18454),
/**
* Representing QTextFormat:: TableCellBottomBorder
*/
TableCellBottomBorder(18455),
/**
* Representing QTextFormat:: TableCellLeftBorder
*/
TableCellLeftBorder(18456),
/**
* Representing QTextFormat:: TableCellRightBorder
*/
TableCellRightBorder(18457),
/**
* Representing QTextFormat:: TableCellTopBorderStyle
*/
TableCellTopBorderStyle(18458),
/**
* Representing QTextFormat:: TableCellBottomBorderStyle
*/
TableCellBottomBorderStyle(18459),
/**
* Representing QTextFormat:: TableCellLeftBorderStyle
*/
TableCellLeftBorderStyle(18460),
/**
* Representing QTextFormat:: TableCellRightBorderStyle
*/
TableCellRightBorderStyle(18461),
/**
* Representing QTextFormat:: TableCellTopBorderBrush
*/
TableCellTopBorderBrush(18462),
/**
* Representing QTextFormat:: TableCellBottomBorderBrush
*/
TableCellBottomBorderBrush(18463),
/**
* Representing QTextFormat:: TableCellLeftBorderBrush
*/
TableCellLeftBorderBrush(18464),
/**
* Representing QTextFormat:: TableCellRightBorderBrush
*/
TableCellRightBorderBrush(18465),
/**
* Representing QTextFormat:: ImageName
*/
ImageName(20480),
/**
* Representing QTextFormat:: ImageTitle
*/
ImageTitle(20481),
/**
* Representing QTextFormat:: ImageAltText
*/
ImageAltText(20482),
/**
* Representing QTextFormat:: ImageWidth
*/
ImageWidth(20496),
/**
* Representing QTextFormat:: ImageHeight
*/
ImageHeight(20497),
/**
* Representing QTextFormat:: ImageQuality
*/
ImageQuality(20500),
/**
* Representing QTextFormat:: FullWidthSelection
*/
FullWidthSelection(24576),
/**
* Representing QTextFormat:: PageBreakPolicy
*/
PageBreakPolicy(28672),
/**
* Representing QTextFormat:: UserProperty
*/
UserProperty(1048576);
static {
QtJambi_LibraryUtilities.initialize();
}
private Property(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 Property resolve(int value) {
switch (value) {
case 0: return ObjectIndex;
case 2048: return CssFloat;
case 2049: return LayoutDirection;
case 2064: return OutlinePen;
case 2080: return BackgroundBrush;
case 2081: return ForegroundBrush;
case 2083: return BackgroundImageUrl;
case 4112: return BlockAlignment;
case 4144: return BlockTopMargin;
case 4145: return BlockBottomMargin;
case 4146: return BlockLeftMargin;
case 4147: return BlockRightMargin;
case 4148: return TextIndent;
case 4149: return TabPositions;
case 4160: return BlockIndent;
case 4168: return LineHeight;
case 4169: return LineHeightType;
case 4176: return BlockNonBreakableLines;
case 4192: return BlockTrailingHorizontalRulerWidth;
case 4208: return HeadingLevel;
case 4224: return BlockQuoteLevel;
case 4240: return BlockCodeLanguage;
case 4241: return BlockCodeFence;
case 4256: return BlockMarker;
case 8160: return FontCapitalization;
case 8161: return FontLetterSpacing;
case 8162: return FontWordSpacing;
case 8163: return FontStyleHint;
case 8164: return FontStyleStrategy;
case 8165: return FontKerning;
case 8166: return FontHintingPreference;
case 8167: return FontFamilies;
case 8168: return FontStyleName;
case 8169: return FontLetterSpacingType;
case 8170: return FontStretch;
case 8192: return FontFamily;
case 8193: return FontPointSize;
case 8194: return FontSizeAdjustment;
case 8195: return FontWeight;
case 8196: return FontItalic;
case 8197: return FontUnderline;
case 8198: return FontOverline;
case 8199: return FontStrikeOut;
case 8200: return FontFixedPitch;
case 8201: return FontPixelSize;
case 8224: return TextUnderlineColor;
case 8225: return TextVerticalAlignment;
case 8226: return TextOutline;
case 8227: return TextUnderlineStyle;
case 8228: return TextToolTip;
case 8229: return TextSuperScriptBaseline;
case 8230: return TextSubScriptBaseline;
case 8231: return TextBaselineOffset;
case 8240: return IsAnchor;
case 8241: return AnchorHref;
case 8242: return AnchorName;
case 8243: return OldFontLetterSpacingType;
case 8244: return OldFontStretch;
case 8208: return OldTextUnderlineColor;
case 12032: return ObjectType;
case 12288: return ListStyle;
case 12289: return ListIndent;
case 12290: return ListNumberPrefix;
case 12291: return ListNumberSuffix;
case 12292: return ListStart;
case 16384: return FrameBorder;
case 16385: return FrameMargin;
case 16386: return FramePadding;
case 16387: return FrameWidth;
case 16388: return FrameHeight;
case 16389: return FrameTopMargin;
case 16390: return FrameBottomMargin;
case 16391: return FrameLeftMargin;
case 16392: return FrameRightMargin;
case 16393: return FrameBorderBrush;
case 16400: return FrameBorderStyle;
case 16640: return TableColumns;
case 16641: return TableColumnWidthConstraints;
case 16642: return TableCellSpacing;
case 16643: return TableCellPadding;
case 16644: return TableHeaderRowCount;
case 16645: return TableBorderCollapse;
case 18448: return TableCellRowSpan;
case 18449: return TableCellColumnSpan;
case 18450: return TableCellTopPadding;
case 18451: return TableCellBottomPadding;
case 18452: return TableCellLeftPadding;
case 18453: return TableCellRightPadding;
case 18454: return TableCellTopBorder;
case 18455: return TableCellBottomBorder;
case 18456: return TableCellLeftBorder;
case 18457: return TableCellRightBorder;
case 18458: return TableCellTopBorderStyle;
case 18459: return TableCellBottomBorderStyle;
case 18460: return TableCellLeftBorderStyle;
case 18461: return TableCellRightBorderStyle;
case 18462: return TableCellTopBorderBrush;
case 18463: return TableCellBottomBorderBrush;
case 18464: return TableCellLeftBorderBrush;
case 18465: return TableCellRightBorderBrush;
case 20480: return ImageName;
case 20481: return ImageTitle;
case 20482: return ImageAltText;
case 20496: return ImageWidth;
case 20497: return ImageHeight;
case 20500: return ImageQuality;
case 24576: return FullWidthSelection;
case 28672: return PageBreakPolicy;
case 1048576: return UserProperty;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QTextFormat:: QTextFormat()
*/
public QTextFormat(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTextFormat instance);
/**
* See QTextFormat:: QTextFormat(QTextFormat)
*/
public QTextFormat(io.qt.gui.@NonNull QTextFormat rhs){
super((QPrivateConstructor)null);
initialize_native(this, rhs);
}
private native static void initialize_native(QTextFormat instance, io.qt.gui.QTextFormat rhs);
/**
* See QTextFormat:: QTextFormat(int)
*/
public QTextFormat(int type){
super((QPrivateConstructor)null);
initialize_native(this, type);
}
private native static void initialize_native(QTextFormat instance, int type);
/**
* See QTextFormat:: background()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush background(){
return background_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush background_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: boolProperty(int)const
*/
@QtUninvokable
public final boolean boolProperty(int propertyId){
return boolProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native boolean boolProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: brushProperty(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush brushProperty(int propertyId){
return brushProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native io.qt.gui.QBrush brushProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: clearBackground()
*/
@QtUninvokable
public final void clearBackground(){
clearBackground_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearBackground_native(long __this__nativeId);
/**
* See QTextFormat:: clearForeground()
*/
@QtUninvokable
public final void clearForeground(){
clearForeground_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearForeground_native(long __this__nativeId);
/**
* See QTextFormat:: clearProperty(int)
*/
@QtUninvokable
public final void clearProperty(int propertyId){
clearProperty_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native void clearProperty_native_int(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: colorProperty(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QColor colorProperty(int propertyId){
return colorProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native io.qt.gui.QColor colorProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: doubleProperty(int)const
*/
@QtUninvokable
public final double doubleProperty(int propertyId){
return doubleProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native double doubleProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: foreground()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush foreground(){
return foreground_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush foreground_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: hasProperty(int)const
*/
@QtUninvokable
public final boolean hasProperty(int propertyId){
return hasProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native boolean hasProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: intProperty(int)const
*/
@QtUninvokable
public final int intProperty(int propertyId){
return intProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native int intProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: isBlockFormat()const
*/
@QtUninvokable
public final boolean isBlockFormat(){
return isBlockFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isBlockFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isCharFormat()const
*/
@QtUninvokable
public final boolean isCharFormat(){
return isCharFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCharFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isEmpty()const
*/
@QtUninvokable
public final boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEmpty_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isFrameFormat()const
*/
@QtUninvokable
public final boolean isFrameFormat(){
return isFrameFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFrameFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isImageFormat()const
*/
@QtUninvokable
public final boolean isImageFormat(){
return isImageFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isImageFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isListFormat()const
*/
@QtUninvokable
public final boolean isListFormat(){
return isListFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isListFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isTableCellFormat()const
*/
@QtUninvokable
public final boolean isTableCellFormat(){
return isTableCellFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isTableCellFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isTableFormat()const
*/
@QtUninvokable
public final boolean isTableFormat(){
return isTableFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isTableFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isValid()const
*/
@QtDeclaredFinal
@QtUninvokable
public boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: layoutDirection()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull LayoutDirection layoutDirection(){
return io.qt.core.Qt.LayoutDirection.resolve(layoutDirection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int layoutDirection_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: lengthProperty(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextLength lengthProperty(int propertyId){
return lengthProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native io.qt.gui.QTextLength lengthProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: lengthVectorProperty(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList lengthVectorProperty(int propertyId){
return lengthVectorProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native io.qt.core.QList lengthVectorProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: merge(QTextFormat)
*/
@QtUninvokable
public final void merge(io.qt.gui.@NonNull QTextFormat other){
merge_native_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void merge_native_cref_QTextFormat(long __this__nativeId, long other);
/**
* See QTextFormat:: objectIndex()const
*/
@QtUninvokable
public final int objectIndex(){
return objectIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int objectIndex_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: objectType()const
*/
@QtUninvokable
public final int objectType(){
return objectType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int objectType_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QTextFormat)
*/
@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 QTextFormat:: operator=(QTextFormat)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QTextFormat rhs){
assign_native_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native void assign_native_cref_QTextFormat(long __this__nativeId, long rhs);
/**
* See QTextFormat:: operator==(QTextFormat)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QTextFormat rhs){
return equals_native_cref_QTextFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QTextFormat_constfct(long __this__nativeId, long rhs);
/**
* See operator>>(QDataStream&, QTextFormat&)
*/
@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 QTextFormat:: penProperty(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPen penProperty(int propertyId){
return penProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native io.qt.gui.QPen penProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: properties()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QMap properties(){
return properties_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QMap properties_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: property(int)const
*/
@QtUninvokable
public final java.lang.Object property(int propertyId){
return property_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native java.lang.Object property_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: propertyCount()const
*/
@QtUninvokable
public final int propertyCount(){
return propertyCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int propertyCount_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: setBackground(QBrush)
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QBrush brush){
setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setBackground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QTextFormat:: setForeground(QBrush)
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QBrush brush){
setForeground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setForeground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QTextFormat:: setLayoutDirection(Qt::LayoutDirection)
*/
@QtUninvokable
public final void setLayoutDirection(io.qt.core.Qt.@NonNull LayoutDirection direction){
setLayoutDirection_native_Qt_LayoutDirection(QtJambi_LibraryUtilities.internal.nativeId(this), direction.value());
}
@QtUninvokable
private native void setLayoutDirection_native_Qt_LayoutDirection(long __this__nativeId, int direction);
/**
* See QTextFormat:: setObjectIndex(int)
*/
@QtUninvokable
public final void setObjectIndex(int object){
setObjectIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), object);
}
@QtUninvokable
private native void setObjectIndex_native_int(long __this__nativeId, int object);
/**
* See QTextFormat:: setObjectType(int)
*/
@QtUninvokable
public final void setObjectType(int type){
setObjectType_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), type);
}
@QtUninvokable
private native void setObjectType_native_int(long __this__nativeId, int type);
/**
* See QTextFormat:: setProperty(int, QList<QTextLength>)
*/
@QtUninvokable
public final void setProperty(int propertyId, java.util.@NonNull Collection extends io.qt.gui.@NonNull QTextLength> lengths){
setProperty_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId, lengths);
}
@QtUninvokable
private native void setProperty_native_int_cref_QList(long __this__nativeId, int propertyId, java.util.Collection extends io.qt.gui.QTextLength> lengths);
/**
* See QTextFormat:: setProperty(int, QVariant)
*/
@QtUninvokable
public final void setProperty(int propertyId, java.lang.Object value){
setProperty_native_int_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId, value);
}
@QtUninvokable
private native void setProperty_native_int_cref_QVariant(long __this__nativeId, int propertyId, java.lang.Object value);
/**
* See QTextFormat:: stringProperty(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String stringProperty(int propertyId){
return stringProperty_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyId);
}
@QtUninvokable
private native java.lang.String stringProperty_native_int_constfct(long __this__nativeId, int propertyId);
/**
* See QTextFormat:: swap(QTextFormat&)
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull QTextFormat other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QTextFormat(long __this__nativeId, long other);
/**
* See QTextFormat:: toBlockFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextBlockFormat toBlockFormat(){
return toBlockFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextBlockFormat toBlockFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toCharFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCharFormat toCharFormat(){
return toCharFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextCharFormat toCharFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toFrameFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextFrameFormat toFrameFormat(){
return toFrameFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrameFormat toFrameFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toImageFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextImageFormat toImageFormat(){
return toImageFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextImageFormat toImageFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toListFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextListFormat toListFormat(){
return toListFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextListFormat toListFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toTableCellFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextTableCellFormat toTableCellFormat(){
return toTableCellFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextTableCellFormat toTableCellFormat_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: toTableFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextTableFormat toTableFormat(){
return toTableFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextTableFormat toTableFormat_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final int type(){
return type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int type_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTextFormat(QPrivateConstructor p) { super(p); }
/**
* See QTextFormat:: operator==(QTextFormat)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QTextFormat) {
return equals((io.qt.gui.QTextFormat) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QTextFormat)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QTextFormat)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QTextFormat:: QTextFormat(QTextFormat)
*/
@QtUninvokable
@Override
public QTextFormat clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QTextFormat clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.core.Qt.@NonNull BrushStyle brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QColor brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.core.Qt.@NonNull GlobalColor brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QPixmap brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QImage brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QGradient brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.core.Qt.@NonNull BrushStyle brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QColor brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.core.Qt.@NonNull GlobalColor brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QPixmap brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QImage brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QGradient brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
}