/****************************************************************************
**
** DQt - D bindings for the Qt Toolkit
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
****************************************************************************/
module qt.widgets.tooltip;
extern(C++):

import qt.config;
import qt.helpers;
version(QT_NO_TOOLTIP){}else
{
    import qt.core.point;
    import qt.core.rect;
    import qt.core.string;
    import qt.gui.font;
    import qt.gui.palette;
    import qt.widgets.widget;
}

version(QT_NO_TOOLTIP){}else
{

extern(C++, class) struct /+ Q_WIDGETS_EXPORT +/ QToolTip
{
private:
    @disable this();

public:
    // ### Qt 6 - merge the three showText functions below
    static void showText(ref const(QPoint) pos, ref const(QString) text, QWidget w = null);
    static void showText(ref const(QPoint) pos, ref const(QString) text, QWidget w, ref const(QRect) rect);
    static void showText(ref const(QPoint) pos, ref const(QString) text, QWidget w, ref const(QRect) rect, int msecShowTime);
    pragma(inline, true) static void hideText() { auto tmp = QPoint(); auto tmp__1 = QString.create(); showText(tmp, tmp__1); }

    static bool isVisible();
    static QString text();

    static QPalette palette();
    static void setPalette(ref const(QPalette) );
    static QFont font();
    static void setFont(ref const(QFont) );
}

}