packages feed

dear-imgui-raw-1.0.0: src/DearImGui/Raw/Enums/ImGuiTabItemFlags.hsc

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}

-- This file was generated by dear-bindings-ffi. Do not edit by hand.

module DearImGui.Raw.Enums.ImGuiTabItemFlags
  ( ImGuiTabItemFlags
  , pattern Leading
  , pattern NoAssumedClosure
  , pattern NoCloseWithMiddleMouseButton
  , pattern NoPushId
  , pattern NoReorder
  , pattern NoTooltip
  , pattern None
  , pattern SetSelected
  , pattern Trailing
  , pattern UnsavedDocument
  ) where

import Foreign.C.Types

#include "dcimgui_nodefaultargfunctions.h"

-- typedefs

-- | Flags for ImGui::BeginTabItem()
type ImGuiTabItemFlags = CInt

-- enums

pattern None :: ImGuiTabItemFlags
pattern None = #{const ImGuiTabItemFlags_None}

-- | Display a dot next to the title + set ImGuiTabItemFlags_NoAssumedClosure.
pattern UnsavedDocument :: ImGuiTabItemFlags
pattern UnsavedDocument = #{const ImGuiTabItemFlags_UnsavedDocument}

-- | Trigger flag to programmatically make the tab selected when calling BeginTabItem()
pattern SetSelected :: ImGuiTabItemFlags
pattern SetSelected = #{const ImGuiTabItemFlags_SetSelected}

-- | Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
pattern NoCloseWithMiddleMouseButton :: ImGuiTabItemFlags
pattern NoCloseWithMiddleMouseButton = #{const ImGuiTabItemFlags_NoCloseWithMiddleMouseButton}

-- | Don't call PushID()/PopID() on BeginTabItem()/EndTabItem()
pattern NoPushId :: ImGuiTabItemFlags
pattern NoPushId = #{const ImGuiTabItemFlags_NoPushId}

-- | Disable tooltip for the given tab
pattern NoTooltip :: ImGuiTabItemFlags
pattern NoTooltip = #{const ImGuiTabItemFlags_NoTooltip}

-- | Disable reordering this tab or having another tab cross over this tab
pattern NoReorder :: ImGuiTabItemFlags
pattern NoReorder = #{const ImGuiTabItemFlags_NoReorder}

-- | Enforce the tab position to the left of the tab bar (after the tab list popup button)
pattern Leading :: ImGuiTabItemFlags
pattern Leading = #{const ImGuiTabItemFlags_Leading}

-- | Enforce the tab position to the right of the tab bar (before the scrolling buttons)
pattern Trailing :: ImGuiTabItemFlags
pattern Trailing = #{const ImGuiTabItemFlags_Trailing}

-- | Tab is selected when trying to close + closure is not immediately assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
pattern NoAssumedClosure :: ImGuiTabItemFlags
pattern NoAssumedClosure = #{const ImGuiTabItemFlags_NoAssumedClosure}