| Safe Haskell | None |
|---|
Csound.Control.Gui.Widget
Description
Primitive GUI elements.
There is a convention that constructors take only parameters that specify the logic of the widget. The view is set for GUI-elements with other functions.
- data ValDiap = ValDiap {
- valDiapMin :: Double
- valDiapMax :: Double
- type ValStep = Double
- data ValScaleType
- = Linear
- | Exponential
- data ValSpan = ValSpan {}
- linSpan :: Double -> Double -> ValSpan
- expSpan :: Double -> Double -> ValSpan
- uspan :: ValSpan
- bspan :: ValSpan
- uspanExp :: ValSpan
- count :: ValDiap -> ValStep -> Maybe ValStep -> Double -> Source (Evt D)
- countSig :: ValDiap -> ValStep -> Maybe ValStep -> Double -> Source Sig
- joy :: ValSpan -> ValSpan -> (Double, Double) -> Source (Sig, Sig)
- knob :: String -> ValSpan -> Double -> Source Sig
- data KnobType
- setKnobType :: KnobType -> Gui -> Gui
- roller :: String -> ValSpan -> ValStep -> Double -> Source Sig
- slider :: String -> ValSpan -> Double -> Source Sig
- sliderBank :: String -> [Double] -> Source [Sig]
- data SliderType
- setSliderType :: SliderType -> Gui -> Gui
- numeric :: String -> ValDiap -> ValStep -> Double -> Source Sig
- data TextType
- = NormalText
- | NoDrag
- | NoEdit
- setTextType :: TextType -> Gui -> Gui
- box :: String -> Display
- data BoxType
- = FlatBox
- | UpBox
- | DownBox
- | ThinUpBox
- | ThinDownBox
- | EngravedBox
- | EmbossedBox
- | BorderBox
- | ShadowBox
- | Roundedbox
- | RoundedShadowBox
- | RoundedFlatBox
- | RoundedUpBox
- | RoundedDownBox
- | DiamondUpBox
- | DiamondDownBox
- | OvalBox
- | OvalShadowBox
- | OvalFlatBox
- setBoxType :: BoxType -> Gui -> Gui
- button :: String -> Source (Evt Unit)
- data ButtonType
- setButtonType :: ButtonType -> Gui -> Gui
- toggle :: String -> Source (Evt D)
- butBank :: String -> Int -> Int -> (Int, Int) -> Source (Evt (D, D))
- toggleSig :: String -> Source Sig
- butBankSig :: String -> Int -> Int -> (Int, Int) -> Source (Sig, Sig)
- butBank1 :: String -> Int -> Int -> (Int, Int) -> Source (Evt D)
- butBankSig1 :: String -> Int -> Int -> (Int, Int) -> Source Sig
- radioButton :: Arg a => String -> [(String, a)] -> Int -> Source (Evt a)
- matrixButton :: Arg a => String -> Int -> Int -> [a] -> (Int, Int) -> Source (Evt a)
- funnyRadio :: Tuple b => String -> [(String, a -> b)] -> Int -> Source (a -> b)
- funnyMatrix :: Tuple b => String -> Int -> Int -> [a -> b] -> (Int, Int) -> Source (a -> b)
- setNumeric :: String -> ValDiap -> ValStep -> Double -> Sink Sig
- meter :: String -> ValSpan -> Double -> Sink Sig
- setTitle :: String -> Gui -> SE Gui
- data KeyEvt
- data Key
- = CharKey Char
- | F1
- | F2
- | F3
- | F4
- | F5
- | F6
- | F7
- | F8
- | F9
- | F10
- | F11
- | F12
- | Scroll
- | CapsLook
- | LeftShift
- | RightShift
- | LeftCtrl
- | RightCtrl
- | Enter
- | LeftAlt
- | RightAlt
- | LeftWinKey
- | RightWinKey
- | Backspace
- | ArrowUp
- | ArrowLeft
- | ArrowRight
- | ArrowDown
- | Insert
- | Home
- | PgUp
- | Delete
- | End
- | PgDown
- | NumLock
- | NumDiv
- | NumMul
- | NumSub
- | NumHome
- | NumArrowUp
- | NumPgUp
- | NumArrowLeft
- | NumSpace
- | NumArrowRight
- | NumEnd
- | NumArrowDown
- | NumPgDown
- | NumIns
- | NumDel
- | NumEnter
- | NumPlus
- | Num7
- | Num8
- | Num9
- | Num4
- | Num5
- | Num6
- | Num1
- | Num2
- | Num3
- | Num0
- | NumDot
- keyIn :: KeyEvt -> Evt Unit
- charOn :: Char -> Evt Unit
- charOff :: Char -> Evt Unit
Common properties
data ValDiap
Constructors
| ValDiap | |
Fields
| |
data ValScaleType
Constructors
| Linear | |
| Exponential |
Valuators
setKnobType :: KnobType -> Gui -> Gui
sliderBank :: String -> [Double] -> Source [Sig]
setSliderType :: SliderType -> Gui -> Gui
setTextType :: TextType -> Gui -> Gui
Other widgets
data BoxType
setBoxType :: BoxType -> Gui -> Gui
data ButtonType
Constructors
| NormalButton | |
| LightButton | |
| CheckButton | |
| RoundButton |
Instances
| Default ButtonType |
setButtonType :: ButtonType -> Gui -> Gui
radioButton :: Arg a => String -> [(String, a)] -> Int -> Source (Evt a)Source
A radio button. It takes a list of values with labels.
matrixButton :: Arg a => String -> Int -> Int -> [a] -> (Int, Int) -> Source (Evt a)Source
A matrix of values.
funnyRadio :: Tuple b => String -> [(String, a -> b)] -> Int -> Source (a -> b)Source
Radio button that returns functions. Useful for picking a waveform or type of filter.
funnyMatrix :: Tuple b => String -> Int -> Int -> [a -> b] -> (Int, Int) -> Source (a -> b)Source
Matrix of functional values.
Transformers
Keyboard
data Key
Constructors