TabItemFlags.go 951 B

123456789101112131415161718
  1. package imgui
  2. const (
  3. // TabItemFlagsNone default = 0
  4. TabItemFlagsNone = 0
  5. // TabItemFlagsUnsavedDocument Append '*' to title without affecting the ID, as a convenience to avoid using the
  6. // ### operator. Also: tab is selected on closure and closure is deferred by one frame to allow code to undo it
  7. // without flicker.
  8. TabItemFlagsUnsavedDocument = 1 << 0
  9. // TabItemFlagsSetSelected Trigger flag to programmatically make the tab selected when calling BeginTabItem()
  10. TabItemFlagsSetSelected = 1 << 1
  11. // TabItemFlagsNoCloseWithMiddleMouseButton Disable behavior of closing tabs (that are submitted with
  12. // p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if
  13. // (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
  14. TabItemFlagsNoCloseWithMiddleMouseButton = 1 << 2
  15. // TabItemFlagsNoPushID Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem()
  16. TabItemFlagsNoPushID = 1 << 3
  17. )