frpnow-gtk3-0.2.0: Program GUIs with GTK3 and frpnow!

Copyright(c) George Steel 2017
LicenseBSD3
Maintainergeorge.steel@gmail.org
Safe HaskellNone
LanguageHaskell2010

Control.FRPNow.GTK.DataWidgets

Contents

Description

Functions for creating widgets allowing entry and display of variable data, reperesented as Behaviors

Synopsis

Documentation

showtext :: Show a => a -> Text Source #

Version of show which outputs Text

Labels

createLabel :: MonadIO m => Text -> m Label Source #

Creates a label containing static text

createLabelDisplay :: Behavior Text -> Now Label Source #

Creates a label containing dynamic text

createTextViewDisplay :: Behavior Text -> Now TextView Source #

Creates a TextView with editing disabled containing dynamic text. Useful for showing text too long for a Label.

Entry

createEntry :: String -> Now (Entry, Behavior String) Source #

Creates an Entey with an initial value

createFilteredEntry :: (Char -> Bool) -> String -> Now (Entry, Behavior String) Source #

Creates an Entry which only allows characters satisfying as predicate. Useful for numeric entry.

createSpinEntry :: (Double, Double) -> Double -> Double -> Now (SpinButton, Behavior Double) Source #

Creates a floating-point SpinButton with range, step size, and initial value.

createIntSpinEntry :: (Int, Int) -> Int -> Int -> Now (SpinButton, Behavior Int) Source #

Creates a integer SpinButton with range, step size, and initial value.

Progress

createProgressBar :: Behavior (Maybe (Double, Text)) -> Now ProgressBar Source #

Creates a progress bar which displays an annotation and can optionally be disabled.

createSimpleProgressBar :: Behavior Double -> Now ProgressBar Source #

Creates a progress bar which is always on and displays the progres value only.

createSpinner :: Behavior Bool -> Now Spinner Source #

Creates a spinner which spins when its parameter is True.

Sliders

createSlider :: (Double, Double) -> Double -> Double -> Now (HScale, Behavior Double) Source #

Creates a slider with range, step size, and initial value.

createMotorizedSlider :: (Double, Double) -> Double -> Behavior Double -> Now (HScale, EvStream Double) Source #

Creates a slider which displays a dynamic value and emits attempts by the user to change that value.