io.qt.pdf.QPdfLink Maven / Gradle / Ivy
Show all versions of qtjambi-pdf Show documentation
package io.qt.pdf;
import io.qt.*;
/**
* Defines a link between a region on a page (such as a hyperlink or a search result) and a destination (page, location on the page, and zoom level at which to view it)
* Java wrapper for Qt class QPdfLink
*/
public class QPdfLink 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(QPdfLink.class);
/**
*
*/
public QPdfLink(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPdfLink instance);
/**
* See QPdfLink:: QPdfLink(QPdfLink)
*/
public QPdfLink(io.qt.pdf.@NonNull QPdfLink other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QPdfLink instance, io.qt.pdf.QPdfLink other);
/**
* See QPdfLink:: contextAfter()const
*/
@QtPropertyReader(name="contextAfter")
@QtUninvokable
public final java.lang.@NonNull String contextAfter(){
return contextAfter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String contextAfter_native_constfct(long __this__nativeId);
/**
* See QPdfLink:: contextBefore()const
*/
@QtPropertyReader(name="contextBefore")
@QtUninvokable
public final java.lang.@NonNull String contextBefore(){
return contextBefore_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String contextBefore_native_constfct(long __this__nativeId);
/**
* See QPdfLink:: copyToClipboard(QClipboard::Mode)const
*/
public final void copyToClipboard(io.qt.gui.QClipboard.@NonNull Mode mode){
copyToClipboard_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
private native void copyToClipboard_native_QClipboard_Mode_constfct(long __this__nativeId, int mode);
/**
*
*/
@QtPropertyReader(name="valid")
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="location")
@QtUninvokable
public final io.qt.core.@NonNull QPointF location(){
return location_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF location_native_constfct(long __this__nativeId);
/**
* See QPdfLink:: operator=(QPdfLink)
*/
@QtUninvokable
public final void assign(io.qt.pdf.@NonNull QPdfLink other){
assign_native_cref_QPdfLink(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QPdfLink(long __this__nativeId, long other);
/**
* See operator==(QPdfLink, QPdfLink)
*/
@QtUninvokable
public final boolean equals(io.qt.pdf.@NonNull QPdfLink value2){
return equals_native_cref_QPdfLink(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2));
}
@QtUninvokable
private native boolean equals_native_cref_QPdfLink(long __this__nativeId, long value2);
/**
*
*/
@QtPropertyReader(name="page")
@QtUninvokable
public final int page(){
return page_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int page_native_constfct(long __this__nativeId);
/**
* See QPdfLink:: rectangles()const
*/
@QtPropertyReader(name="rectangles")
@QtUninvokable
public final io.qt.core.@NonNull QList rectangles(){
return rectangles_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList rectangles_native_constfct(long __this__nativeId);
/**
* See QPdfLink:: swap(QPdfLink&)
*/
@QtUninvokable
public final void swap(io.qt.pdf.@StrictNonNull QPdfLink other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QPdfLink(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QPdfLink(long __this__nativeId, long other);
/**
*
*/
public final java.lang.@NonNull String toString(){
return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native java.lang.String toString_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="url")
@QtUninvokable
public final io.qt.core.@NonNull QUrl url(){
return url_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl url_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="zoom")
@QtUninvokable
public final double zoom(){
return zoom_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double zoom_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPdfLink(QPrivateConstructor p) { super(p); }
/**
* See operator==(QPdfLink, QPdfLink)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.pdf.QPdfLink) {
return equals((io.qt.pdf.QPdfLink) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QPdfLink)
.
*/
@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 QPdfLink:: QPdfLink(QPdfLink)
*/
@QtUninvokable
@Override
public QPdfLink clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QPdfLink clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #contextAfter()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getContextAfter() {
return contextAfter();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #contextBefore()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getContextBefore() {
return contextBefore();
}
/**
* Overloaded function for {@link #copyToClipboard(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
public final void copyToClipboard() {
copyToClipboard(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isValid()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getValid() {
return isValid();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #location()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPointF getLocation() {
return location();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #page()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getPage() {
return page();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #rectangles()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QList getRectangles() {
return rectangles();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #url()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getUrl() {
return url();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #zoom()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getZoom() {
return zoom();
}
}