io.qt.gui.QTextImageFormat Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Formatting information for images in a QTextDocument
* Java wrapper for Qt class QTextImageFormat
*/
public class QTextImageFormat extends io.qt.gui.QTextCharFormat
implements java.lang.Cloneable
{
/**
* See QTextImageFormat:: QTextImageFormat()
*/
public QTextImageFormat(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTextImageFormat instance);
/**
* See QTextImageFormat:: QTextImageFormat(QTextFormat)
* @param format
*/
protected QTextImageFormat(io.qt.gui.@NonNull QTextFormat format){
super((QPrivateConstructor)null);
initialize_native(this, format);
}
private native static void initialize_native(QTextImageFormat instance, io.qt.gui.QTextFormat format);
/**
* See QTextImageFormat:: QTextImageFormat(QTextImageFormat)
* @param other
*/
public QTextImageFormat(io.qt.gui.@NonNull QTextImageFormat other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QTextImageFormat instance, io.qt.gui.QTextImageFormat other);
/**
* See QTextImageFormat:: height()const
* @return
*/
@QtUninvokable
public final double height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double height_native_constfct(long __this__nativeId);
/**
* See QTextFormat:: isValid()const
* @return
*/
@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 QTextImageFormat:: maximumWidth()const
* @return
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextLength maximumWidth(){
return maximumWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextLength maximumWidth_native_constfct(long __this__nativeId);
/**
* See QTextImageFormat:: name()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String name(){
return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String name_native_constfct(long __this__nativeId);
/**
* See QTextImageFormat:: quality()const
* @return
*/
@QtUninvokable
public final int quality(){
return quality_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int quality_native_constfct(long __this__nativeId);
/**
* See QTextImageFormat:: setHeight(qreal)
* @param height
*/
@QtUninvokable
public final void setHeight(double height){
setHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height);
}
@QtUninvokable
private native void setHeight_native_qreal(long __this__nativeId, double height);
/**
* See QTextImageFormat:: setMaximumWidth(QTextLength)
* @param maxWidth
*/
@QtUninvokable
public final void setMaximumWidth(io.qt.gui.@NonNull QTextLength maxWidth){
setMaximumWidth_native_QTextLength(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(maxWidth));
}
@QtUninvokable
private native void setMaximumWidth_native_QTextLength(long __this__nativeId, long maxWidth);
/**
* See QTextImageFormat:: setName(QString)
* @param name
*/
@QtUninvokable
public final void setName(java.lang.@NonNull String name){
setName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native void setName_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QTextImageFormat:: setQuality()
*
* @deprecated Pass a quality value, the default is 100
*/
@Deprecated
@QtUninvokable
public final void setQuality(){
setQuality_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native void setQuality_native(long __this__nativeId);
/**
* See QTextImageFormat:: setQuality(int)
* @param quality
*/
@QtUninvokable
public final void setQuality(int quality){
setQuality_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), quality);
}
@QtUninvokable
private native void setQuality_native_int(long __this__nativeId, int quality);
/**
* See QTextImageFormat:: setWidth(qreal)
* @param width
*/
@QtUninvokable
public final void setWidth(double width){
setWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setWidth_native_qreal(long __this__nativeId, double width);
/**
* See swap(QTextImageFormat&, QTextImageFormat&)
* @param value2
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull QTextImageFormat value2){
java.util.Objects.requireNonNull(value2, "Argument 'value2': null not expected.");
swap_native_ref_QTextImageFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2));
}
@QtUninvokable
private native void swap_native_ref_QTextImageFormat(long __this__nativeId, long value2);
/**
* See QTextImageFormat:: width()const
* @return
*/
@QtUninvokable
public final double width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double width_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTextImageFormat(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public QTextImageFormat clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QTextImageFormat clone_native(long __this_nativeId);
}