packages feed

dear-imgui-raw-implot-1.0.0: src/DearImGui/Raw/ImPlot/Enums/Cond.hsc

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

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

module DearImGui.Raw.ImPlot.Enums.Cond
  ( Cond
  , pattern Always
  , pattern None
  , pattern Once
  ) where

import Foreign.C.Types

#include "dcimgui_implot.h"

-- typedefs

-- | Represents a condition for SetupAxisLimits etc. (same as ImGuiCond, but we only support a subset of those enums)
type Cond = CInt

-- enums

-- | No condition (always set the variable), same as _Always
pattern None :: Cond
pattern None = #{const ImPlotCond_None}

-- | No condition (always set the variable)
pattern Always :: Cond
pattern Always = #{const ImPlotCond_Always}

-- | Set the variable once per runtime session (only the first call will succeed)
pattern Once :: Cond
pattern Once = #{const ImPlotCond_Once}