-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathUtil.h
More file actions
22 lines (20 loc) · 672 Bytes
/
Util.h
File metadata and controls
22 lines (20 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <Windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <QMouseEvent>
#include <QImage>
class Util
{
public:
static QFont* getIconFont(const int& fontSize);
static QFont* getTextFont(const int& fontSize);
static QImage printScreen(const int& x,const int& y,const int& w,const int& h);
static bool posInScreen(const int& x, const int& y);
static QScreen* getScreen(const int& x, const int& y);
static void setClipboardText(const std::wstring& text);
static void copyColor(const int& key);
static bool saveToFile(const QImage& img);
static void imgToClipboard(const QImage& image);
static bool isImagePath(const QString& path);
};