csound-expression-5.3.2: library to make electronic music

Safe HaskellNone
LanguageHaskell98

Csound.Control.Gui.Props

Contents

Description

Properties that specify the appearance of the GUI elements. The specification is inspired by CSS. All properties are set in the cascade manner. For example, if you want to change the font type for all elements you should set this property only for the top-most GUI element. If the property is set on the lower level it wins versus property that is set on the higher level.

Synopsis

Properties

props :: [Prop] -> Gui -> Gui #

Sets the properties for a GUI element.

forceProps :: [Prop] -> Gui -> Gui #

Sets the properties for a GUI element on all levels.

type Color = Colour Double #

The Csound colours.

data Rect :: * #

A rectangle.

Constructors

Rect 

Fields

Instances

Show Rect 

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

data FontType :: * #

Instances

data Emphasis :: * #

Constructors

NoEmphasis 
Italic 
Bold 
BoldItalic 

Instances

data Material :: * #

The type of the material of the element. It affects sliders and buttons.

Constructors

NoPlastic 
Plastic 

Instances

data Orient :: * #

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.

Constructors

Hor 
Ver 

Setters

Handy short-cuts for the function props.