io.qt.gui.QTextListFormat Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Formatting information for lists in a QTextDocument
* Java wrapper for Qt class QTextListFormat
*/
public class QTextListFormat extends io.qt.gui.QTextFormat
implements java.lang.Cloneable
{
/**
* Java wrapper for Qt enum QTextListFormat::Style
*/
public enum Style implements QtEnumerator {
/**
* Representing QTextListFormat:: ListDisc
*/
ListDisc(-1),
/**
* Representing QTextListFormat:: ListCircle
*/
ListCircle(-2),
/**
* Representing QTextListFormat:: ListSquare
*/
ListSquare(-3),
/**
* Representing QTextListFormat:: ListDecimal
*/
ListDecimal(-4),
/**
* Representing QTextListFormat:: ListLowerAlpha
*/
ListLowerAlpha(-5),
/**
* Representing QTextListFormat:: ListUpperAlpha
*/
ListUpperAlpha(-6),
/**
* Representing QTextListFormat:: ListLowerRoman
*/
ListLowerRoman(-7),
/**
* Representing QTextListFormat:: ListUpperRoman
*/
ListUpperRoman(-8),
/**
* Representing QTextListFormat:: ListStyleUndefined
*/
ListStyleUndefined(0);
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 -1: return ListDisc;
case -2: return ListCircle;
case -3: return ListSquare;
case -4: return ListDecimal;
case -5: return ListLowerAlpha;
case -6: return ListUpperAlpha;
case -7: return ListLowerRoman;
case -8: return ListUpperRoman;
case 0: return ListStyleUndefined;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QTextListFormat:: QTextListFormat()
*/
public QTextListFormat(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTextListFormat instance);
/**
* See QTextListFormat:: QTextListFormat(QTextFormat)
*/
protected QTextListFormat(io.qt.gui.@NonNull QTextFormat fmt){
super((QPrivateConstructor)null);
initialize_native(this, fmt);
}
private native static void initialize_native(QTextListFormat instance, io.qt.gui.QTextFormat fmt);
/**
* See QTextListFormat:: QTextListFormat(QTextListFormat)
*/
public QTextListFormat(io.qt.gui.@NonNull QTextListFormat other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QTextListFormat instance, io.qt.gui.QTextListFormat other);
/**
* See QTextListFormat:: indent()const
*/
@QtUninvokable
public final int indent(){
return indent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int indent_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QTextListFormat:: numberPrefix()const
*/
@QtUninvokable
public final java.lang.@NonNull String numberPrefix(){
return numberPrefix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String numberPrefix_native_constfct(long __this__nativeId);
/**
* See QTextListFormat:: numberSuffix()const
*/
@QtUninvokable
public final java.lang.@NonNull String numberSuffix(){
return numberSuffix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String numberSuffix_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QTextListFormat)
*/
@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 operator>>(QDataStream&, QTextListFormat&)
*/
@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 QTextListFormat:: setIndent(int)
*/
@QtUninvokable
public final void setIndent(int indent){
setIndent_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), indent);
}
@QtUninvokable
private native void setIndent_native_int(long __this__nativeId, int indent);
/**
* See QTextListFormat:: setNumberPrefix(QString)
*/
@QtUninvokable
public final void setNumberPrefix(java.lang.@NonNull String numberPrefix){
setNumberPrefix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), numberPrefix);
}
@QtUninvokable
private native void setNumberPrefix_native_cref_QString(long __this__nativeId, java.lang.String numberPrefix);
/**
* See QTextListFormat:: setNumberSuffix(QString)
*/
@QtUninvokable
public final void setNumberSuffix(java.lang.@NonNull String numberSuffix){
setNumberSuffix_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), numberSuffix);
}
@QtUninvokable
private native void setNumberSuffix_native_cref_QString(long __this__nativeId, java.lang.String numberSuffix);
/**
* See QTextListFormat:: setStart(int)
*/
@QtUninvokable
public final void setStart(int indent){
setStart_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), indent);
}
@QtUninvokable
private native void setStart_native_int(long __this__nativeId, int indent);
/**
* See QTextListFormat:: setStyle(QTextListFormat::Style)
*/
@QtUninvokable
public final void setStyle(io.qt.gui.QTextListFormat.@NonNull Style style){
setStyle_native_QTextListFormat_Style(QtJambi_LibraryUtilities.internal.nativeId(this), style.value());
}
@QtUninvokable
private native void setStyle_native_QTextListFormat_Style(long __this__nativeId, int style);
/**
* See QTextListFormat:: start()const
*/
@QtUninvokable
public final int start(){
return start_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int start_native_constfct(long __this__nativeId);
/**
* See QTextListFormat:: style()const
*/
@QtUninvokable
public final io.qt.gui.QTextListFormat.@NonNull Style style(){
return io.qt.gui.QTextListFormat.Style.resolve(style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int style_native_constfct(long __this__nativeId);
/**
* See swap(QTextListFormat&, QTextListFormat&)
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull QTextListFormat value2){
java.util.Objects.requireNonNull(value2, "Argument 'value2': null not expected.");
swap_native_ref_QTextListFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2));
}
@QtUninvokable
private native void swap_native_ref_QTextListFormat(long __this__nativeId, long value2);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTextListFormat(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public QTextListFormat clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QTextListFormat clone_native(long __this_nativeId);
}