vty-ui-1.1: An interactive terminal user interface library for Vty

Graphics.Vty.Widgets.Core

Contents

Description

This module is the core of this library; it provides infrastructure for creating new types of widgets and extending their functionality. This module provides various bits of infrastructure, including:

  • modeling user interface widgets
  • managing changes in focus between widgets
  • managing widget state

This module does not provide any concrete widget types. For in-depth discussion on this module's API and widget implementation in particular, see the Vty-ui User's Manual.

Synopsis

Widget Infrastructure

updateWidgetState :: Widget a -> (a -> a) -> IO ()Source

(<~) :: (a -> b) -> IORef a -> IO bSource

(<~~) :: (a -> b) -> Widget a -> IO bSource

Rendering

Miscellaneous

Events

onKeyPressed :: Widget a -> (Widget a -> Key -> [Modifier] -> IO Bool) -> IO ()Source

Focus management