io.qt.widgets.QToolTip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.widgets;
import io.qt.*;
/**
* Tool tips (balloon help) for any widget
* Java wrapper for Qt class QToolTip
*/
public final class QToolTip extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QToolTip:: font()
*/
public native static io.qt.gui.@NonNull QFont font();
/**
*
*/
public native static void hideText();
/**
*
*/
public native static boolean isVisible();
/**
*
*/
public native static io.qt.gui.@NonNull QPalette palette();
/**
*
*/
public static void setFont(io.qt.gui.@NonNull 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 QToolTip:: setPalette(QPalette)
*/
public static void setPalette(io.qt.gui.@NonNull QPalette arg__1){
setPalette_native_cref_QPalette(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
private native static void setPalette_native_cref_QPalette(long arg__1);
/**
* See QToolTip:: showText(QPoint, QString, QWidget*, QRect, int)
*/
public static void showText(io.qt.core.@NonNull QPoint pos, java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget w, io.qt.core.@NonNull QRect rect, int msecShowTime){
showText_native_cref_QPoint_cref_QString_QWidget_ptr_cref_QRect_int(QtJambi_LibraryUtilities.internal.checkedNativeId(pos), text, QtJambi_LibraryUtilities.internal.checkedNativeId(w), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), msecShowTime);
}
private native static void showText_native_cref_QPoint_cref_QString_QWidget_ptr_cref_QRect_int(long pos, java.lang.String text, long w, long rect, int msecShowTime);
/**
* See QToolTip:: text()
*/
public native static java.lang.@NonNull String text();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QToolTip(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #setFont(io.qt.gui.QFont)}.
*/
public static void setFont(java.lang.@NonNull String arg__1) {
setFont(new io.qt.gui.QFont(arg__1));
}
/**
* Overloaded function for {@link #showText(io.qt.core.QPoint, java.lang.String, io.qt.widgets.QWidget, io.qt.core.QRect, int)}
* with msecShowTime = -1
.
*/
public static void showText(io.qt.core.@NonNull QPoint pos, java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget w, io.qt.core.@NonNull QRect rect) {
showText(pos, text, w, rect, (int)-1);
}
/**
* Overloaded function for {@link #showText(io.qt.core.QPoint, java.lang.String, io.qt.widgets.QWidget, io.qt.core.QRect, int)}
* with:
* rect = new io.qt.core.QRect()
* msecShowTime = -1
*
*/
public static void showText(io.qt.core.@NonNull QPoint pos, java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget w) {
showText(pos, text, w, new io.qt.core.QRect(), (int)-1);
}
/**
* Overloaded function for {@link #showText(io.qt.core.QPoint, java.lang.String, io.qt.widgets.QWidget, io.qt.core.QRect, int)}
* with:
* w = null
* rect = new io.qt.core.QRect()
* msecShowTime = -1
*
*/
public static void showText(io.qt.core.@NonNull QPoint pos, java.lang.@NonNull String text) {
showText(pos, text, (io.qt.widgets.QWidget)null, new io.qt.core.QRect(), (int)-1);
}
}