Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

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

Instances details
Monoid Highlight Source # 
Instance details

Defined in Ui.Color

Semigroup Highlight Source #

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

Instance details

Defined in Ui.Color

Bounded Highlight Source # 
Instance details

Defined in Ui.Color

Enum Highlight Source # 
Instance details

Defined in Ui.Color

Show Highlight Source # 
Instance details

Defined in Ui.Color

Eq Highlight Source # 
Instance details

Defined in Ui.Color

Ord Highlight Source # 
Instance details

Defined in Ui.Color

ShowVal Highlight Source # 
Instance details

Defined in Derive.C.Prelude.Highlight

Typecheck Highlight Source # 
Instance details

Defined in Derive.C.Prelude.Highlight

Pretty Highlight Source # 
Instance details

Defined in Ui.Color

data Color Source #

Constructors

Color !Double !Double !Double !Double 

Instances

Instances details
Read Color Source # 
Instance details

Defined in Ui.Color

Show Color Source # 
Instance details

Defined in Ui.Color

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

CStorable Color Source # 
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 () #

Eq Color Source # 
Instance details

Defined in Ui.Color

Methods

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

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

Ord Color Source # 
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 #

Pretty Color Source # 
Instance details

Defined in Ui.Color

Serialize Color Source # 
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.