IOWrapper.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #include "imguiWrapperTypes.h"
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. extern IggBool iggWantCaptureMouse(IggIO handle);
  8. extern IggBool iggWantCaptureKeyboard(IggIO handle);
  9. extern IggBool iggWantTextInput(IggIO handle);
  10. extern IggFontAtlas iggIoGetFonts(IggIO handle);
  11. extern void iggIoSetDisplaySize(IggIO handle, IggVec2 const *value);
  12. extern void iggIoSetMousePosition(IggIO handle, IggVec2 const *value);
  13. extern void iggIoSetMouseButtonDown(IggIO handle, int index, IggBool value);
  14. extern void iggIoAddMouseWheelDelta(IggIO handle, float x, float y);
  15. extern void iggIoGetMouseWheelDelta(IggIO handle, float *vertical);
  16. extern void iggIoGetMouseWheelHDelta(IggIO handle, float *horizontal);
  17. extern void iggIoGetMouseDelta(IggIO handle, IggVec2 *delta);
  18. extern void iggIoSetDeltaTime(IggIO handle, float value);
  19. extern void iggIoSetFontGlobalScale(IggIO handle, float value);
  20. extern IggBool iggIoGetMouseDrawCursor(IggIO handle);
  21. extern void iggIoSetMouseDrawCursor(IggIO handle, IggBool value);
  22. extern void iggIoKeyPress(IggIO handle, int key);
  23. extern void iggIoKeyRelease(IggIO handle, int key);
  24. extern void iggIoKeyMap(IggIO handle, int imguiKey, int nativeKey);
  25. extern void iggIoKeyCtrl(IggIO handle, int leftCtrl, int rightCtrl);
  26. extern void iggIoKeyShift(IggIO handle, int leftShift, int rightShift);
  27. extern void iggIoKeyAlt(IggIO handle, int leftAlt, int rightAlt);
  28. extern void iggIoKeySuper(IggIO handle, int leftSuper, int rightSuper);
  29. extern void iggIoAddInputCharactersUTF8(IggIO handle, char const *utf8Chars);
  30. extern void iggIoSetIniFilename(IggIO handle, char const *value);
  31. extern void iggIoSetConfigFlags(IggIO handle, int flags);
  32. extern int iggIoGetConfigFlags(IggIO handle);
  33. extern void iggIoSetBackendFlags(IggIO handle, int flags);
  34. extern void iggIoRegisterClipboardFunctions(IggIO handle);
  35. extern void iggIoClearClipboardFunctions(IggIO handle);
  36. extern int iggGetFrameCountSinceLastInput(IggIO handle);
  37. extern void iggSetFrameCountSinceLastInput(IggIO handle, int count);
  38. extern void iggIoAddFocusEvent(IggIO handle, IggBool focused);
  39. #ifdef __cplusplus
  40. }
  41. #endif