io.qt.gui.QPlatformSurfaceEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* Used to notify about native platform surface events
* Java wrapper for Qt class QPlatformSurfaceEvent
*/
public class QPlatformSurfaceEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QPlatformSurfaceEvent::SurfaceEventType
*/
public enum SurfaceEventType implements QtEnumerator {
/**
* Representing QPlatformSurfaceEvent:: SurfaceCreated
*/
SurfaceCreated(0),
/**
* Representing QPlatformSurfaceEvent:: SurfaceAboutToBeDestroyed
*/
SurfaceAboutToBeDestroyed(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private SurfaceEventType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull SurfaceEventType resolve(int value) {
switch (value) {
case 0: return SurfaceCreated;
case 1: return SurfaceAboutToBeDestroyed;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QPlatformSurfaceEvent:: QPlatformSurfaceEvent(QPlatformSurfaceEvent)
*/
protected QPlatformSurfaceEvent(io.qt.gui.@StrictNonNull QPlatformSurfaceEvent arg__1){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
initialize_native(this, arg__1);
}
private native static void initialize_native(QPlatformSurfaceEvent instance, io.qt.gui.QPlatformSurfaceEvent arg__1);
/**
* See QPlatformSurfaceEvent:: QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType)
*/
public QPlatformSurfaceEvent(io.qt.gui.QPlatformSurfaceEvent.@NonNull SurfaceEventType surfaceEventType){
super((QPrivateConstructor)null);
initialize_native(this, surfaceEventType);
}
private native static void initialize_native(QPlatformSurfaceEvent instance, io.qt.gui.QPlatformSurfaceEvent.SurfaceEventType surfaceEventType);
/**
* See QPlatformSurfaceEvent:: operator=(QPlatformSurfaceEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QPlatformSurfaceEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QPlatformSurfaceEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QPlatformSurfaceEvent(long __this__nativeId, long other);
/**
* See QPlatformSurfaceEvent:: surfaceEventType()const
*/
@QtUninvokable
public final io.qt.gui.QPlatformSurfaceEvent.@NonNull SurfaceEventType surfaceEventType(){
return io.qt.gui.QPlatformSurfaceEvent.SurfaceEventType.resolve(surfaceEventType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int surfaceEventType_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QPlatformSurfaceEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPlatformSurfaceEvent clone_native_constfct(long __this__nativeId);
/**
* See QPlatformSurfaceEvent:: m_surfaceEventType
*/
@QtUninvokable
protected final void setSurfaceEventType(io.qt.gui.QPlatformSurfaceEvent.@NonNull SurfaceEventType surfaceEventType){
setSurfaceEventType_native_cref_QPlatformSurfaceEvent_SurfaceEventType(QtJambi_LibraryUtilities.internal.nativeId(this), surfaceEventType.value());
}
@QtUninvokable
private native void setSurfaceEventType_native_cref_QPlatformSurfaceEvent_SurfaceEventType(long __this__nativeId, int surfaceEventType);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPlatformSurfaceEvent(QPrivateConstructor p) { super(p); }
/**
* @deprecated Use {@link #assign(io.qt.gui.QPlatformSurfaceEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QPlatformSurfaceEvent other) {
assign(other);
}
}