![]() |
Blamite Game Engine - Keystone
00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
General-purpose utilities for use within Keystone. More...
Functions | |
KEYSTONE void | SetGraphicsViewImage (QGraphicsView *graphics_view, std::string image_path, Qt::AspectRatioMode aspect_ratio_mode) |
Applies an image to a graphics view, without the need for extra scene/pixmap management. More... | |
KEYSTONE KeystoneDialogResult | ShowErrorDialog (bool allow_safemode, bool allow_continue, std::string text) |
Shows an error dialog that allows the user to continue execution, continue in 'safe mode', or exit the program. More... | |
KEYSTONE KeystoneDialogResult | ShowMessageBox (std::string message) |
KEYSTONE KeystoneDialogResult | ShowMessageBox (std::string title, std::string message) |
KEYSTONE KeystoneDialogResult | ShowMessageBox (std::string title, std::string message, KeystoneMessageBoxType type) |
KEYSTONE KeystoneDialogResult | ShowMessageBox (std::string title, std::string message, KeystoneMessageBoxType type, KeystoneMessageBoxButtons buttons) |
KEYSTONE uint32_t | ConvertQtVirtKeyToSDLVirtKey (int key) |
KEYSTONE uint32_t | ConvertQtVirtKeyToSDLScancode (int key) |
KEYSTONE bool | IsPointWithinGeometry (QWidget *widget, QPoint point) |
KEYSTONE QIcon | GetDefaultApplicationIcon () |
KEYSTONE void | PokeStylesheet (QWidget *widget) |
General-purpose utilities for use within Keystone.
uint32_t BlamKeystone::Utils::ConvertQtVirtKeyToSDLScancode | ( | int | key | ) |
uint32_t BlamKeystone::Utils::ConvertQtVirtKeyToSDLVirtKey | ( | int | key | ) |
QIcon BlamKeystone::Utils::GetDefaultApplicationIcon | ( | ) |
bool BlamKeystone::Utils::IsPointWithinGeometry | ( | QWidget * | widget, |
QPoint | point | ||
) |
void BlamKeystone::Utils::PokeStylesheet | ( | QWidget * | widget | ) |
void BlamKeystone::Utils::SetGraphicsViewImage | ( | QGraphicsView * | graphics_view, |
std::string | image_path, | ||
Qt::AspectRatioMode | aspect_ratio_mode | ||
) |
Applies an image to a graphics view, without the need for extra scene/pixmap management.
graphics_view | - The graphics view to set the image for. |
image_path | - The path to the image file. |
KeystoneDialogResult BlamKeystone::Utils::ShowErrorDialog | ( | bool | allow_safemode, |
bool | allow_continue, | ||
std::string | text | ||
) |
Shows an error dialog that allows the user to continue execution, continue in 'safe mode', or exit the program.
allow_safemode | - Whether or not to enable the 'Continue in Safe Mode' option. |
allow_continue | - Wehther or not to enable the 'Continue' option. |
text | - The message to display to the user. |
KeystoneDialogResult BlamKeystone::Utils::ShowMessageBox | ( | std::string | message | ) |
KeystoneDialogResult BlamKeystone::Utils::ShowMessageBox | ( | std::string | title, |
std::string | message | ||
) |
KeystoneDialogResult BlamKeystone::Utils::ShowMessageBox | ( | std::string | title, |
std::string | message, | ||
KeystoneMessageBoxType | type | ||
) |
KeystoneDialogResult BlamKeystone::Utils::ShowMessageBox | ( | std::string | title, |
std::string | message, | ||
KeystoneMessageBoxType | type, | ||
KeystoneMessageBoxButtons | buttons | ||
) |