dear-imgui-raw-1.0.0: src/DearImGui/Raw/Enums/ImGuiMouseSource.hsc
{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}
-- This file was generated by dear-bindings-ffi. Do not edit by hand.
module DearImGui.Raw.Enums.ImGuiMouseSource
( ImGuiMouseSource
, pattern COUNT
, pattern Mouse
, pattern Pen
, pattern TouchScreen
) where
import Foreign.C.Types
#include "dcimgui_nodefaultargfunctions.h"
-- enums
-- | Enumeration for AddMouseSourceEvent() actual source of Mouse Input data.
-- Historically we use "Mouse" terminology everywhere to indicate pointer data, e.g. MousePos, IsMousePressed(), io.AddMousePosEvent()
-- But that "Mouse" data can come from different source which occasionally may be useful for application to know about.
-- You can submit a change of pointer type using io.AddMouseSourceEvent().
-- Forward declared enum type ImGuiMouseSource
type ImGuiMouseSource = CInt
-- | Input is coming from an actual mouse.
pattern Mouse :: ImGuiMouseSource
pattern Mouse = #{const ImGuiMouseSource_Mouse}
-- | Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible).
pattern TouchScreen :: ImGuiMouseSource
pattern TouchScreen = #{const ImGuiMouseSource_TouchScreen}
-- | Input is coming from a pressure/magnetic pen (often used in conjunction with high-sampling rates).
pattern Pen :: ImGuiMouseSource
pattern Pen = #{const ImGuiMouseSource_Pen}
pattern COUNT :: ImGuiMouseSource
pattern COUNT = #{const ImGuiMouseSource_COUNT}