Elaztek Developer Hub
Blamite Game Engine - Keystone  00326.06.27.21.0407.blamite
A library that enables the use of Qt in Blamite's editing tools.
utils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <qgraphicsview.h>
5 
6 #ifndef KEYSTONE
7 #define KEYSTONE
8 #endif
9 
14 {
21  KEYSTONE void SetGraphicsViewImage(QGraphicsView* graphics_view, std::string image_path, Qt::AspectRatioMode aspect_ratio_mode);
22 }
KEYSTONE
#define KEYSTONE
Definition: utils.h:7
BlamKeystone::Utils
General-purpose utilities for use within Keystone.
Definition: utils.h:13
BlamKeystone::Utils::SetGraphicsViewImage
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.
Definition: utils.cpp:6