packages feed

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

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

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

module DearImGui.Raw.Enums.ImGuiSelectionRequestType
  ( ImGuiSelectionRequestType
  , pattern None
  , pattern SetAll
  , pattern SetRange
  ) where

import Foreign.C.Types

#include "dcimgui_nodefaultargfunctions.h"

-- enums

-- | Selection request type
type ImGuiSelectionRequestType = CInt

pattern None :: ImGuiSelectionRequestType
pattern None = #{const ImGuiSelectionRequestType_None}

-- | Request app to clear selection (if Selected==false) or select all items (if Selected==true). We cannot set RangeFirstItem/RangeLastItem as its contents is entirely up to user (not necessarily an index)
pattern SetAll :: ImGuiSelectionRequestType
pattern SetAll = #{const ImGuiSelectionRequestType_SetAll}

-- | Request app to select/unselect [RangeFirstItem..RangeLastItem] items (inclusive) based on value of Selected. Only EndMultiSelect() request this, app code can read after BeginMultiSelect() and it will always be false.
pattern SetRange :: ImGuiSelectionRequestType
pattern SetRange = #{const ImGuiSelectionRequestType_SetRange}