Copyright | (c) George Steel 2017 |
---|---|
License | BSD3 |
Maintainer | george.steel@gmail.org |
Safe Haskell | None |
Language | Haskell2010 |
Functions for creating widgets allowing entry and display of variable data, reperesented as Behavior
s
- showtext :: Show a => a -> Text
- createLabel :: MonadIO m => Text -> m Label
- createLabelDisplay :: Behavior Text -> Now Label
- createTextViewDisplay :: Behavior Text -> Now TextView
- createEntry :: String -> Now (Entry, Behavior String)
- createFilteredEntry :: (Char -> Bool) -> String -> Now (Entry, Behavior String)
- createSpinEntry :: (Double, Double) -> Double -> Double -> Now (SpinButton, Behavior Double)
- createIntSpinEntry :: (Int, Int) -> Int -> Int -> Now (SpinButton, Behavior Int)
- createProgressBar :: Behavior (Maybe (Double, Text)) -> Now ProgressBar
- createSimpleProgressBar :: Behavior Double -> Now ProgressBar
- createSpinner :: Behavior Bool -> Now Spinner
- createSlider :: (Double, Double) -> Double -> Double -> Now (HScale, Behavior Double)
- createMotorizedSlider :: (Double, Double) -> Double -> Behavior Double -> Now (HScale, EvStream Double)
Documentation
Labels
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.