io.qt.qt3d.render.QViewport Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* A viewport on the Qt3D Scene
* Java wrapper for Qt class Qt3DRender::QViewport
*/
public class QViewport extends io.qt.qt3d.render.QFrameGraphNode
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QViewport.class);
/**
* See Qt3DRender::QViewport:: gammaChanged(float)
*/
@QtPropertyNotify(name="gamma")
public final @NonNull Signal1 gammaChanged = new Signal1<>();
/**
* See Qt3DRender::QViewport:: normalizedRectChanged(QRectF)
*/
@QtPropertyNotify(name="normalizedRect")
public final @NonNull Signal1 normalizedRectChanged = new Signal1<>();
/**
* See Qt3DRender::QViewport:: QViewport(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QViewport(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QViewport instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QViewport:: gamma()const
* @return
*/
@QtPropertyReader(name="gamma")
@QtUninvokable
public final float gamma(){
return gamma_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float gamma_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QViewport:: normalizedRect()const
* @return
*/
@QtPropertyReader(name="normalizedRect")
@QtUninvokable
public final io.qt.core.@NonNull QRectF normalizedRect(){
return normalizedRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF normalizedRect_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QViewport:: setGamma(float)
* @param gamma
*/
@QtPropertyWriter(name="gamma")
public final void setGamma(float gamma){
setGamma_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), gamma);
}
private native void setGamma_native_float(long __this__nativeId, float gamma);
/**
* See Qt3DRender::QViewport:: setNormalizedRect(QRectF)
* @param normalizedRect
*/
@QtPropertyWriter(name="normalizedRect")
public final void setNormalizedRect(io.qt.core.@NonNull QRectF normalizedRect){
setNormalizedRect_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(normalizedRect));
}
private native void setNormalizedRect_native_cref_QRectF(long __this__nativeId, long normalizedRect);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QViewport(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QViewport(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QViewport instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QViewport(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QViewport() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #gamma()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getGamma() {
return gamma();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #normalizedRect()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRectF getNormalizedRect() {
return normalizedRect();
}
/**
* Overloaded function for {@link #setNormalizedRect(io.qt.core.QRectF)}.
*/
public final void setNormalizedRect(io.qt.core.@NonNull QRect normalizedRect) {
setNormalizedRect(new io.qt.core.QRectF(normalizedRect));
}
}