csound-expression-4.1.0: library to make electronic music

Safe HaskellNone

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

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

type Color = Colour Double

data Rect

Constructors

Rect 

Fields

px :: Int
 
py :: Int
 
width :: Int
 
height :: Int
 

Instances

data FontType

Instances

Default FontType 

data Emphasis

Constructors

NoEmphasis 
Italic 
Bold 
BoldItalic 

Instances

Default Emphasis 

data Material

Constructors

NoPlastic 
Plastic 

Instances

Default Material 

data Orient

Constructors

Hor 
Ver 

Setters

Handy short-cuts for the function props.