dear-imgui-raw-imnodes-1.0.0: src/DearImGui/Raw/ImNodes/Enums/AttributeFlags.hsc
{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}
-- This file was generated by dear-bindings-ffi. Do not edit by hand.
module DearImGui.Raw.ImNodes.Enums.AttributeFlags
( AttributeFlags
, pattern EnableLinkCreationOnSnap
, pattern EnableLinkDetachWithDragClick
, pattern None
) where
import Foreign.C.Types
#include "dcimnodes.h"
-- typedefs
-- | This enum controls the way the attribute pins behave.
type AttributeFlags = CInt
-- enums
pattern None :: AttributeFlags
pattern None = #{const ImNodesAttributeFlags_None}
-- | Allow detaching a link by left-clicking and dragging the link at a pin it is connected to.
-- NOTE: the user has to actually delete the link for this to work. A deleted link can be
-- detected by calling IsLinkDestroyed() after EndNodeEditor().
pattern EnableLinkDetachWithDragClick :: AttributeFlags
pattern EnableLinkDetachWithDragClick = #{const ImNodesAttributeFlags_EnableLinkDetachWithDragClick}
-- | Visual snapping of an in progress link will trigger IsLink Created/Destroyed events. Allows
-- for previewing the creation of a link while dragging it across attributes. See here for demo:
-- https://github.com/Nelarius/imnodes/issues/41#issuecomment-647132113 NOTE: the user has to
-- actually delete the link for this to work. A deleted link can be detected by calling
-- IsLinkDestroyed() after EndNodeEditor().
pattern EnableLinkCreationOnSnap :: AttributeFlags
pattern EnableLinkCreationOnSnap = #{const ImNodesAttributeFlags_EnableLinkCreationOnSnap}