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

io.qt.widgets.QSystemTrayIcon Maven / Gradle / Ivy

The newest version!
package io.qt.widgets;


/**
 * 

Icon for an application in the system tray

*

Java wrapper for Qt class QSystemTrayIcon

*/ public class QSystemTrayIcon extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.QtPropertyMember(enabled=false) private Object __rcContextMenu = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSystemTrayIcon.class); /** *

Java wrapper for Qt enum QSystemTrayIcon::ActivationReason

*/ @io.qt.QtUnlistedEnum public enum ActivationReason implements io.qt.QtEnumerator { Unknown(0), Context(1), DoubleClick(2), Trigger(3), MiddleClick(4); private ActivationReason(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static ActivationReason resolve(int value) { switch (value) { case 0: return Unknown; case 1: return Context; case 2: return DoubleClick; case 3: return Trigger; case 4: return MiddleClick; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QSystemTrayIcon::MessageIcon

*/ @io.qt.QtUnlistedEnum public enum MessageIcon implements io.qt.QtEnumerator { NoIcon(0), Information(1), Warning(2), Critical(3); private MessageIcon(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static MessageIcon resolve(int value) { switch (value) { case 0: return NoIcon; case 1: return Information; case 2: return Warning; case 3: return Critical; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QSystemTrayIcon::activated(QSystemTrayIcon::ActivationReason)

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

See QSystemTrayIcon::messageClicked()

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

Overloaded constructor for {@link #QSystemTrayIcon(io.qt.core.QObject)} * with parent = null.

*/ public QSystemTrayIcon() { this((io.qt.core.QObject)null); } /** *

See QSystemTrayIcon::QSystemTrayIcon(QObject*)

*/ public QSystemTrayIcon(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QSystemTrayIcon instance, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QSystemTrayIcon(io.qt.gui.QIcon, io.qt.core.QObject)} * with parent = null.

*/ public QSystemTrayIcon(io.qt.gui.QIcon icon) { this(icon, (io.qt.core.QObject)null); } /** *

See QSystemTrayIcon::QSystemTrayIcon(QIcon,QObject*)

*/ public QSystemTrayIcon(io.qt.gui.QIcon icon, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, icon, parent); } private native static void initialize_native(QSystemTrayIcon instance, io.qt.gui.QIcon icon, io.qt.core.QObject parent); /** *

See QSystemTrayIcon::contextMenu()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QMenu contextMenu(){ return contextMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.widgets.QMenu contextMenu_native_constfct(long __this__nativeId); /** *

See QSystemTrayIcon::geometry()const

*/ @io.qt.QtUninvokable public final io.qt.core.QRect geometry(){ return geometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QRect geometry_native_constfct(long __this__nativeId); /** *

See QSystemTrayIcon::hide()

*/ public final void hide(){ hide_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void hide_native(long __this__nativeId); /** *

See QSystemTrayIcon::icon()const

*/ @io.qt.QtPropertyReader(name="icon") @io.qt.QtUninvokable public final io.qt.gui.QIcon icon(){ return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId); /** *

See QSystemTrayIcon::isVisible()const

*/ @io.qt.QtPropertyReader(name="visible") @io.qt.QtPropertyDesignable("false") @io.qt.QtUninvokable public final boolean isVisible(){ return isVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isVisible_native_constfct(long __this__nativeId); /** *

See QSystemTrayIcon::setContextMenu(QMenu*)

*/ @io.qt.QtUninvokable public final void setContextMenu(io.qt.widgets.QMenu menu){ setContextMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menu)); __rcContextMenu = menu; } @io.qt.QtUninvokable private native void setContextMenu_native_QMenu_ptr(long __this__nativeId, long menu); /** *

See QSystemTrayIcon::setIcon(QIcon)

*/ @io.qt.QtPropertyWriter(name="icon") @io.qt.QtUninvokable public final void setIcon(io.qt.gui.QIcon icon){ setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon)); } @io.qt.QtUninvokable private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon); /** *

See QSystemTrayIcon::setToolTip(QString)

*/ @io.qt.QtPropertyWriter(name="toolTip") @io.qt.QtUninvokable public final void setToolTip(java.lang.String tip){ setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), tip); } @io.qt.QtUninvokable private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String tip); /** *

See QSystemTrayIcon::setVisible(bool)

*/ @io.qt.QtPropertyWriter(name="visible") public final void setVisible(boolean visible){ setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } private native void setVisible_native_bool(long __this__nativeId, boolean visible); /** *

See QSystemTrayIcon::show()

*/ public final void show(){ show_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void show_native(long __this__nativeId); /** *

Overloaded function for {@link #showMessage(java.lang.String, java.lang.String, io.qt.widgets.QSystemTrayIcon.MessageIcon, int)} * with msecs = 10000.

*/ public final void showMessage(java.lang.String title, java.lang.String msg, io.qt.widgets.QSystemTrayIcon.MessageIcon icon) { showMessage(title, msg, icon, (int)10000); } /** *

Overloaded function for {@link #showMessage(java.lang.String, java.lang.String, io.qt.widgets.QSystemTrayIcon.MessageIcon, int)}

*

with:

    *
  • icon = io.qt.widgets.QSystemTrayIcon.MessageIcon.Information
  • *
  • msecs = 10000
  • *
*/ public final void showMessage(java.lang.String title, java.lang.String msg) { showMessage(title, msg, io.qt.widgets.QSystemTrayIcon.MessageIcon.Information, (int)10000); } /** *

See QSystemTrayIcon::showMessage(QString,QString,QSystemTrayIcon::MessageIcon,int)

*/ public final void showMessage(java.lang.String title, java.lang.String msg, io.qt.widgets.QSystemTrayIcon.MessageIcon icon, int msecs){ showMessage_native_cref_QString_cref_QString_QSystemTrayIcon_MessageIcon_int(QtJambi_LibraryUtilities.internal.nativeId(this), title, msg, icon.value(), msecs); } private native void showMessage_native_cref_QString_cref_QString_QSystemTrayIcon_MessageIcon_int(long __this__nativeId, java.lang.String title, java.lang.String msg, int icon, int msecs); /** *

Overloaded function for {@link #showMessage(java.lang.String, java.lang.String, io.qt.gui.QIcon, int)} * with msecs = 10000.

*/ public final void showMessage(java.lang.String title, java.lang.String msg, io.qt.gui.QIcon icon) { showMessage(title, msg, icon, (int)10000); } /** *

See QSystemTrayIcon::showMessage(QString,QString,QIcon,int)

*/ public final void showMessage(java.lang.String title, java.lang.String msg, io.qt.gui.QIcon icon, int msecs){ showMessage_native_cref_QString_cref_QString_cref_QIcon_int(QtJambi_LibraryUtilities.internal.nativeId(this), title, msg, QtJambi_LibraryUtilities.internal.checkedNativeId(icon), msecs); } private native void showMessage_native_cref_QString_cref_QString_cref_QIcon_int(long __this__nativeId, java.lang.String title, java.lang.String msg, long icon, int msecs); /** *

See QSystemTrayIcon::toolTip()const

*/ @io.qt.QtPropertyReader(name="toolTip") @io.qt.QtUninvokable public final java.lang.String toolTip(){ return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String toolTip_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

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

See QSystemTrayIcon::isSystemTrayAvailable()

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

See QSystemTrayIcon::supportsMessages()

*/ public native static boolean supportsMessages(); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QSystemTrayIcon(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QSystemTrayIcon(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QSystemTrayIcon instance, QDeclarativeConstructor constructor); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy