packages feed

nano-ui-0.2.0.0: lib/NanoUI/Input.hs

-- | The per-frame 'Input' record backends fill in and views read: pointer
-- state, keys and modifiers, typed characters, scroll, window size, file
-- drops and input-method composition, plus the cursor kinds a widget can
-- request.
module NanoUI.Input
  ( -- * Input
    Input (..)
  , Pressable (..)
  , emptyInput
  , clearEphemeral
  , inputInteracted
  , inputPointerHeld

    -- * Mouse buttons
  , MouseButton (..)
  , mouseButtonNumber
  , MouseButtons
  , noButtons
  , buttonsMember
  , buttonsNull
  , buttonsInsert
  , buttonsDelete
  , buttonsToList
  , buttonsFromList
  , anyButtonPressed
  , anyButtonReleased
  , applyMouseButton
  , applyPointerLeave

    -- * Keys
  , Key (..)
  , Modifiers (..)
  , appendInputKey
  , inputKeysFromList
  , inputKeysNull
  , inputKeysElem
  , foldInputKeys
  , applyKey
  , releaseAllKeys
  , noModifiers
  , modPrimary
  , primaryModifiers
  , modJump
  , modMacCommand

    -- * File drops
  , DropType (..)
  , DropEvent (..)
  , appendDropEvent

    -- * Cursors
  , UiCursorKind (..)
  , grabHoverKind
  , grabDragKind

    -- * Input methods
  , Composition (..)
  , applyComposition
  , InputPurpose (..)
  ) where

import NanoUI.Internal.Input