Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Props = Props {}
- data Prop
- = SetLabel Text
- | SetMaterial Material
- | SetBoxType BoxType
- | SetColor1 Color
- | SetColor2 Color
- | SetTextColor Color
- | SetFontSize Int
- | SetFontType FontType
- | SetEmphasis Emphasis
- | SetSliderType SliderType
- | SetTextType TextType
- | SetButtonType ButtonType
- | SetOrient Orient
- | SetKnobType KnobType
- | SetLabelType LabelType
- data BorderType
- type Color = Colour Double
- data Rect = Rect {}
- data FontType
- data Emphasis
- = NoEmphasis
- | Italic
- | Bold
- | BoldItalic
- data Material
- data Orient
- data LabelType
- type ScaleFactor = (Double, Double)
- data ValDiap = ValDiap {
- valDiapMin :: Double
- valDiapMax :: Double
- type ValStep = Double
- data ValScaleType
- data ValSpan = ValSpan {}
- linSpan :: Double -> Double -> ValSpan
- expSpan :: Double -> Double -> ValSpan
- uspan :: ValSpan
- bspan :: ValSpan
- uspanExp :: ValSpan
- data KnobType
- data SliderType
- data TextType
- = NormalText
- | NoDrag
- | NoEdit
- data BoxType
- data ButtonType
- defFontSize :: Int
- data PropCtx = PropCtx {
- ctxLabel :: Maybe Text
- ctxMaterial :: Maybe Material
- ctxLabelType :: Maybe LabelType
- ctxBoxType :: Maybe BoxType
- ctxColor1 :: Maybe Color
- ctxColor2 :: Maybe Color
- ctxTextColor :: Maybe Color
- ctxFontSize :: Maybe Int
- ctxFontType :: Maybe FontType
- ctxEmphasis :: Maybe Emphasis
- ctxOrient :: Maybe Orient
- ctxSliderType :: Maybe SliderType
- ctxButtonType :: Maybe ButtonType
- ctxTextType :: Maybe TextType
- ctxKnobType :: Maybe KnobType
- setPropCtx :: Prop -> PropCtx -> PropCtx
- getLabel :: PropCtx -> Text
Documentation
Properties of the widgets.
data BorderType Source #
Instances
Enum BorderType Source # | |
Defined in Csound.Typed.Gui.Types succ :: BorderType -> BorderType # pred :: BorderType -> BorderType # toEnum :: Int -> BorderType # fromEnum :: BorderType -> Int # enumFrom :: BorderType -> [BorderType] # enumFromThen :: BorderType -> BorderType -> [BorderType] # enumFromTo :: BorderType -> BorderType -> [BorderType] # enumFromThenTo :: BorderType -> BorderType -> BorderType -> [BorderType] # |
A rectangle.
The type of the material of the element. It affects sliders and buttons.
The orientation of the widget (slider, roller). This property is never needs to be set in practice. If this property is not set then default orientation is calculated from the bounding box of the widget. If the width is greater than the height then we need to use a horizontal widget otherwise it should be a vertical one.
Some values are not implemented on the Csound level.
type ScaleFactor = (Double, Double) Source #
The diapason of the continuous value.
ValDiap | |
|
A value span is a diapason of the value and a type of the scale (can be linear or exponential).
linSpan :: Double -> Double -> ValSpan Source #
Makes a linear ValSpan
with specified boundaries.
linSpan minVal maxVal
expSpan :: Double -> Double -> ValSpan Source #
Makes an exponential ValSpan
with specified boundaries.
expSpan minVal maxVal
data SliderType Source #
Instances
Default SliderType Source # | |
Defined in Csound.Typed.Gui.Types def :: SliderType # |
The type of the box. Some values are not implemented on the Csound level.
Instances
Enum BoxType Source # | |
Default BoxType Source # | |
Defined in Csound.Typed.Gui.Types |
data ButtonType Source #
The type of the button. It affects toggle buttons and button banks.
In Csound buttons and toggle buttons
are constructed with the same function (but with different button types).
But in this library they are contructed by different functions (button
and toggle
).
Normal button is a plain old button, but other values specify toggle buttons.
So this property doesn't affect the buttons (since they could be only normal buttons).
Instances
Default ButtonType Source # | |
Defined in Csound.Typed.Gui.Types def :: ButtonType # |
defFontSize :: Int Source #
PropCtx | |
|