forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFontConfigWrapper.cpp
More file actions
56 lines (47 loc) · 1.59 KB
/
FontConfigWrapper.cpp
File metadata and controls
56 lines (47 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "imguiWrappedHeader.h"
#include "FontConfigWrapper.h"
IggFontConfig iggNewFontConfig()
{
ImFontConfig *fontConfig = new ImFontConfig();
return static_cast<IggFontConfig>(fontConfig);
}
void iggFontConfigDelete(IggFontConfig handle)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
delete fontConfig;
}
void iggFontConfigSetSize(IggFontConfig handle, float sizePixels)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->SizePixels = sizePixels;
}
void iggFontConfigSetOversampleH(IggFontConfig handle, int value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->OversampleH = value;
}
void iggFontConfigSetOversampleV(IggFontConfig handle, int value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->OversampleV = value;
}
void iggFontConfigSetPixelSnapH(IggFontConfig handle, IggBool value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->PixelSnapH = value;
}
void iggFontConfigSetGlyphMinAdvanceX(IggFontConfig handle, float value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->GlyphMinAdvanceX = value;
}
void iggFontConfigSetGlyphMaxAdvanceX(IggFontConfig handle, float value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->GlyphMaxAdvanceX = value;
}
void iggFontConfigSetMergeMode(IggFontConfig handle, IggBool value)
{
ImFontConfig *fontConfig = reinterpret_cast<ImFontConfig *>(handle);
fontConfig->MergeMode = value;
}