SelectableFlags.go 750 B

12345678910111213141516
  1. package imgui
  2. const (
  3. // SelectableFlagsNone default = 0
  4. SelectableFlagsNone = 0
  5. // SelectableFlagsDontClosePopups makes clicking the selectable not close any parent popup windows.
  6. SelectableFlagsDontClosePopups = 1 << 0
  7. // SelectableFlagsSpanAllColumns allows the selectable frame to span all columns (text will still fit in current column).
  8. SelectableFlagsSpanAllColumns = 1 << 1
  9. // SelectableFlagsAllowDoubleClick generates press events on double clicks too.
  10. SelectableFlagsAllowDoubleClick = 1 << 2
  11. // SelectableFlagsDisabled disallows selection and displays text in a greyed out color.
  12. SelectableFlagsDisabled = 1 << 3
  13. SelectableFlags_AllowItemOverlap = 1 << 4 // (WIP) Hit testing to allow subsequent widgets to overlap this one
  14. )