io.qt.gui.QTextFrame Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Represents a frame in a QTextDocument
* Java wrapper for Qt class QTextFrame
*/
public class QTextFrame extends io.qt.gui.QTextObject
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTextFrame.class);
/**
* Iterator for reading the contents of a QTextFrame
* Java wrapper for Qt class QTextFrame::iterator
*/
public static class iterator extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QTextFrame::iterator:: iterator()
*/
public iterator(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(iterator instance);
/**
* See QTextFrame::iterator:: iterator(QTextFrame::iterator)
*/
public iterator(io.qt.gui.QTextFrame.@NonNull iterator other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(iterator instance, io.qt.gui.QTextFrame.iterator other);
/**
* See QTextFrame::iterator:: atEnd()const
*/
@QtUninvokable
public final boolean atEnd(){
return atEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean atEnd_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator:: currentBlock()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextBlock currentBlock(){
return currentBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextBlock currentBlock_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator:: currentFrame()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QTextFrame currentFrame(){
return currentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrame currentFrame_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator:: operator++()
*/
@QtUninvokable
public final void next(){
next_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void next_native(long __this__nativeId);
/**
* See QTextFrame::iterator:: operator--()
*/
@QtUninvokable
public final void previous(){
previous_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void previous_native(long __this__nativeId);
/**
* See QTextFrame::iterator:: operator==(QTextFrame::iterator)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.QTextFrame.@NonNull iterator o){
return equals_native_cref_QTextFrame_iterator_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(o));
}
@QtUninvokable
private native boolean equals_native_cref_QTextFrame_iterator_constfct(long __this__nativeId, long o);
/**
* See QTextFrame::iterator:: parentFrame()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QTextFrame parentFrame(){
return parentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrame parentFrame_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected iterator(QPrivateConstructor p) { super(p); }
/**
* See QTextFrame::iterator:: operator==(QTextFrame::iterator)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QTextFrame.iterator) {
return equals((io.qt.gui.QTextFrame.iterator) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QTextFrame::iterator)
.
*/
@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 QTextFrame::iterator:: iterator(QTextFrame::iterator)
*/
@QtUninvokable
@Override
public iterator clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native iterator clone_native(long __this_nativeId);
}
/**
* See QTextFrame:: QTextFrame(QTextDocument*)
*/
public QTextFrame(io.qt.gui.@Nullable QTextDocument doc){
super((QPrivateConstructor)null);
initialize_native(this, doc);
}
private native static void initialize_native(QTextFrame instance, io.qt.gui.QTextDocument doc);
/**
*
*/
@QtUninvokable
public final io.qt.gui.QTextFrame.@NonNull iterator begin(){
return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrame.iterator begin_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: childFrames()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList childFrames(){
return childFrames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList childFrames_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.gui.QTextFrame.@NonNull iterator end(){
return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrame.iterator end_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: firstCursorPosition()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCursor firstCursorPosition(){
return firstCursorPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextCursor firstCursorPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: firstPosition()const
*/
@QtUninvokable
public final int firstPosition(){
return firstPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int firstPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: frameFormat()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextFrameFormat frameFormat(){
return frameFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrameFormat frameFormat_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: lastCursorPosition()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCursor lastCursorPosition(){
return lastCursorPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextCursor lastCursorPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: lastPosition()const
*/
@QtUninvokable
public final int lastPosition(){
return lastPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int lastPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: parentFrame()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QTextFrame parentFrame(){
return parentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextFrame parentFrame_native_constfct(long __this__nativeId);
/**
* See QTextFrame:: setFrameFormat(QTextFrameFormat)
*/
@QtUninvokable
public final void setFrameFormat(io.qt.gui.@NonNull QTextFrameFormat format){
setFrameFormat_native_cref_QTextFrameFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void setFrameFormat_native_cref_QTextFrameFormat(long __this__nativeId, long format);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTextFrame(QPrivateConstructor p) { super(p); }
/**
* Checks for equality by checking object's hash code.
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if(other instanceof io.qt.gui.QTextFrame)
return hashCode()==other.hashCode();
else return super.equals(other); }
/**
* Returns the objects's hash code computed by qHash(QTextFrame)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
}