forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathimgui_markdown_wrapper.h
39 lines (32 loc) · 994 Bytes
/
imgui_markdown_wrapper.h
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
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct {
char* link;
int link_len;
} iggMarkdownLinkCallbackData;
typedef struct {
IggFont font;
IggBool separator;
} iggMarkdownHeaderData;
typedef struct {
IggTextureID texture;
IggBool useLinkCallback;
IggVec2 size;
IggBool shouldScale; // if true, image will not be larger than available region
IggVec2 uv0;
IggVec2 uv1;
IggVec4 tintColor;
IggVec4 borderColor;
} iggMarkdownImageData;
extern iggMarkdownLinkCallbackData iggMarkdown(
char *markdown_,
iggMarkdownHeaderData fonts[], int numHeaderLevels
);
extern iggMarkdownImageData goMarkdownImageCallback(iggMarkdownLinkCallbackData);
#ifdef __cplusplus
}
#endif