forked from AllenDang/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TabBarFlags.go
30 lines (29 loc) · 1.61 KB
/
TabBarFlags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package imgui
const (
// TabBarFlagsNone default = 0.
TabBarFlagsNone = 0
// TabBarFlagsReorderable Allow manually dragging tabs to re-order them + New tabs are appended at the end of list
TabBarFlagsReorderable = 1 << 0
// TabBarFlagsAutoSelectNewTabs Automatically select new tabs when they appear
TabBarFlagsAutoSelectNewTabs = 1 << 1
// TabBarFlagsTabListPopupButton Disable buttons to open the tab list popup
TabBarFlagsTabListPopupButton = 1 << 2
// TabBarFlagsNoCloseWithMiddleMouseButton Disable behavior of closing tabs (that are submitted with p_open != NULL)
// with middle mouse button. You can still repro this behavior on user's side with if
// (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
TabBarFlagsNoCloseWithMiddleMouseButton = 1 << 3
// TabBarFlagsNoTabListScrollingButtons Disable scrolling buttons (apply when fitting policy is
// TabBarFlagsFittingPolicyScroll)
TabBarFlagsNoTabListScrollingButtons = 1 << 4
// TabBarFlagsNoTooltip Disable tooltips when hovering a tab
TabBarFlagsNoTooltip = 1 << 5
// TabBarFlagsFittingPolicyResizeDown Resize tabs when they don't fit
TabBarFlagsFittingPolicyResizeDown = 1 << 6
// TabBarFlagsFittingPolicyScroll Add scroll buttons when tabs don't fit
TabBarFlagsFittingPolicyScroll = 1 << 7
// TabBarFlagsFittingPolicyMask combines
// TabBarFlagsFittingPolicyResizeDown and TabBarFlagsFittingPolicyScroll
TabBarFlagsFittingPolicyMask = TabBarFlagsFittingPolicyResizeDown | TabBarFlagsFittingPolicyScroll
// TabBarFlagsFittingPolicyDefault alias for TabBarFlagsFittingPolicyResizeDown
TabBarFlagsFittingPolicyDefault = TabBarFlagsFittingPolicyResizeDown
)