forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 15
/
IOWrapper.h
52 lines (41 loc) · 2.19 KB
/
IOWrapper.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
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
extern IggBool iggWantCaptureMouse(IggIO handle);
extern IggBool iggWantCaptureKeyboard(IggIO handle);
extern IggBool iggWantTextInput(IggIO handle);
extern IggFontAtlas iggIoGetFonts(IggIO handle);
extern void iggIoSetDisplaySize(IggIO handle, IggVec2 const *value);
extern void iggIoSetMousePosition(IggIO handle, IggVec2 const *value);
extern void iggIoSetMouseButtonDown(IggIO handle, int index, IggBool value);
extern void iggIoAddMouseWheelDelta(IggIO handle, float x, float y);
extern void iggIoGetMouseWheelDelta(IggIO handle, float *vertical);
extern void iggIoGetMouseWheelHDelta(IggIO handle, float *horizontal);
extern void iggIoGetMouseDelta(IggIO handle, IggVec2 *delta);
extern void iggIoSetDeltaTime(IggIO handle, float value);
extern void iggIoSetFontGlobalScale(IggIO handle, float value);
extern IggBool iggIoGetMouseDrawCursor(IggIO handle);
extern void iggIoSetMouseDrawCursor(IggIO handle, IggBool value);
extern void iggIoKeyPress(IggIO handle, int key);
extern void iggIoKeyRelease(IggIO handle, int key);
extern void iggIoKeyMap(IggIO handle, int imguiKey, int nativeKey);
extern void iggIoKeyCtrl(IggIO handle, int leftCtrl, int rightCtrl);
extern void iggIoKeyShift(IggIO handle, int leftShift, int rightShift);
extern void iggIoKeyAlt(IggIO handle, int leftAlt, int rightAlt);
extern void iggIoKeySuper(IggIO handle, int leftSuper, int rightSuper);
extern void iggIoAddInputCharactersUTF8(IggIO handle, char const *utf8Chars);
extern void iggIoSetIniFilename(IggIO handle, char const *value);
extern void iggIoSetConfigFlags(IggIO handle, int flags);
extern int iggIoGetConfigFlags(IggIO handle);
extern void iggIoSetBackendFlags(IggIO handle, int flags);
extern void iggIoRegisterClipboardFunctions(IggIO handle);
extern void iggIoClearClipboardFunctions(IggIO handle);
extern int iggGetFrameCountSinceLastInput(IggIO handle);
extern void iggSetFrameCountSinceLastInput(IggIO handle, int count);
extern void iggIoAddFocusEvent(IggIO handle, IggBool focused);
#ifdef __cplusplus
}
#endif