dear-imgui-raw-1.0.0: src/DearImGui/Raw/Enums/ImGuiCond.hsc
{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}
-- This file was generated by dear-bindings-ffi. Do not edit by hand.
module DearImGui.Raw.Enums.ImGuiCond
( ImGuiCond
, pattern Always
, pattern Appearing
, pattern FirstUseEver
, pattern None
, pattern Once
) where
import Foreign.C.Types
#include "dcimgui_nodefaultargfunctions.h"
-- typedefs
-- | Enumeration for ImGui::SetNextWindow***(), SetWindow***(), SetNextItem***() functions
-- Represent a condition.
-- Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always.
type ImGuiCond = CInt
-- enums
-- | No condition (always set the variable), same as _Always
pattern None :: ImGuiCond
pattern None = #{const ImGuiCond_None}
-- | No condition (always set the variable), same as _None
pattern Always :: ImGuiCond
pattern Always = #{const ImGuiCond_Always}
-- | Set the variable once per runtime session (only the first call will succeed)
pattern Once :: ImGuiCond
pattern Once = #{const ImGuiCond_Once}
-- | Set the variable if the object/window has no persistently saved data (no entry in .ini file)
pattern FirstUseEver :: ImGuiCond
pattern FirstUseEver = #{const ImGuiCond_FirstUseEver}
-- | Set the variable if the object/window is appearing after being hidden/inactive (or the first time)
pattern Appearing :: ImGuiCond
pattern Appearing = #{const ImGuiCond_Appearing}