io.qt.gui.QPaintDeviceWindow Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Convenience subclass of QWindow that is also a QPaintDevice
* Java wrapper for Qt class QPaintDeviceWindow
*/
public class QPaintDeviceWindow extends io.qt.gui.QWindow
implements io.qt.gui.QPaintDevice
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPaintDeviceWindow.class);
/**
* See QPaintDevice:: colorCount()const
*/
@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 QPaintDevice:: depth()const
*/
@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:: devicePixelRatioF()const
*/
@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 QPaintDevice:: heightMM()const
*/
@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
*/
@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
*/
@QtUninvokable
public final int logicalDpiY(){
return logicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int logicalDpiY_native_constfct(long __this__nativeId);
/**
* Function has no implementation because its native counterpart is private.
*/
@Deprecated
@QtUninvokable
@Override
public final io.qt.gui.@Nullable QPaintEngine paintEngine() throws QNoImplementationException {
throw new QNoImplementationException();
}
/**
* See QPaintDevice:: paintingActive()const
*/
@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
*/
@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
*/
@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 QPaintDeviceWindow:: update()
*/
public final void update(){
update_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void update_native(long __this__nativeId);
/**
* See QPaintDeviceWindow:: update(QRect)
*/
@QtUninvokable
public final void update(io.qt.core.@NonNull QRect rect){
update_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native void update_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QPaintDeviceWindow:: update(QRegion)
*/
@QtUninvokable
public final void update(io.qt.gui.@NonNull QRegion region){
update_native_cref_QRegion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(region));
}
@QtUninvokable
private native void update_native_cref_QRegion(long __this__nativeId, long region);
/**
* See QPaintDevice:: widthMM()const
*/
@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 QWindow:: exposeEvent(QExposeEvent*)
*/
@QtUninvokable
@Override
protected void exposeEvent(io.qt.gui.@Nullable QExposeEvent arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
exposeEvent_native_QExposeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void exposeEvent_native_QExposeEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QPaintDevice:: initPainter(QPainter*)const
*/
@QtUninvokable
protected void initPainter(io.qt.gui.@Nullable 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
*/
@QtUninvokable
protected int metric(io.qt.gui.QPaintDevice.@NonNull 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 QWindow:: paintEvent(QPaintEvent*)
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
@Override
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent event){
java.util.Objects.requireNonNull(event, "Argument 'event': null not expected.");
java.util.Objects.requireNonNull(event, "Argument 'event': null not expected.");
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long event);
/**
* See QPaintDevice:: redirected(QPoint*)const
*/
@QtUninvokable
protected io.qt.gui.@Nullable QPaintDevice redirected(io.qt.core.@Nullable QPoint offset){
return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(offset));
}
private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, long offset);
/**
* See QPaintDevice:: sharedPainter()const
*/
@QtUninvokable
protected io.qt.gui.@Nullable QPainter sharedPainter(){
return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId);
/**
* See QPaintDevice:: devicePixelRatioFScale()
*/
public native static double devicePixelRatioFScale();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPaintDeviceWindow(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #update(io.qt.gui.QRegion)}.
*/
@QtUninvokable
public final void update(io.qt.gui.@NonNull QPolygon region) {
update(new io.qt.gui.QRegion(region));
}
/**
* Overloaded function for {@link #update(io.qt.gui.QRegion)}.
*/
@QtUninvokable
public final void update(io.qt.gui.@NonNull QBitmap region) {
update(new io.qt.gui.QRegion(region));
}
}