io.qt.gui.QPlatformSurfaceEvent Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* 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 io.qt.QtEnumerator {
SurfaceCreated(0),
SurfaceAboutToBeDestroyed(1);
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 SurfaceEventType resolve(int value) {
switch (value) {
case 0: return SurfaceCreated;
case 1: return SurfaceAboutToBeDestroyed;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType)
*/
public QPlatformSurfaceEvent(io.qt.gui.QPlatformSurfaceEvent.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::QPlatformSurfaceEvent(QPlatformSurfaceEvent)
*/
protected QPlatformSurfaceEvent(io.qt.gui.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);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QPlatformSurfaceEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QPlatformSurfaceEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QPlatformSurfaceEvent(long __this__nativeId, long other);
/**
* See QPlatformSurfaceEvent::surfaceEventType()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPlatformSurfaceEvent.SurfaceEventType surfaceEventType(){
return io.qt.gui.QPlatformSurfaceEvent.SurfaceEventType.resolve(surfaceEventType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int surfaceEventType_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QPlatformSurfaceEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPlatformSurfaceEvent clone_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected final void setSurfaceEventType(io.qt.gui.QPlatformSurfaceEvent.SurfaceEventType surfaceEventType){
setSurfaceEventType_native_cref_QPlatformSurfaceEvent_SurfaceEventType(QtJambi_LibraryUtilities.internal.nativeId(this), surfaceEventType.value());
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QPlatformSurfaceEvent(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy