forked from AllenDang/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
InputTextCallbackDataWrapper.h
34 lines (27 loc) · 1.72 KB
/
InputTextCallbackDataWrapper.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
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C"
{
#endif
extern int iggInputTextCallbackDataGetEventFlag(IggInputTextCallbackData handle);
extern int iggInputTextCallbackDataGetFlags(IggInputTextCallbackData handle);
extern unsigned short iggInputTextCallbackDataGetEventChar(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataSetEventChar(IggInputTextCallbackData handle, unsigned short value);
extern int iggInputTextCallbackDataGetEventKey(IggInputTextCallbackData handle);
extern char *iggInputTextCallbackDataGetBuf(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataSetBuf(IggInputTextCallbackData handle, char *buf, int size, int textLen);
extern void iggInputTextCallbackDataMarkBufferModified(IggInputTextCallbackData handle);
extern int iggInputTextCallbackDataGetBufSize(IggInputTextCallbackData handle);
extern int iggInputTextCallbackDataGetBufTextLen(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataDeleteBytes(IggInputTextCallbackData handle, int offset, int count);
extern void iggInputTextCallbackDataInsertBytes(IggInputTextCallbackData handle, int offset, char *bytes, int count);
extern int iggInputTextCallbackDataGetCursorPos(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataSetCursorPos(IggInputTextCallbackData handle, int value);
extern int iggInputTextCallbackDataGetSelectionStart(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataSetSelectionStart(IggInputTextCallbackData handle, int value);
extern int iggInputTextCallbackDataGetSelectionEnd(IggInputTextCallbackData handle);
extern void iggInputTextCallbackDataSetSelectionEnd(IggInputTextCallbackData handle, int value);
#ifdef __cplusplus
}
#endif