io.qt.help.QHelpLink Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-help Show documentation
Show all versions of qtjambi-help Show documentation
Classes for integrating documentation into applications, similar to Qt Assistant.
package io.qt.help;
import io.qt.*;
/**
* Struct provides the data associated with a help link
* Java wrapper for Qt class QHelpLink
*/
public final class QHelpLink extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QHelpLink:: QHelpLink()
*/
public QHelpLink(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QHelpLink instance);
/**
* See QHelpLink:: QHelpLink(QHelpLink)
*/
public QHelpLink(io.qt.help.@NonNull QHelpLink other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QHelpLink instance, io.qt.help.QHelpLink other);
/**
* See QHelpLink:: QHelpLink{QUrl, QString}
*/
public QHelpLink(io.qt.core.@NonNull QUrl url, java.lang.@NonNull String title){
super((QPrivateConstructor)null);
initialize_native(this, url, title);
}
private native static void initialize_native(QHelpLink instance, io.qt.core.QUrl url, java.lang.String title);
/**
* Of the link
* See QHelpLink:: title
*/
@QtUninvokable
public final void setTitle(java.lang.@NonNull String title){
setTitle_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), title);
}
@QtUninvokable
private native void setTitle_native_cref_QString(long __this__nativeId, java.lang.String title);
/**
* Of the link
* See QHelpLink:: title
*/
@QtUninvokable
public final java.lang.@NonNull String title(){
return title_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String title_native(long __this__nativeId);
/**
* Target url of the link
* See QHelpLink:: url
*/
@QtUninvokable
public final void setUrl(io.qt.core.@NonNull QUrl url){
setUrl_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@QtUninvokable
private native void setUrl_native_cref_QUrl(long __this__nativeId, long url);
/**
* Target url of the link
* See QHelpLink:: url
*/
@QtUninvokable
public final io.qt.core.@NonNull QUrl url(){
return url_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl url_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QHelpLink(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QHelpLink:: QHelpLink(QHelpLink)
*/
@QtUninvokable
@Override
public QHelpLink clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QHelpLink clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QHelpLink(io.qt.core.QUrl, java.lang.String)}.
*/
public QHelpLink(java.lang.@NonNull String url, java.lang.@NonNull String title) {
this(new io.qt.core.QUrl(url), title);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #title()} instead.
*/
@QtUninvokable
public final java.lang.@NonNull String getTitle() {
return title();
}
/**
* Overloaded function for {@link #setUrl(io.qt.core.QUrl)}.
*/
@QtUninvokable
public final void setUrl(java.lang.@NonNull String url) {
setUrl(new io.qt.core.QUrl(url));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #url()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QUrl getUrl() {
return url();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy