io.qt.gui.QPaintEvent Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Contains event parameters for paint events
* Java wrapper for Qt class QPaintEvent
*/
public class QPaintEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QPaintEvent:: QPaintEvent(QPaintEvent)
*/
protected QPaintEvent(io.qt.gui.@StrictNonNull QPaintEvent 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(QPaintEvent instance, io.qt.gui.QPaintEvent arg__1);
/**
* See QPaintEvent:: QPaintEvent(QRect)
*/
public QPaintEvent(io.qt.core.@NonNull QRect paintRect){
super((QPrivateConstructor)null);
initialize_native(this, paintRect);
}
private native static void initialize_native(QPaintEvent instance, io.qt.core.QRect paintRect);
/**
* See QPaintEvent:: QPaintEvent(QRegion)
*/
public QPaintEvent(io.qt.gui.@NonNull QRegion paintRegion){
super((QPrivateConstructor)null);
initialize_native(this, paintRegion);
}
private native static void initialize_native(QPaintEvent instance, io.qt.gui.QRegion paintRegion);
/**
* See QPaintEvent:: operator=(QPaintEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QPaintEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QPaintEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QPaintEvent(long __this__nativeId, long other);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect rect(){
return rect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRect rect_native_constfct(long __this__nativeId);
/**
* See QPaintEvent:: region()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QRegion region(){
return region_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QRegion region_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QPaintEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPaintEvent clone_native_constfct(long __this__nativeId);
/**
* See QPaintEvent:: m_erased
*/
@QtUninvokable
protected final void setErased(boolean erased){
setErased_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), erased);
}
@QtUninvokable
private native void setErased_native_bool(long __this__nativeId, boolean erased);
/**
* See QPaintEvent:: m_erased
*/
@QtUninvokable
protected final boolean erased(){
return erased_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean erased_native(long __this__nativeId);
/**
* See QPaintEvent:: m_rect
*/
@QtUninvokable
protected final void setRect(io.qt.core.@NonNull QRect rect){
setRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native void setRect_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QPaintEvent:: m_region
*/
@QtUninvokable
protected final void setRegion(io.qt.gui.@NonNull QRegion region){
setRegion_native_cref_QRegion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(region));
}
@QtUninvokable
private native void setRegion_native_cref_QRegion(long __this__nativeId, long region);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPaintEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QPaintEvent(io.qt.gui.QRegion)}.
*/
public QPaintEvent(io.qt.gui.@NonNull QPolygon paintRegion) {
this(new io.qt.gui.QRegion(paintRegion));
}
/**
* Overloaded constructor for {@link #QPaintEvent(io.qt.gui.QRegion)}.
*/
public QPaintEvent(io.qt.gui.@NonNull QBitmap paintRegion) {
this(new io.qt.gui.QRegion(paintRegion));
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QPaintEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QPaintEvent other) {
assign(other);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #erased()} instead.
*/
@QtUninvokable
protected final boolean getErased() {
return erased();
}
/**
* Overloaded function for {@link #setRegion(io.qt.gui.QRegion)}.
*/
@QtUninvokable
protected final void setRegion(io.qt.core.@NonNull QRect region) {
setRegion(new io.qt.gui.QRegion(region));
}
/**
* Overloaded function for {@link #setRegion(io.qt.gui.QRegion)}.
*/
@QtUninvokable
protected final void setRegion(io.qt.gui.@NonNull QPolygon region) {
setRegion(new io.qt.gui.QRegion(region));
}
/**
* Overloaded function for {@link #setRegion(io.qt.gui.QRegion)}.
*/
@QtUninvokable
protected final void setRegion(io.qt.gui.@NonNull QBitmap region) {
setRegion(new io.qt.gui.QRegion(region));
}
}