ComboFlags.go 1.0 KB

1234567891011121314151617181920212223
  1. package imgui
  2. const (
  3. // ComboFlagsNone default = 0
  4. ComboFlagsNone = 0
  5. // ComboFlagsPopupAlignLeft aligns the popup toward the left by default.
  6. ComboFlagsPopupAlignLeft = 1 << 0
  7. // ComboFlagsHeightSmall has max ~4 items visible.
  8. // Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo().
  9. ComboFlagsHeightSmall = 1 << 1
  10. // ComboFlagsHeightRegular has max ~8 items visible (default).
  11. ComboFlagsHeightRegular = 1 << 2
  12. // ComboFlagsHeightLarge has max ~20 items visible.
  13. ComboFlagsHeightLarge = 1 << 3
  14. // ComboFlagsHeightLargest has as many fitting items as possible.
  15. ComboFlagsHeightLargest = 1 << 4
  16. // ComboFlagsNoArrowButton displays on the preview box without the square arrow button.
  17. ComboFlagsNoArrowButton = 1 << 5
  18. // ComboFlagsNoPreview displays only a square arrow button.
  19. ComboFlagsNoPreview = 1 << 6
  20. ComboFlagsHeightMask = ComboFlagsHeightSmall | ComboFlagsHeightRegular | ComboFlagsHeightLarge | ComboFlagsHeightLargest
  21. )