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

Safe HaskellNone

Ui.Style

Description

Each event has a display style.

Actually, to be consistent with Block and Track shouldn't this be called EventConfig?

Synopsis

Documentation

data Style Source #

Instances
Eq Style # 
Instance details

Defined in Ui.Style

Methods

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

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

Read Style # 
Instance details

Defined in Ui.Style

Show Style # 
Instance details

Defined in Ui.Style

Methods

showsPrec :: Int -> Style -> ShowS #

show :: Style -> String #

showList :: [Style] -> ShowS #

CStorable Style # 
Instance details

Defined in Ui.Style

Methods

sizeOf :: Style -> Int #

alignment :: Style -> Int #

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

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

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

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

peek :: Ptr Style -> IO Style #

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

data Font Source #

Constructors

Helvetica 
Times 
Courier 
Instances
Eq Font # 
Instance details

Defined in Ui.Style

Methods

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

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

Read Font # 
Instance details

Defined in Ui.Style

Show Font # 
Instance details

Defined in Ui.Style

Methods

showsPrec :: Int -> Font -> ShowS #

show :: Font -> String #

showList :: [Font] -> ShowS #

data FontFace Source #

Constructors

Bold 
Italic 
Instances
Eq FontFace # 
Instance details

Defined in Ui.Style

Read FontFace # 
Instance details

Defined in Ui.Style

Show FontFace # 
Instance details

Defined in Ui.Style

newtype StyleId Source #

To save space, event styles are explicitly shared by storing them in a table.

Constructors

StyleId Word.Word8 
Instances
Eq StyleId # 
Instance details

Defined in Ui.Style

Methods

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

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

Read StyleId # 
Instance details

Defined in Ui.Style

Show StyleId # 
Instance details

Defined in Ui.Style

Serialize.Serialize StyleId # 
Instance details

Defined in Ui.Style