自定义内存分配池
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
#include <QKeyEvent>
|
||||
#include <QPainter>
|
||||
#include <QVBoxLayout>
|
||||
#include <QVector>
|
||||
#include <QWidget>
|
||||
#include <QWindow>
|
||||
#include <QtWidgets>
|
||||
#include <QtWidgetsDepends>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include "psc_global_include/Singleton.hpp"
|
||||
class Global : public Psc::Singleton<Global> {
|
||||
public:
|
||||
@@ -21,11 +21,11 @@ public:
|
||||
int adapt_height(int full_screen_height);
|
||||
int adapt_width(int full_screen_width);
|
||||
};
|
||||
QVBoxLayout* create_vbox_layout(const QVector<QWidget*>& children = {}, QWidget* parent = nullptr);
|
||||
QHBoxLayout* create_hbox_layout(const QVector<QWidget*>& children = {}, QWidget* parent = nullptr);
|
||||
QVBoxLayout* create_vbox_layout(const std::vector<QWidget*>& children = {}, QWidget* parent = nullptr);
|
||||
QHBoxLayout* create_hbox_layout(const std::vector<QWidget*>& children = {}, QWidget* parent = nullptr);
|
||||
QRect get_max_rect(const QRect& rect, double WHRate);
|
||||
int calculate_optimal_font_size(const QString& text, const QSize& space_size, const QFont& font);
|
||||
int calculate_optimal_font_size(const QVector<QString>& text_list, const QSize& space_size, const QFont& font);
|
||||
int calculate_optimal_font_size(const std::vector<QString>& text_list, const QSize& space_size, const QFont& font);
|
||||
QPushButton* create_button(const QString& text, int font_size, const std::function<void(void)>& func = nullptr);
|
||||
namespace renderive {
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user