io.qt.webengine.core.QWebEngineNewWindowRequest Maven / Gradle / Ivy
Show all versions of qtjambi-webenginecore Show documentation
package io.qt.webengine.core;
import io.qt.*;
/**
* A utility type for the QWebEnginePage::newWindowRequested() signal
* Java wrapper for Qt class QWebEngineNewWindowRequest
* @since This class was introduced in Qt 6.2.
*/
public final class QWebEngineNewWindowRequest extends io.qt.core.QObject
{
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(QWebEngineNewWindowRequest.class);
/**
* Java wrapper for Qt enum QWebEngineNewWindowRequest::DestinationType
*/
public enum DestinationType implements QtEnumerator {
/**
* Representing QWebEngineNewWindowRequest:: InNewWindow
*/
InNewWindow(0),
/**
* Representing QWebEngineNewWindowRequest:: InNewTab
*/
InNewTab(1),
/**
* Representing QWebEngineNewWindowRequest:: InNewDialog
*/
InNewDialog(2),
/**
* Representing QWebEngineNewWindowRequest:: InNewBackgroundTab
*/
InNewBackgroundTab(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private DestinationType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DestinationType resolve(int value) {
switch (value) {
case 0: return InNewWindow;
case 1: return InNewTab;
case 2: return InNewDialog;
case 3: return InNewBackgroundTab;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineNewWindowRequest:: destination()const
* @return
*/
@QtPropertyReader(name="destination")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineNewWindowRequest.@NonNull DestinationType destination(){
return io.qt.webengine.core.QWebEngineNewWindowRequest.DestinationType.resolve(destination_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int destination_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest:: isUserInitiated()const
* @return
*/
@QtPropertyReader(name="userInitiated")
@QtPropertyConstant
@QtUninvokable
public final boolean isUserInitiated(){
return isUserInitiated_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUserInitiated_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest:: openIn(QWebEnginePage*)
* @param arg__1
*/
@QtUninvokable
public final void openIn(io.qt.webengine.core.@Nullable QWebEnginePage arg__1){
openIn_native_QWebEnginePage_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void openIn_native_QWebEnginePage_ptr(long __this__nativeId, long arg__1);
/**
* See QWebEngineNewWindowRequest:: requestedGeometry()const
* @return
*/
@QtPropertyReader(name="requestedGeometry")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QRect requestedGeometry(){
return requestedGeometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRect requestedGeometry_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest:: requestedUrl()const
* @return
*/
@QtPropertyReader(name="requestedUrl")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QUrl requestedUrl(){
return requestedUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl requestedUrl_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QWebEngineNewWindowRequest(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #destination()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineNewWindowRequest.@NonNull DestinationType getDestination() {
return destination();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isUserInitiated()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getUserInitiated() {
return isUserInitiated();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #requestedGeometry()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRect getRequestedGeometry() {
return requestedGeometry();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #requestedUrl()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getRequestedUrl() {
return requestedUrl();
}
}