|
static void | postToThread (std::function< void()> &&fun, QThread *thread=nullptr) |
|
static void | postToThread (QObject *target, std::function< void()> &&fun) |
|
static void | requestScreenOrientation (bool horizontal) |
|
static void | RequestScreenResolution (const Vector< 2, uint04 > &size) |
|
static KeyEvent::KEY | ConvertNativeKeyEvent (sint08 key) |
|
static QColor | convert (const RGBColor &color) |
|
static RGBColor | convert (const QColor &color) |
|
static Font | convert (const QFont &q_font) |
|
static QFont | convert (const Font &font) |
|
static void | MultiplyFontSize (QFont &font, fltp08 multiplier) |
|
static QSize | ScaleFontSizeToFit (QFont &font, const QString &text, const QRect &rect, bool shrink=true, bool grow=false) |
|
static void | FitTextToRect (QString &text, QFont &font, const QRectF &size, bool allow_new_line=true) |
|
static QString | AutoWrapText (const QString &value, const QFontMetrics &metrics, fltp08 length) |
|
static Buffer< QFont > | GetFontRecursive (QWidget *widget) |
|
static void | SetFontRecursive (QWidget *widget, const QFont &font) |
|
static void | SetFontRecursive (QWidget *widget, const Buffer< QFont > &font) |
|
static void | SetStyleRecursive (QWidget *widget, QStyle *style) |
|
static fltp08 | PointSize (const QFont &font) |
|
static fltp08 | PixelSize (const QFont &font) |
|
static fltp08 | DPI () |
|
static void | ForceSizeCalculation (QWidget *widget, bool process_events=false) |
|
static bool | IsWidgetVisibleOnScreen (QWidget *widget) |
|
static QScreen * | ScreenForWidget (const QWidget *widget) |
|
static QPixmap * | DrawAnimationWidget (QWidget *widget, bool draw_background, QPixmap *pixmap=nullptr, QSize size=QSize()) |
|
static QPixmap * | DrawFullWidget (QWidget *widget, bool draw_background, QPixmap *pixmap=nullptr, QSize size=QSize()) |
|
static qreal | DevicePixelRatio (QWindow *window=nullptr) |
|
static ProgressInfo * | log () |
|
static File | convert (const QFile &file) |
|
static QRect | PopupMenuLocation (QWidget *widget, const QSize &size) |
|
static QRect | PopupMenuLocation (QRect popup_origin, const QSize &size) |
|
static void | ClearLayout (QLayout *layout, bool delete_objects=false) |
|
static bool | ShowDialog (QWidget *widget, const PopupInfo &info, const PopupInfo &end_location=PopupInfo()) |
|
static void | HideDialog (QWidget *widget, const PopupInfo &end_location=PopupInfo()) |
|
static bool | IsVisibleToUser (QWidget *widget) |
|
static bool | ShowMessageBox (const TranslatedString &title, const TranslatedString &text, QMessageBox::StandardButtons buttons={ QMessageBox::StandardButton::Ok }, std::function< void(QMessageBox::StandardButton, PopupInfo info)> on_select=nullptr, const PopupInfo &popup_origin=PopupInfo()) |
|
static bool | ShowMessageBox (const TranslatedString &title, const String &image, const TranslatedString &text, QMessageBox::StandardButtons buttons={ QMessageBox::StandardButton::Ok }, std::function< void(QMessageBox::StandardButton, PopupInfo info)> on_select=nullptr, const PopupInfo &popup_origin=PopupInfo()) |
|
static bool | ShowMessageBox (const TranslatedString &title, const TranslatedString &text, const Buffer< TranslatedString, uint04, ObjectAllocator< false > > &button_labels, std::function< void(TranslatedString, PopupInfo info)> on_select=nullptr, const PopupInfo &popup_origin=PopupInfo()) |
|
static bool | ShowMessageBox (const TranslatedString &title, const String &image, const TranslatedString &text, const Buffer< TranslatedString, uint04, ObjectAllocator< false > > &button_labels, std::function< void(TranslatedString, PopupInfo info)> on_select=nullptr, const PopupInfo &popup_origin=PopupInfo()) |
|
static bool | ShowMessageBox (const GenericOption &options, std::function< bool(GenericOption, PopupInfo info)> on_select, const PopupInfo &popup_origin=PopupInfo()) |
|
static bool | ShowMessageBox (const GenericOption &options, const String &image, std::function< bool(GenericOption, PopupInfo info)> on_select, const PopupInfo &popup_origin=PopupInfo()) |
|
static void | RequestExit (bool relaunch, const PopupInfo &popup_origin=PopupInfo()) |
|
static void | ShowExperimentalFeatureDialog (const TranslatedString &feature) |
|
static fltp08 | DefaultAnimationScale () |
|
static QSurfaceFormat | DefaultSurfaceFormat () |
|
static void | FormatPallete (bool error, QWidget *widget) |
|
static void | ClearPallete (QWidget *widget) |
|
static void | ServiceQT () |
|
static KeyEvent | convert (QKeyEvent *event) |
|
static Module | QTModule () |
|
template<typename EnumType > |
static String | EnumString (const EnumType &enumValue) |
|
class: QTTools
Manages static logic dealing with Qt and relating to the application
Author: Tyler Parke
Date: 2023-01-16