io.qt.gui.rhi.QRhiDriverInfo Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the physical device, adapter, or graphics API implementation that is used by an initialized QRhi
* Java wrapper for Qt class QRhiDriverInfo
*/
public class QRhiDriverInfo extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QRhiDriverInfo::DeviceType
*/
public enum DeviceType implements QtEnumerator {
/**
* Representing QRhiDriverInfo:: UnknownDevice
*/
UnknownDevice(0),
/**
* Representing QRhiDriverInfo:: IntegratedDevice
*/
IntegratedDevice(1),
/**
* Representing QRhiDriverInfo:: DiscreteDevice
*/
DiscreteDevice(2),
/**
* Representing QRhiDriverInfo:: ExternalDevice
*/
ExternalDevice(3),
/**
* Representing QRhiDriverInfo:: VirtualDevice
*/
VirtualDevice(4),
/**
* Representing QRhiDriverInfo:: CpuDevice
*/
CpuDevice(5);
static {
QtJambi_LibraryUtilities.initialize();
}
private DeviceType(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 DeviceType resolve(int value) {
switch (value) {
case 0: return UnknownDevice;
case 1: return IntegratedDevice;
case 2: return DiscreteDevice;
case 3: return ExternalDevice;
case 4: return VirtualDevice;
case 5: return CpuDevice;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QRhiDriverInfo:: QRhiDriverInfo()
*/
public QRhiDriverInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiDriverInfo instance);
/**
* See QRhiDriverInfo:: QRhiDriverInfo(QRhiDriverInfo)
*/
public QRhiDriverInfo(io.qt.gui.rhi.@StrictNonNull QRhiDriverInfo other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiDriverInfo instance, io.qt.gui.rhi.QRhiDriverInfo other);
/**
* See QRhiDriverInfo:: QRhiDriverInfo{QByteArray, quint64, quint64, QRhiDriverInfo::DeviceType}
*/
public QRhiDriverInfo(io.qt.core.@NonNull QByteArray deviceName, long deviceId, long vendorId, io.qt.gui.rhi.QRhiDriverInfo.@NonNull DeviceType deviceType){
super((QPrivateConstructor)null);
initialize_native(this, deviceName, deviceId, vendorId, deviceType);
}
private native static void initialize_native(QRhiDriverInfo instance, io.qt.core.QByteArray deviceName, long deviceId, long vendorId, io.qt.gui.rhi.QRhiDriverInfo.DeviceType deviceType);
/**
*
*/
@QtUninvokable
public final void setDeviceId(long deviceId){
setDeviceId_native_quint64(QtJambi_LibraryUtilities.internal.nativeId(this), deviceId);
}
@QtUninvokable
private native void setDeviceId_native_quint64(long __this__nativeId, long deviceId);
/**
*
*/
@QtUninvokable
public final long deviceId(){
return deviceId_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long deviceId_native(long __this__nativeId);
/**
* See QRhiDriverInfo:: deviceName
*/
@QtUninvokable
public final void setDeviceName(io.qt.core.@NonNull QByteArray deviceName){
setDeviceName_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(deviceName));
}
@QtUninvokable
private native void setDeviceName_native_cref_QByteArray(long __this__nativeId, long deviceName);
/**
* See QRhiDriverInfo:: deviceName
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray deviceName(){
return deviceName_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray deviceName_native(long __this__nativeId);
/**
* See QRhiDriverInfo:: deviceType
*/
@QtUninvokable
public final void setDeviceType(io.qt.gui.rhi.QRhiDriverInfo.@NonNull DeviceType deviceType){
setDeviceType_native_cref_QRhiDriverInfo_DeviceType(QtJambi_LibraryUtilities.internal.nativeId(this), deviceType.value());
}
@QtUninvokable
private native void setDeviceType_native_cref_QRhiDriverInfo_DeviceType(long __this__nativeId, int deviceType);
/**
* See QRhiDriverInfo:: deviceType
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiDriverInfo.@NonNull DeviceType deviceType(){
return io.qt.gui.rhi.QRhiDriverInfo.DeviceType.resolve(deviceType_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int deviceType_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void setVendorId(long vendorId){
setVendorId_native_quint64(QtJambi_LibraryUtilities.internal.nativeId(this), vendorId);
}
@QtUninvokable
private native void setVendorId_native_quint64(long __this__nativeId, long vendorId);
/**
*
*/
@QtUninvokable
public final long vendorId(){
return vendorId_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long vendorId_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiDriverInfo(QPrivateConstructor p) { super(p); }
/**
* See operator<<(QDebug, QRhiDriverInfo)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QRhiDriverInfo:: QRhiDriverInfo(QRhiDriverInfo)
*/
@QtUninvokable
@Override
public QRhiDriverInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiDriverInfo clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QRhiDriverInfo(io.qt.core.QByteArray, long, long, io.qt.gui.rhi.QRhiDriverInfo.DeviceType)}.
*/
public QRhiDriverInfo(byte @NonNull[] deviceName, long deviceId, long vendorId, io.qt.gui.rhi.QRhiDriverInfo.@NonNull DeviceType deviceType) {
this(new io.qt.core.QByteArray(deviceName), deviceId, vendorId, deviceType);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #deviceId()} instead.
*/
@QtUninvokable
public final long getDeviceId() {
return deviceId();
}
/**
* Overloaded function for {@link #setDeviceName(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setDeviceName(byte @NonNull[] deviceName) {
setDeviceName(new io.qt.core.QByteArray(deviceName));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #deviceName()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray getDeviceName() {
return deviceName();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #deviceType()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiDriverInfo.@NonNull DeviceType getDeviceType() {
return deviceType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #vendorId()} instead.
*/
@QtUninvokable
public final long getVendorId() {
return vendorId();
}
}