csound-expression-5.3.4: library to make electronic music
Safe HaskellNone
LanguageHaskell2010

Csound.Control.Gui.Props

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

Instances details
Show Rect 
Instance details

Defined in Csound.Typed.Gui.BoxModel

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

data FontType #

Instances

Instances details
Default FontType 
Instance details

Defined in Csound.Typed.Gui.Types

Methods

def :: FontType #

data Emphasis #

Constructors

NoEmphasis 
Italic 
Bold 
BoldItalic 

Instances

Instances details
Default Emphasis 
Instance details

Defined in Csound.Typed.Gui.Types

Methods

def :: Emphasis #

data Material #

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

Constructors

NoPlastic 
Plastic 

Instances

Instances details
Default Material 
Instance details

Defined in Csound.Typed.Gui.Types

Methods

def :: Material #

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.