io.qt.gui.QTextFrame Maven / Gradle / Ivy
package io.qt.gui;
/**
* 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.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 io.qt.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::atEnd()const
*/
@io.qt.QtUninvokable
public final boolean atEnd(){
return atEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean atEnd_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator::currentBlock()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextBlock currentBlock(){
return currentBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextBlock currentBlock_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator::currentFrame()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrame currentFrame(){
return currentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrame currentFrame_native_constfct(long __this__nativeId);
/**
* See QTextFrame::iterator::operator++()
*/
@io.qt.QtUninvokable
public final void next(){
next_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void next_native(long __this__nativeId);
/**
* See QTextFrame::iterator::operator--()
*/
@io.qt.QtUninvokable
public final void previous(){
previous_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void previous_native(long __this__nativeId);
/**
* See QTextFrame::iterator::operator==(QTextFrame::iterator)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.gui.QTextFrame.iterator o){
return operator_equal_native_cref_QTextFrame_iterator_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(o));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QTextFrame_iterator_constfct(long __this__nativeId, long o);
/**
* See QTextFrame::iterator::parentFrame()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrame parentFrame(){
return parentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrame parentFrame_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected iterator(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QTextFrame.iterator) {
return operator_equal((io.qt.gui.QTextFrame.iterator) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
public iterator clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native iterator clone_native(long __this_nativeId);
}
/**
* See QTextFrame::QTextFrame(QTextDocument*)
*/
public QTextFrame(io.qt.gui.QTextDocument doc){
super((QPrivateConstructor)null);
initialize_native(this, doc);
}
private native static void initialize_native(QTextFrame instance, io.qt.gui.QTextDocument doc);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrame.iterator begin(){
return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrame.iterator begin_native_constfct(long __this__nativeId);
/**
* See QTextFrame::childFrames()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList childFrames(){
return childFrames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList childFrames_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrame.iterator end(){
return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrame.iterator end_native_constfct(long __this__nativeId);
/**
* See QTextFrame::firstCursorPosition()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextCursor firstCursorPosition(){
return firstCursorPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextCursor firstCursorPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame::firstPosition()const
*/
@io.qt.QtUninvokable
public final int firstPosition(){
return firstPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int firstPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame::frameFormat()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrameFormat frameFormat(){
return frameFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrameFormat frameFormat_native_constfct(long __this__nativeId);
/**
* See QTextFrame::lastCursorPosition()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextCursor lastCursorPosition(){
return lastCursorPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextCursor lastCursorPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame::lastPosition()const
*/
@io.qt.QtUninvokable
public final int lastPosition(){
return lastPosition_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int lastPosition_native_constfct(long __this__nativeId);
/**
* See QTextFrame::parentFrame()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTextFrame parentFrame(){
return parentFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTextFrame parentFrame_native_constfct(long __this__nativeId);
/**
* See QTextFrame::setFrameFormat(QTextFrameFormat)
*/
@io.qt.QtUninvokable
public final void setFrameFormat(io.qt.gui.QTextFrameFormat format){
setFrameFormat_native_cref_QTextFrameFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@io.qt.QtUninvokable
private native void setFrameFormat_native_cref_QTextFrameFormat(long __this__nativeId, long format);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QTextFrame(QPrivateConstructor p) { super(p); }
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
}