All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QGuiApplication Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package io.qt.gui;


/**
 * 

Manages the GUI application's control flow and main settings

*

Java wrapper for Qt class QGuiApplication

*/ public class QGuiApplication extends io.qt.core.QCoreApplication { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGuiApplication.class); /** *

See QGuiApplication::applicationDisplayNameChanged()

*/ @io.qt.QtPropertyNotify(name="applicationDisplayName") public final Signal0 applicationDisplayNameChanged = new Signal0(); /** *

See QGuiApplication::applicationStateChanged(Qt::ApplicationState)

*/ public final Signal1 applicationStateChanged = new Signal1<>(); /** *

See QGuiApplication::commitDataRequest(QSessionManager&)

*/ public final Signal1 commitDataRequest = new Signal1<>(); /** *

See QGuiApplication::focusObjectChanged(QObject*)

*/ public final Signal1 focusObjectChanged = new Signal1<>(); /** *

See QGuiApplication::focusWindowChanged(QWindow*)

*/ public final Signal1 focusWindowChanged = new Signal1<>(); /** * @deprecated Handle QEvent::ApplicationFontChange instead */ @Deprecated public final Signal1 fontChanged = new Signal1<>(); /** *

See QGuiApplication::fontDatabaseChanged()

*/ public final Signal0 fontDatabaseChanged = new Signal0(); /** *

See QGuiApplication::lastWindowClosed()

*/ public final Signal0 lastWindowClosed = new Signal0(); /** *

See QGuiApplication::layoutDirectionChanged(Qt::LayoutDirection)

*/ @io.qt.QtPropertyNotify(name="layoutDirection") public final Signal1 layoutDirectionChanged = new Signal1<>(); /** * @deprecated Handle QEvent::ApplicationPaletteChange instead */ @Deprecated public final Signal1 paletteChanged = new Signal1<>(); /** *

See QGuiApplication::primaryScreenChanged(QScreen*)

*/ @io.qt.QtPropertyNotify(name="primaryScreen") public final Signal1 primaryScreenChanged = new Signal1<>(); /** *

See QGuiApplication::saveStateRequest(QSessionManager&)

*/ public final Signal1 saveStateRequest = new Signal1<>(); /** *

See QGuiApplication::screenAdded(QScreen*)

*/ public final Signal1 screenAdded = new Signal1<>(); /** *

See QGuiApplication::screenRemoved(QScreen*)

*/ public final Signal1 screenRemoved = new Signal1<>(); protected QGuiApplication(java.lang.String[] argv){ super((QPrivateConstructor)null); initialize_native(this, argv); } private native static void initialize_native(QGuiApplication instance, java.lang.String[] argv); /** *

See QGuiApplication::devicePixelRatio()const

*/ @io.qt.QtUninvokable public final double devicePixelRatio(){ return devicePixelRatio_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double devicePixelRatio_native_constfct(long __this__nativeId); /** *

See QGuiApplication::isSavingSession()const

*/ @io.qt.QtUninvokable public final boolean isSavingSession(){ return isSavingSession_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isSavingSession_native_constfct(long __this__nativeId); /** *

See QGuiApplication::isSessionRestored()const

*/ @io.qt.QtUninvokable public final boolean isSessionRestored(){ return isSessionRestored_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isSessionRestored_native_constfct(long __this__nativeId); /** *

See QGuiApplication::sessionId()const

*/ @io.qt.QtUninvokable public final java.lang.String sessionId(){ return sessionId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String sessionId_native_constfct(long __this__nativeId); /** *

See QGuiApplication::sessionKey()const

*/ @io.qt.QtUninvokable public final java.lang.String sessionKey(){ return sessionKey_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String sessionKey_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent arg__1){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QCoreApplication::notify(QObject*,QEvent*)

*/ @io.qt.QtUninvokable public boolean notify(io.qt.core.QObject arg__1, io.qt.core.QEvent arg__2){ return notify_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2)); } @io.qt.QtUninvokable private native boolean notify_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2); /** *

See QGuiApplication::allWindows()

*/ public native static io.qt.core.QList allWindows(); /** *

See QGuiApplication::applicationDisplayName()

*/ @io.qt.QtPropertyReader(name="applicationDisplayName") public native static java.lang.String applicationDisplayName(); /** *

See QGuiApplication::applicationState()

*/ public static io.qt.core.Qt.ApplicationState applicationState(){ return io.qt.core.Qt.ApplicationState.resolve(applicationState_native()); } private native static int applicationState_native(); /** *

See QGuiApplication::changeOverrideCursor(QCursor)

*/ public static void changeOverrideCursor(io.qt.gui.QCursor arg__1){ changeOverrideCursor_native_cref_QCursor(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } private native static void changeOverrideCursor_native_cref_QCursor(long arg__1); /** *

See QGuiApplication::clipboard()

*/ public native static io.qt.gui.QClipboard clipboard(); /** *

See QGuiApplication::desktopFileName()

*/ @io.qt.QtPropertyReader(name="desktopFileName") public native static java.lang.String desktopFileName(); /** *

See QGuiApplication::desktopSettingsAware()

*/ public native static boolean desktopSettingsAware(); /** *

See QCoreApplication::exec()

*/ public native static int exec(); /** *

See QGuiApplication::focusObject()

*/ public native static io.qt.core.QObject focusObject(); /** *

See QGuiApplication::focusWindow()

*/ public native static io.qt.gui.QWindow focusWindow(); /** *

See QGuiApplication::font()

*/ public native static io.qt.gui.QFont font(); /** *

See QGuiApplication::highDpiScaleFactorRoundingPolicy()

*/ public static io.qt.core.Qt.HighDpiScaleFactorRoundingPolicy highDpiScaleFactorRoundingPolicy(){ return io.qt.core.Qt.HighDpiScaleFactorRoundingPolicy.resolve(highDpiScaleFactorRoundingPolicy_native()); } private native static int highDpiScaleFactorRoundingPolicy_native(); /** *

See QGuiApplication::inputMethod()

*/ public native static io.qt.gui.QInputMethod inputMethod(); /** *

See QGuiApplication::isLeftToRight()

*/ public native static boolean isLeftToRight(); /** *

See QGuiApplication::isRightToLeft()

*/ public native static boolean isRightToLeft(); /** *

See QGuiApplication::keyboardModifiers()

*/ public static io.qt.core.Qt.KeyboardModifiers keyboardModifiers(){ return new io.qt.core.Qt.KeyboardModifiers(keyboardModifiers_native()); } private native static int keyboardModifiers_native(); /** *

See QGuiApplication::layoutDirection()

*/ @io.qt.QtPropertyReader(name="layoutDirection") public static io.qt.core.Qt.LayoutDirection layoutDirection(){ return io.qt.core.Qt.LayoutDirection.resolve(layoutDirection_native()); } private native static int layoutDirection_native(); /** *

See QGuiApplication::modalWindow()

*/ public native static io.qt.gui.QWindow modalWindow(); /** *

See QGuiApplication::mouseButtons()

*/ public static io.qt.core.Qt.MouseButtons mouseButtons(){ return new io.qt.core.Qt.MouseButtons(mouseButtons_native()); } private native static int mouseButtons_native(); /** *

See QGuiApplication::overrideCursor()

*/ public native static io.qt.gui.QCursor overrideCursor(); /** *

See QGuiApplication::palette()

*/ public native static io.qt.gui.QPalette palette(); public static io.qt.core.QFunctionPointer platformFunction(io.qt.core.QByteArray function){ return platformFunction_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(function)); } private native static io.qt.core.QFunctionPointer platformFunction_native_cref_QByteArray(long function); /** *

See QGuiApplication::platformName()

*/ @io.qt.QtPropertyReader(name="platformName") @io.qt.QtPropertyStored("false") public native static java.lang.String platformName(); /** *

See QGuiApplication::primaryScreen()

*/ @io.qt.QtPropertyReader(name="primaryScreen") @io.qt.QtPropertyStored("false") public native static io.qt.gui.QScreen primaryScreen(); /** *

See QGuiApplication::queryKeyboardModifiers()

*/ public static io.qt.core.Qt.KeyboardModifiers queryKeyboardModifiers(){ return new io.qt.core.Qt.KeyboardModifiers(queryKeyboardModifiers_native()); } private native static int queryKeyboardModifiers_native(); /** *

See QGuiApplication::quitOnLastWindowClosed()

*/ @io.qt.QtPropertyReader(name="quitOnLastWindowClosed") public native static boolean quitOnLastWindowClosed(); /** *

See QGuiApplication::restoreOverrideCursor()

*/ public native static void restoreOverrideCursor(); /** *

See QGuiApplication::screenAt(QPoint)

*/ public static io.qt.gui.QScreen screenAt(io.qt.core.QPoint point){ return screenAt_native_cref_QPoint(QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } private native static io.qt.gui.QScreen screenAt_native_cref_QPoint(long point); /** *

See QGuiApplication::screens()

*/ public native static io.qt.core.QList screens(); /** *

See QGuiApplication::setApplicationDisplayName(QString)

*/ @io.qt.QtPropertyWriter(name="applicationDisplayName") public native static void setApplicationDisplayName(java.lang.String name); /** *

See QGuiApplication::setDesktopFileName(QString)

*/ @io.qt.QtPropertyWriter(name="desktopFileName") public native static void setDesktopFileName(java.lang.String name); /** *

See QGuiApplication::setDesktopSettingsAware(bool)

*/ public native static void setDesktopSettingsAware(boolean on); /** *

See QGuiApplication::setFont(QFont)

*/ public static void setFont(io.qt.gui.QFont arg__1){ setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } private native static void setFont_native_cref_QFont(long arg__1); /** *

See QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy)

*/ public static void setHighDpiScaleFactorRoundingPolicy(io.qt.core.Qt.HighDpiScaleFactorRoundingPolicy policy){ setHighDpiScaleFactorRoundingPolicy_native_Qt_HighDpiScaleFactorRoundingPolicy(policy.value()); } private native static void setHighDpiScaleFactorRoundingPolicy_native_Qt_HighDpiScaleFactorRoundingPolicy(int policy); /** *

See QGuiApplication::setLayoutDirection(Qt::LayoutDirection)

*/ @io.qt.QtPropertyWriter(name="layoutDirection") public static void setLayoutDirection(io.qt.core.Qt.LayoutDirection direction){ setLayoutDirection_native_Qt_LayoutDirection(direction.value()); } private native static void setLayoutDirection_native_Qt_LayoutDirection(int direction); /** *

See QGuiApplication::setOverrideCursor(QCursor)

*/ public static void setOverrideCursor(io.qt.gui.QCursor arg__1){ setOverrideCursor_native_cref_QCursor(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } private native static void setOverrideCursor_native_cref_QCursor(long arg__1); /** *

See QGuiApplication::setPalette(QPalette)

*/ public static void setPalette(io.qt.gui.QPalette pal){ setPalette_native_cref_QPalette(QtJambi_LibraryUtilities.internal.checkedNativeId(pal)); } private native static void setPalette_native_cref_QPalette(long pal); /** *

See QGuiApplication::setQuitOnLastWindowClosed(bool)

*/ @io.qt.QtPropertyWriter(name="quitOnLastWindowClosed") public native static void setQuitOnLastWindowClosed(boolean quit); /** *

See QGuiApplication::setWindowIcon(QIcon)

*/ @io.qt.QtPropertyWriter(name="windowIcon") public static void setWindowIcon(io.qt.gui.QIcon icon){ setWindowIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.checkedNativeId(icon)); } private native static void setWindowIcon_native_cref_QIcon(long icon); /** *

See QGuiApplication::styleHints()

*/ public native static io.qt.gui.QStyleHints styleHints(); /** *

See QGuiApplication::sync()

*/ public native static void sync(); /** *

See QGuiApplication::topLevelAt(QPoint)

*/ public static io.qt.gui.QWindow topLevelWindowAt(io.qt.core.QPoint pos){ return topLevelWindowAt_native_cref_QPoint(QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } private native static io.qt.gui.QWindow topLevelWindowAt_native_cref_QPoint(long pos); /** *

See QGuiApplication::topLevelWindows()

*/ public native static io.qt.core.QList topLevelWindows(); /** *

See QGuiApplication::windowIcon()

*/ @io.qt.QtPropertyReader(name="windowIcon") public native static io.qt.gui.QIcon windowIcon(); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QGuiApplication(QPrivateConstructor p) { super(p); } public static QGuiApplication initialize(String args[]) { return io.qt.core.QCoreApplication.initialize(null, args, QGuiApplication::new); } public static QGuiApplication initialize(String applicationName, String args[]) { return io.qt.core.QCoreApplication.initialize(applicationName, args, QGuiApplication::new); } public static void shutdown() { io.qt.core.QCoreApplication.shutdown(); } public static QGuiApplication instance() { io.qt.core.QCoreApplication app = io.qt.core.QCoreApplication.instance(); if (app instanceof QGuiApplication) return (QGuiApplication) app; return null; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy