Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Ui.Zoom

Description

The Zoom type.

Synopsis

Documentation

data Zoom Source #

View zoom and time scroll offset.

Constructors

Zoom 

to_pixels :: Zoom -> ScoreTime.TrackTime -> Int Source #

Convert a position at a given zoom factor to a pixel position. Doesn't take the zoom offset into account.

to_time :: Zoom -> Int -> ScoreTime.TrackTime Source #

Convert a pixel position to a TrackTime at the given zoom factor. Doesn't take the zoom offset into account.