
io.qt.gui.QOpenGLPaintDevice Maven / Gradle / Ivy
package io.qt.gui;
/**
* Enables painting to an OpenGL context using QPainter
* Java wrapper for Qt class QOpenGLPaintDevice
*/
public class QOpenGLPaintDevice extends io.qt.QtObject
implements io.qt.gui.QPaintDevice
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QOpenGLPaintDevice::QOpenGLPaintDevice()
*/
public QOpenGLPaintDevice(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QOpenGLPaintDevice instance);
/**
* See QOpenGLPaintDevice::QOpenGLPaintDevice(QSize)
*/
public QOpenGLPaintDevice(io.qt.core.QSize size){
super((QPrivateConstructor)null);
initialize_native(this, size);
}
private native static void initialize_native(QOpenGLPaintDevice instance, io.qt.core.QSize size);
/**
* See QOpenGLPaintDevice::QOpenGLPaintDevice(int,int)
*/
public QOpenGLPaintDevice(int width, int height){
super((QPrivateConstructor)null);
initialize_native(this, width, height);
}
private native static void initialize_native(QOpenGLPaintDevice instance, int width, int height);
/**
* See QPaintDevice::colorCount()const
*/
@io.qt.QtUninvokable
public final int colorCount(){
return colorCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int colorCount_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::context()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QOpenGLContext context(){
return context_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QOpenGLContext context_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::depth()const
*/
@io.qt.QtUninvokable
public final int depth(){
return depth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int depth_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::devicePixelRatio()const
*/
@io.qt.QtUninvokable
public final double devicePixelRatio(){
return devicePixelRatio_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static double devicePixelRatio_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::devicePixelRatioF()const
*/
@io.qt.QtUninvokable
public final double devicePixelRatioF(){
return devicePixelRatioF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static double devicePixelRatioF_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::dotsPerMeterX()const
*/
@io.qt.QtUninvokable
public final double dotsPerMeterX(){
return dotsPerMeterX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double dotsPerMeterX_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::dotsPerMeterY()const
*/
@io.qt.QtUninvokable
public final double dotsPerMeterY(){
return dotsPerMeterY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double dotsPerMeterY_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::height()const
*/
@io.qt.QtUninvokable
public final int height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int height_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::heightMM()const
*/
@io.qt.QtUninvokable
public final int heightMM(){
return heightMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int heightMM_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::logicalDpiX()const
*/
@io.qt.QtUninvokable
public final int logicalDpiX(){
return logicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int logicalDpiX_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::logicalDpiY()const
*/
@io.qt.QtUninvokable
public final int logicalDpiY(){
return logicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int logicalDpiY_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::paintFlipped()const
*/
@io.qt.QtUninvokable
public final boolean paintFlipped(){
return paintFlipped_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean paintFlipped_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::paintingActive()const
*/
@io.qt.QtUninvokable
public final boolean paintingActive(){
return paintingActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean paintingActive_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::physicalDpiX()const
*/
@io.qt.QtUninvokable
public final int physicalDpiX(){
return physicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int physicalDpiX_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::physicalDpiY()const
*/
@io.qt.QtUninvokable
public final int physicalDpiY(){
return physicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int physicalDpiY_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::setDevicePixelRatio(qreal)
*/
@io.qt.QtUninvokable
public final void setDevicePixelRatio(double devicePixelRatio){
setDevicePixelRatio_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), devicePixelRatio);
}
@io.qt.QtUninvokable
private native void setDevicePixelRatio_native_qtjambireal(long __this__nativeId, double devicePixelRatio);
/**
* See QOpenGLPaintDevice::setDotsPerMeterX(qreal)
*/
@io.qt.QtUninvokable
public final void setDotsPerMeterX(double arg__1){
setDotsPerMeterX_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setDotsPerMeterX_native_qtjambireal(long __this__nativeId, double arg__1);
/**
* See QOpenGLPaintDevice::setDotsPerMeterY(qreal)
*/
@io.qt.QtUninvokable
public final void setDotsPerMeterY(double arg__1){
setDotsPerMeterY_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setDotsPerMeterY_native_qtjambireal(long __this__nativeId, double arg__1);
/**
* See QOpenGLPaintDevice::setPaintFlipped(bool)
*/
@io.qt.QtUninvokable
public final void setPaintFlipped(boolean flipped){
setPaintFlipped_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), flipped);
}
@io.qt.QtUninvokable
private native void setPaintFlipped_native_bool(long __this__nativeId, boolean flipped);
/**
* See QOpenGLPaintDevice::setSize(QSize)
*/
@io.qt.QtUninvokable
public final void setSize(io.qt.core.QSize size){
setSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@io.qt.QtUninvokable
private native void setSize_native_cref_QSize(long __this__nativeId, long size);
/**
* See QOpenGLPaintDevice::size()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize size_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::width()const
*/
@io.qt.QtUninvokable
public final int width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int width_native_constfct(long __this__nativeId);
/**
* See QPaintDevice::widthMM()const
*/
@io.qt.QtUninvokable
public final int widthMM(){
return widthMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int widthMM_native_constfct(long __this__nativeId);
/**
* See QOpenGLPaintDevice::ensureActiveTarget()
*/
@io.qt.QtUninvokable
public void ensureActiveTarget(){
ensureActiveTarget_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void ensureActiveTarget_native(long __this__nativeId);
@io.qt.QtUninvokable
protected void initPainter(io.qt.gui.QPainter painter){
initPainter_native_QPainter_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter));
}
private native static void initPainter_native_QPainter_ptr_constfct(long __this__nativeId, long painter);
/**
* See QPaintDevice::metric(QPaintDevice::PaintDeviceMetric)const
*/
@io.qt.QtUninvokable
protected int metric(io.qt.gui.QPaintDevice.PaintDeviceMetric metric){
return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value());
}
private native static int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int metric);
/**
* See QPaintDevice::paintEngine()const
*/
@io.qt.QtUninvokable
public io.qt.gui.QPaintEngine paintEngine(){
return paintEngine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPaintEngine paintEngine_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected io.qt.gui.QPaintDevice redirected(io.qt.core.QPoint offset){
return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), offset);
}
private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, io.qt.core.QPoint offset);
@io.qt.QtUninvokable
protected io.qt.gui.QPainter sharedPainter(){
return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId);
public native static double devicePixelRatioFScale();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QOpenGLPaintDevice(QPrivateConstructor p) { super(p); }
}