csound-expression-5.3.2: library to make electronic music

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.

data Prop :: * #

Properties of the widgets.

data BorderType :: * #

Instances

 Methods

type Color = Colour Double #

The Csound colours.

data Rect :: * #

A rectangle.

Constructors

 Rect Fieldspx :: Int py :: Int width :: Int height :: Int

Instances

 MethodsshowsPrec :: Int -> Rect -> ShowS #show :: Rect -> String #showList :: [Rect] -> ShowS #

data FontType :: * #

Constructors

 Helvetica Courier Times Symbol Screen Dingbats

Instances

 Methods

data Emphasis :: * #

Constructors

 NoEmphasis Italic Bold BoldItalic

Instances

 Methods

data Material :: * #

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

Constructors

 NoPlastic Plastic

Instances

 Methods

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.