io.qt.widgets.QSplashScreen Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Splash screen that can be shown during application startup
* Java wrapper for Qt class QSplashScreen
*/
public class QSplashScreen extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSplashScreen.class);
/**
* See QSplashScreen:: messageChanged(QString)
*/
public final @NonNull Signal1 messageChanged = new Signal1<>();
/**
* See QSplashScreen:: QSplashScreen(QPixmap, Qt::WindowFlags)
*/
public QSplashScreen(io.qt.gui.@NonNull QPixmap pixmap, io.qt.core.Qt.@NonNull WindowFlags f){
super((QPrivateConstructor)null);
initialize_native(this, pixmap, f);
}
private native static void initialize_native(QSplashScreen instance, io.qt.gui.QPixmap pixmap, io.qt.core.Qt.WindowFlags f);
/**
* See QSplashScreen:: QSplashScreen(QScreen*, QPixmap, Qt::WindowFlags)
*/
public QSplashScreen(io.qt.gui.@Nullable QScreen screen, io.qt.gui.@NonNull QPixmap pixmap, io.qt.core.Qt.@NonNull WindowFlags f){
super((QPrivateConstructor)null);
initialize_native(this, screen, pixmap, f);
}
private native static void initialize_native(QSplashScreen instance, io.qt.gui.QScreen screen, io.qt.gui.QPixmap pixmap, io.qt.core.Qt.WindowFlags f);
/**
* See QSplashScreen:: clearMessage()
*/
public final void clearMessage(){
clearMessage_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clearMessage_native(long __this__nativeId);
/**
* See QSplashScreen:: finish(QWidget*)
*/
@QtUninvokable
public final void finish(io.qt.widgets.@Nullable QWidget w){
finish_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@QtUninvokable
private native void finish_native_QWidget_ptr(long __this__nativeId, long w);
/**
* See QSplashScreen:: message()const
*/
@QtUninvokable
public final java.lang.@NonNull String message(){
return message_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String message_native_constfct(long __this__nativeId);
/**
* See QSplashScreen:: pixmap()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap pixmap(){
return pixmap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_constfct(long __this__nativeId);
/**
* See QSplashScreen:: setPixmap(QPixmap)
*/
@QtUninvokable
public final void setPixmap(io.qt.gui.@NonNull QPixmap pixmap){
setPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@QtUninvokable
private native void setPixmap_native_cref_QPixmap(long __this__nativeId, long pixmap);
/**
* See QSplashScreen:: showMessage(QString, int, QColor)
*/
public final void showMessage(java.lang.@NonNull String message, int alignment, io.qt.gui.@NonNull QColor color){
showMessage_native_cref_QString_int_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), message, alignment, QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
private native void showMessage_native_cref_QString_int_cref_QColor(long __this__nativeId, java.lang.String message, int alignment, long color);
/**
* See QSplashScreen:: drawContents(QPainter*)
*/
@QtUninvokable
protected void drawContents(io.qt.gui.@Nullable QPainter painter){
drawContents_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter));
}
@QtUninvokable
private native void drawContents_native_QPainter_ptr(long __this__nativeId, long painter);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
java.util.Objects.requireNonNull(e, "Argument 'e': null not expected.");
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: mousePressEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mousePressEvent(io.qt.gui.@Nullable QMouseEvent arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSplashScreen(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QSplashScreen(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QSplashScreen instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}
* with f = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QSplashScreen(io.qt.gui.@NonNull QPixmap pixmap) {
this(pixmap, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}
* with:
* pixmap = new io.qt.gui.QPixmap()
* f = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QSplashScreen() {
this(new io.qt.gui.QPixmap(), new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}.
*/
public QSplashScreen(io.qt.gui.@NonNull QPixmap pixmap, io.qt.core.Qt.@NonNull WindowType @NonNull... f) {
this(pixmap, new io.qt.core.Qt.WindowFlags(f));
}
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QScreen, io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}
* with f = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QSplashScreen(io.qt.gui.@Nullable QScreen screen, io.qt.gui.@NonNull QPixmap pixmap) {
this(screen, pixmap, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QScreen, io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}
* with:
* pixmap = new io.qt.gui.QPixmap()
* f = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QSplashScreen(io.qt.gui.@Nullable QScreen screen) {
this(screen, new io.qt.gui.QPixmap(), new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QSplashScreen(io.qt.gui.QScreen, io.qt.gui.QPixmap, io.qt.core.Qt.WindowFlags)}.
*/
public QSplashScreen(io.qt.gui.@Nullable QScreen screen, io.qt.gui.@NonNull QPixmap pixmap, io.qt.core.Qt.@NonNull WindowType @NonNull... f) {
this(screen, pixmap, new io.qt.core.Qt.WindowFlags(f));
}
/**
* Overloaded function for {@link #showMessage(java.lang.String, int, io.qt.gui.QColor)}
* with color = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.black)
.
*/
public final void showMessage(java.lang.@NonNull String message, int alignment) {
showMessage(message, alignment, new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.black));
}
/**
* Overloaded function for {@link #showMessage(java.lang.String, int, io.qt.gui.QColor)}
* with:
* alignment = 1
* color = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.black)
*
*/
public final void showMessage(java.lang.@NonNull String message) {
showMessage(message, (int)1, new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.black));
}
/**
* Overloaded function for {@link #showMessage(java.lang.String, int, io.qt.gui.QColor)}.
*/
public final void showMessage(java.lang.@NonNull String message, int alignment, io.qt.core.Qt.@NonNull GlobalColor color) {
showMessage(message, alignment, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #showMessage(java.lang.String, int, io.qt.gui.QColor)}.
*/
public final void showMessage(java.lang.@NonNull String message, int alignment, io.qt.gui.@NonNull QRgba64 color) {
showMessage(message, alignment, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #showMessage(java.lang.String, int, io.qt.gui.QColor)}.
*/
public final void showMessage(java.lang.@NonNull String message, int alignment, java.lang.@NonNull String color) {
showMessage(message, alignment, new io.qt.gui.QColor(color));
}
}