-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFont.h
More file actions
42 lines (38 loc) · 1.12 KB
/
Copy pathFont.h
File metadata and controls
42 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <Windows.h>
#include <string>
#include "Common.h"
#pragma comment(lib, "gdi32.lib")
#pragma comment(lib, "user32.lib")
namespace TkinterWindow
{
class Font
{
private:
// Variables
HFONT hFont;
bool ItalicFont = false;
bool underLineFont = false;
bool midLineFont = false;
int heightFont = 0;
int sizeFont = 15;
int weightFont = 0;
int fontEscapment = 0;
int fontOrientation = 0;
std::string styleFont = "Comicsans";
public:
// Functions
EXPORTFUNCTION HFONT GetFontObject(HDC hDC);
EXPORTFUNCTION void DeleteFontObject();
EXPORTFUNCTION void SetItalicFontStyle(bool italicStyle);
EXPORTFUNCTION void SetMidLineFontStyle(bool midLineStyle);
EXPORTFUNCTION void SetFontWeight(int fontWeight);
EXPORTFUNCTION void SetFontSize(int fontSize);
EXPORTFUNCTION void SetFontWidth(int fontWidth);
EXPORTFUNCTION void SetFontHeight(int fontHeight);
EXPORTFUNCTION void SetUnderLineFontStyle(bool underLineStyle);
EXPORTFUNCTION void SetFontEscapment(int degree);
EXPORTFUNCTION void SetFontOrientation(int degree);
EXPORTFUNCTION void SetFontStyle(std::string fontStyle);
};
}