Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Ui.Color

Synopsis

Documentation

data Highlight Source #

How to highlight an event in the UI. This can be used to highlight instrumental restrictions, or for analysis.

TODO This doesn't really belong in this module, but I couldn't think of a better place to put it that wouldn't incur unnecessary dependencies.

Constructors

NoHighlight 
Notice

This note is special in some way, perhaps an open string.

Warning

This note might have a problem, e.g. in a difficult range or requires difficult fingering or the pitch needs to be adjusted.

Error

This note is probably unplayable, e.g. out of range.

Instances
Bounded Highlight # 
Instance details

Defined in Ui.Color

Enum Highlight # 
Instance details

Defined in Ui.Color

Eq Highlight # 
Instance details

Defined in Ui.Color

Ord Highlight # 
Instance details

Defined in Ui.Color

Show Highlight # 
Instance details

Defined in Ui.Color

Semigroup Highlight #

This is so more serious highlights can override less serious ones.

Instance details

Defined in Ui.Color

Monoid Highlight # 
Instance details

Defined in Ui.Color

ShowVal Highlight # 
Instance details

Defined in Derive.C.Prelude.Highlight

TypecheckSymbol Highlight # 
Instance details

Defined in Derive.C.Prelude.Highlight

Typecheck Highlight # 
Instance details

Defined in Derive.C.Prelude.Highlight

data Color Source #

Constructors

Color !Double !Double !Double !Double 
Instances
Eq Color # 
Instance details

Defined in Ui.Color

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Ord Color # 
Instance details

Defined in Ui.Color

Methods

compare :: Color -> Color -> Ordering #

(<) :: Color -> Color -> Bool #

(<=) :: Color -> Color -> Bool #

(>) :: Color -> Color -> Bool #

(>=) :: Color -> Color -> Bool #

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Read Color # 
Instance details

Defined in Ui.Color

Show Color # 
Instance details

Defined in Ui.Color

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

CStorable Color # 
Instance details

Defined in Ui.Color

Methods

sizeOf :: Color -> Int #

alignment :: Color -> Int #

peekElemOff :: Ptr Color -> Int -> IO Color #

pokeElemOff :: Ptr Color -> Int -> Color -> IO () #

peekByteOff :: Ptr b -> Int -> IO Color #

pokeByteOff :: Ptr b -> Int -> Color -> IO () #

peek :: Ptr Color -> IO Color #

poke :: Ptr Color -> Color -> IO () #

Pretty Color # 
Instance details

Defined in Ui.Color

Serialize Color # 
Instance details

Defined in Cmd.Serialize

rgb :: Double -> Double -> Double -> Color Source #

An opaque color with the given r, g, and b.

rgba_word :: Word32 -> Color Source #

Make a Color from an RGBA word.

poke_color :: Ptr b -> Color -> IO () Source #