ConfigFlags.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package imgui
  2. const (
  3. // ConfigFlagNone default = 0
  4. ConfigFlagNone = 0
  5. // ConfigFlagNavEnableKeyboard master keyboard navigation enable flag. NewFrame() will automatically fill
  6. // io.NavInputs[] based on io.KeysDown[].
  7. ConfigFlagNavEnableKeyboard = 1 << 0
  8. // ConfigFlagNavEnableGamepad master gamepad navigation enable flag.
  9. // This is mostly to instruct your imgui back-end to fill io.NavInputs[]. Back-end also needs to set
  10. // BackendFlagHasGamepad.
  11. ConfigFlagNavEnableGamepad = 1 << 1
  12. // ConfigFlagNavEnableSetMousePos instruct navigation to move the mouse cursor. May be useful on TV/console systems
  13. // where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you
  14. // MUST honor io.WantSetMousePos requests in your binding, otherwise ImGui will react as if the mouse is jumping
  15. // around back and forth.
  16. ConfigFlagNavEnableSetMousePos = 1 << 2
  17. // ConfigFlagNavNoCaptureKeyboard instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive
  18. // is set.
  19. ConfigFlagNavNoCaptureKeyboard = 1 << 3
  20. // ConfigFlagNoMouse instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse
  21. // information set by the back-end.
  22. ConfigFlagNoMouse = 1 << 4
  23. // ConfigFlagNoMouseCursorChange instruct back-end to not alter mouse cursor shape and visibility. Use if the
  24. // back-end cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse
  25. // cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead.
  26. ConfigFlagNoMouseCursorChange = 1 << 5
  27. ConfigFlagEnablePowerSavingMode = 1 << 6
  28. // User storage (to allow your back-end/engine to communicate to code that may be shared between multiple projects.
  29. // Those flags are not used by core Dear ImGui)
  30. // ConfigFlagIsSRGB application is SRGB-aware.
  31. ConfigFlagIsSRGB = 1 << 20
  32. // ConfigFlagIsTouchScreen application is using a touch screen instead of a mouse.
  33. ConfigFlagIsTouchScreen = 1 << 21
  34. )